final class BoundaryCompletion

Discharges explicit left-boundary obligations before a candidate is committed. Traversal stops when the obligation is discharged; it never retries completed SQL.

Methods§

public function __construct(
    private LexemeGenerator $lexemes,
    private CandidateResolver $resolver,
    private array<int, string|null> $requests = [],
    private array<int, string|null> $keys = [],
    private ?ValueChoices $values = null,
)

Parameters

$lexemesLexemeGenerator
$resolverCandidateResolver
$requestsarray<int, string|null>Planned spellings indexed by rewritten occurrence
$keysarray<int, string|null>Planned candidate semantics indexed by rewritten occurrence
$values?ValueChoices
public function accepts(TerminalSequence $sequence, int $index, ResolvedOutput $right): bool

Finds a witness for each pending boundary across compounds and empty markers using the same memoized value decisions as final realization.

Parameters

$sequenceTerminalSequence
$indexint
$rightResolvedOutput

Returns

bool
Test cases 1
Called from 2
Calls 7

Private surface 5§

Implementation details, listed for orientation only.

private LexemeGenerator $lexemes
private CandidateResolver $resolver
private array<int, string|null> $requests = []
private array<int, string|null> $keys = []
private ?ValueChoices $values = null

Test cases 32§

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 31

Relations§

Instantiated in 1
Method calls 1