final class Form
Restricted visibility: declared "@visibility SqlSemantics". Code outside that scope must not name this declaration.

A typed, temporary view of one grammar production of a parse tree.

The signature spells the production as the grammar writes it. A rule that dispatches on signatures applies to every grammar release that has the production.

Properties§

public Node $node
public string $signature

Methods§

public function __construct(public Node $node, public string $signature)

Parameters

$nodeNodeThe parse tree node
$signaturestringThe production the node matched, such as `where_opt: WHERE expr` or `where_opt:`
public function node(int $position): Node

Answers the nonterminal child at a position.

Parameters

$positionint

Returns

Called from 707
Calls 1
public function token(int $position): Token

Answers the terminal child at a position.

Parameters

$positionint

Returns

Called from 10
Calls 1

Test cases 18§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Other tests reaching this symbol 18

Relations§

Instantiated in 1
Method calls 717
Type declarations 199