classScope
final class Scope
Carries the nearest declarations while descending through a planned subtree.
Properties§
public array<string, RulePlan> $rules = []public array<string, LexemeConstraint> $lexemes = []Methods§
public function __construct(
public array<string, RulePlan> $rules = [],
public array<string, LexemeConstraint> $lexemes = [],
)Parameters
$rules | array<string, RulePlan> | |
$lexemes | array<string, LexemeConstraint> |
Test cases 9§
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 7
PlanBuilderTestcallsTokenGeneratorTestcallsGrammarCompilerTest::testRuleDoesNotShareACompiledSubtreeBetweenDifferentLexicalScopescallsGrammarCompilerTest::testRuleMemoizesRecursiveScopesBeforeWalkingTheirChildrencallsGrammarCompilerTest::testSymbolsPreserveInheritedRulesWhenSelectingAnOperandcallsMySqlProviderTestcallsPostgreSqlProviderTestcalls
Relations§
Instantiated in 3
- new SqlFaker\Generation\Plan\Compilation\GrammarCompiler::compile() packages/sql-faker/src/Generation/Plan/Compilation/GrammarCompiler.php:47
- new SqlFaker\Generation\Plan\Compilation\GrammarCompiler::symbols() packages/sql-faker/src/Generation/Plan/Compilation/GrammarCompiler.php:192
- new SqlFaker\Generation\Plan\Compilation\GrammarCompiler::symbols() packages/sql-faker/src/Generation/Plan/Compilation/GrammarCompiler.php:195