final class PatternProductions

Reuses immutable pattern/production matches across all frontiers and occurrences of the same constrained search.

Methods§

public function __construct(private Grammar $grammar)

A fixed grammar makes pattern matches independent of search budget and occurrence counters.

Parameters

$grammarGrammar
Test cases 1

Private surface 2§

Implementation details, listed for orientation only.

private array<string, list<Production>> $cache = []
private Grammar $grammar

Test cases 26§

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 25

Relations§

Instantiated in 1
Method calls 2
Type declarations 2