classQualifiedNameSpacingRule
final class QualifiedNameSpacingRule
implements SpacingRule
sql/sql_lex.cc MY_LEX_IDENT_SEP / MY_LEX_IDENT_START: preserves qualified-name adjacency.
A word joined to a following dot is read as an identifier whatever it spells, because MY_LEX_IDENT skips the keyword lookup when a dot and a name follow at once. A keyword that must stay a keyword, as in FROM .name, is therefore kept apart from the dot.
Methods§
public function apply(LexemeBoundary $boundary, LexemeInput $input): ?SpacingConstraintChooses the joined spelling for grammar dots; decimal points remain internal to numeric lexemes.
Parameters
$boundary | LexemeBoundary | |
$input | LexemeInput |
Returns
Test cases 2
Calls 3
- new SpacingConstraint line 31
- class-const SpacingConstraint::SPACE() line 31
- class-const SpacingConstraint::JOIN() line 35
Test cases 11§
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 9
LexicalExceptionTestcallsGenerationContextTestcallsCharsetValueLexemeGeneratorTestcallsDefinitionFactoryTestcallsLexicalGrammarTestcallsSqlGeneratorFactoryTestcallsMySqlProviderTestcallsPostgreSqlProviderTestcallsSqliteProviderTestcalls