final class MatchingLexemeGenerator
    implements LexemeGenerator

Applies its child only when its declared terminal or contextual predicate matches.

Methods§

public function __construct(
    private string|Closure(LexemeInput): bool $condition,
    private LexemeGenerator $generator,
)
public function generate(LexemeInput $input): ?LexemeCandidates

Private surface 2§

Implementation details, listed for orientation only.

private string|Closure(LexemeInput): bool $condition
private LexemeGenerator $generator

Test cases 28§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 2
Other tests reaching this symbol 26

Relations§

Instantiated in 96