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

The productions of one grammar release, spelled as the grammar writes them.

A production is identified by its signature: the rule name, a colon, and the symbols of the alternative, terminals by terminal or token-class name, such as where_opt: WHERE expr or where_opt:. The list is generated from the grammar artifact of the release. Rules dispatch on signatures, so one rule serves every release that has the production, and the list of a release is the complete set of productions its rules must claim.

Methods§

public function __construct(private array<string, list<string>> $signatures)

Parameters

$signaturesarray<string, list<string>>The signature of each alternative by rule name
public function all(): list<string>

Answers every signature of the release.

Returns

list<string>
Calls 2

Private surface 2§

Implementation details, listed for orientation only.

private static array<string, self> $loaded = []
private array<string, list<string>> $signatures

Test cases 11§

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

Other tests reaching this symbol 11

Relations§

Static calls 1
Method calls 9
Type declarations 4