final class CompletionState

A leftmost derivation frontier with capped occurrence counters and an output obligation.

Properties§

public list<Symbol> $symbols
public array<string, int> $occurrences
public bool $nonEmpty
public int $spent
public ?self $parent = null

Methods§

public function __construct(
    public list<Symbol> $symbols,
    public array<string, int> $occurrences,
    public bool $nonEmpty,
    public int $spent,
    public ?self $parent = null,
)

Parameters

$symbolslist<Symbol>
$occurrencesarray<string, int>
$nonEmptybool
$spentint
$parent?self
Test cases 1

Test cases 23§

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 22

Relations§

Instantiated in 3
Method calls 4
Type checks 1
Type declarations 4