php-dextrin

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

Methods

__construct()

public __construct(string $kind, int $first) : mixed
Parameters
$kind : string
$first : int
On this page

Search results