class

Noir::CSharpDecl::Member

Inherits Reference < Object

A member of a type. kind is :method, :constructor, :operator, :property or :field. line is the line of its first non-attribute token, attr_line the first line of its attribute lists, header_end the line its signature closes on (the parameter list's )).

Constructors

new(kind : Symbol, name : String, modifiers : Array(String), attributes : Array(Noir::CSharpDecl::Attribute), return_type : String, type_params : Nil | String, params : Array(Noir::CSharpDecl::Parameter), initializer : Nil | String, initializer_args : Nil | Array(Noir::CSharpDecl::Arg), attr_line : Int32, line : Int32, header_end : Int32, end_line : Int32, header : String, body_open : Int32 | Nil, body_close : Int32 | Nil, arrow : Int32 | Nil, finish : Int32, value : Nil | String, accessors : Nil | String = nil)
Source

Instance methods

accessors

A property's accessor list ({ get; set; }).

Source
arrow
Source
attr_line
Source
attributes
Source
body_close
Source
body_open

Offsets into the source: the body's {..}, or the => of an expression body (through finish).

Source
end_line
Source
finish
Source
header
Source
header_end
Source
initializer

A constructor's : base(...) / : this(...) call.

Source
initializer_args
Source
kind
Source
line
Source
modifiers
Source
name
Source
params
Source
public?
Source
return_type
Source
static?
Source
type_params
Source
value

A property's expression body or initializer, a field's initializer.

Source