final class LexemeInput

Per-generation input; dialect, version and registration tables belong to the generators.

Properties§

public TerminalSequence $terminals
public int $index
public ?string $requested = null
public ?ValueChoices $values = null

Methods§

public function __construct(
    public TerminalSequence $terminals,
    public int $index,
    public ResolvedOutput $right,
    public ?string $requested = null,
    public ?ValueChoices $values = null,
)

Binds the current occurrence, selected suffix and optional planned spelling.

Parameters

$terminalsTerminalSequence
$indexint
$rightResolvedOutput
$requested?string
$values?ValueChoices
public function terminal(): TerminalOccurrence

Returns the terminal occurrence for which candidates are being evaluated.

Test cases 11
Called from 39

Test cases 137§

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 136

Relations§

Instantiated in 2
Method calls 39
Type declarations 34