SyntaxNode
in package
FinalYes
One node of a document's syntax tree, as {@see Parser::parseTree()} records it: its kind, its first and last token (indices into the tokens), the nodes inside it, and which of its tokens open it, key it, or name it. The trivia between two tokens is the text between them.
Table of Contents
Properties
- $arrow : int|null
- $children : array<int, SyntaxNode>
- $first : int
- $key : int|null
- $kind : string
- $last : int
- $name : int|null
- $open : int|null
Methods
- __construct() : mixed
Properties
$arrow
public
int|null
$arrow
= null
$children
public
array<int, SyntaxNode>
$children
= []
$first read-only
public
int
$first
$key
public
int|null
$key
= null
$kind read-only
public
string
$kind
$last
public
int
$last
= -1
$name
public
int|null
$name
= null
$open
public
int|null
$open
= null
Methods
__construct()
public
__construct(string $kind, int $first) : mixed
Parameters
- $kind : string
- $first : int