final class ChoiceLexemeGenerator
    implements LexemeGenerator

The union of every applicable child's candidates; registration order is stable.

Methods§

public function __construct(LexemeGenerator ...$generators)
public function sources(list<LexemeCandidates> $results, string $key): iterable<int, string>

Retains the provenance of semantically identical candidates without storing the whole union.

Parameters

$resultslist<LexemeCandidates>
$keystring

Returns

iterable<int, string>
Test cases 1
Called from 1

Private surface 1§

Implementation details, listed for orientation only.

private list<LexemeGenerator> $generators

Test cases 46§

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

Dedicated tests 3
Other tests reaching this symbol 43

Relations§

Instantiated in 31