final class LexemeCandidates

A repeatable lazy candidate stream. An empty stream is distinct from non-applicability.

Methods§

public function __construct(private Closure(): iterable<int, LexemeSequence> $candidates)
public static function of(LexemeSequence ...$candidates): self

Creates a repeatable candidate set from zero or more complete sequences.

Parameters

$candidatesLexemeSequence

Returns

self
Test cases 5
Called from 13
Calls 2

Private surface 1§

Implementation details, listed for orientation only.

private Closure(): iterable<int, LexemeSequence> $candidates

Test cases 53§

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 51

Relations§

Instantiated in 4
Static calls 13
Type declarations 21