class

Noir::PhpBlockParser::Node

Inherits Reference < Object

Constructors

new(kind : Kind, start : Int32, parent : Node | Nil)
Source

Instance methods

attributes
Source
attributes=(attributes : Array(Noir::PhpBlockParser::Attribute))
Source
body

Inside the braces; for a brace-less body, the single statement (or an arrow function's expression).

Source
body=(body : Range(Int32, Int32))

Inside the braces; for a brace-less body, the single statement (or an arrow function's expression).

Source
braced=(braced : Bool)
Source
braced?
Source
children
Source
code_unit?

A function, method, closure or arrow function: its own scope.

Source
head

Inside the parentheses: condition, loop header, match/switch subject, catch types, case label, or a code unit's parameters.

Source
head=(head : Range(Int32, Int32) | Nil)

Inside the parentheses: condition, loop header, match/switch subject, catch types, case label, or a code unit's parameters.

Source
kind
Source
modifiers
Source
modifiers=(modifiers : Array(String))
Source
name

Function/method/class name.

Source
name=(name : String | Nil)

Function/method/class name.

Source
parent
Source
prev

The previous link of a chain: the branch before an elseif/else, the try of a catch/finally.

Source
prev=(prev : Node | Nil)

The previous link of a chain: the branch before an elseif/else, the try of a catch/finally.

Source
start
Source
stop

End of the whole construct (exclusive).

Source
stop=(stop : Int32)

End of the whole construct (exclusive).

Source
uses

A closure's use (...) list.

Source
uses=(uses : Range(Int32, Int32) | Nil)

A closure's use (...) list.

Source