final class Bitset
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.

Sets of terminals as arrays of 32-bit words.

Lookahead computation unions tens of thousands of sets, so they are kept as plain word arrays and operated on in place rather than as objects.

Methods§

public static function has(array<int, int> $words, int $member): bool

Reports whether a member is present.

Parameters

$wordsarray<int, int>Set to look in
$memberintMember to look for

Returns

bool True when present
Test cases 1
Called from 1
public static function union(array<int, int> &$into, array<int, int> $from): void

Adds every member of one set to another.

Parameters

$intoarray<int, int>Set to add to
$fromarray<int, int>Set whose members are added
Test cases 1
Called from 3
public static function members(array<int, int> $words): list<int>

Test cases 15§

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

Dedicated tests 5
Other tests reaching this symbol 10

Relations§

Static calls 9