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

The actions of one state once its conflicts have been settled.

Properties§

public array<int, int> $actions
public array<int, int> $reductionCounts
public int $shiftReduceConflicts
public int $reduceReduceConflicts

Methods§

public function __construct(
    public array<int, int> $actions,
    public array<int, int> $reductionCounts,
    public int $shiftReduceConflicts,
    public int $reduceReduceConflicts,
)

Parameters

$actionsarray<int, int>Action code by terminal, explicit errors included
$reductionCountsarray<int, int>How many terminals each completed rule still reduces on
$shiftReduceConflictsintTerminals where a shift won by default
$reduceReduceConflictsintTerminals where an earlier rule won by default

Test cases 4§

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 3

Relations§

Instantiated in 1
Type declarations 2