struct

Noir::CSharpDecl::Attribute

Inherits Struct < Value < Object

One attribute of an attribute list. name is the simple name without namespace qualification or Attribute suffix (Authorize for Microsoft.AspNetCore.Authorization.AuthorizeAttribute). target is the return: / property: / assembly: specifier of its list.

Constructors

new(name : String, qualified : String, args : Array(Arg), target : String | Nil, text : String, line : Int32, parens : Bool)
Source

Instance methods

args
argument(key : String, index : Int32 = 0) : Arg | Nil

The constructor argument bound to parameter key: by name, else the positional at index.

Source
argument_text

The text between the parentheses, or nil without them.

Source
clone
Source
copy_with(name _name = @name, qualified _qualified = @qualified, args _args = @args, target _target = @target, text _text = @text, line _line = @line, parens _parens = @parens)
Source
line
name
parens
positional
Source
property(key : String) : Arg | Nil

The Prop = value argument named key.

Source
qualified
target
text