classTableRule
final class TableRule
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
What the parser needs to know about a rule when it reduces by it.
Properties§
public int $lhspublic int $lengthpublic int $ordinalMethods§
public function __construct(
public int $lhs,
public int $length,
public int $ordinal,
public bool $hidden = false,
)Parameters
$lhs | int | Nonterminal the rule derives |
$length | int | How many symbols it pops |
$ordinal | int | Position among the alternatives of the same nonterminal |
$hidden | bool | Whether the rule stands in for a mid-rule action and is left out of the tree |
Test cases 10§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Other tests reaching this symbol 9
ParseTableBuilderTestcallsMySqlParserTestcallsLrParserTestcallsPostgreSqlParserTestcallsSqliteParserTestcallsParseTableTest::testActionFallsBackThenUsesTheWildcardThenTheDefaultcallsParseTableTest::testActionPrefersTheExplicitEntrycallsTableCodecTest::testEncodeAndDecodeRoundTripcallsTableFileTest::testSaveAndLoadRoundTripcalls