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

Identifies an occurrence in a derivation rather than an object in the grammar.

Properties§

public Symbol $symbol
public int $nodeId
public ?int $parentNodeId
public ?int $rhsPosition

Methods§

public function __construct(
    public Symbol $symbol,
    public int $nodeId,
    public ?int $parentNodeId,
    public ?int $rhsPosition,
)

Binds the occurrence to its parent and original right-hand-side position.

Parameters

$symbolSymbol
$nodeIdint
$parentNodeId?int
$rhsPosition?int
Test cases 1

Test cases 19§

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

Dedicated tests 1
Other tests reaching this symbol 18