classLoadSourceCountRule
final class LoadSourceCountRule
implements RewriteRule
sql_yacc.yy/opt_source_count requires the identifier COUNT and a nonzero NUM value.
Methods§
public function rewrite(TerminalSequence $sequence): TerminalSequenceConstrains the checked source-count production without changing LOAD identifiers or numbers elsewhere.
Parameters
$sequence | TerminalSequence |
Returns
Test cases 1
LoadSourceCountRuleTest::testRewriteConstrainsOnlyTheCountClausecovers and calls
Calls 3
- method-call TerminalSequence::occurrences() line 23
- method-call TerminalSequence::child() line 24
- method-call TerminalSequence::range() line 25
Test cases 7§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
LoadSourceCountRuleTest::testRewriteConstrainsOnlyTheCountClausecovers and calls
Other tests reaching this symbol 6
GenerationContextTestcallsRewriteDefinitionsTestcallsMySqlProviderTestcallsPostgreSqlProviderTestcallsSqlGeneratorFactoryTestcallsSqliteProviderTestcalls