classLeadingDot
final class LeadingDot
Writes the leading dot of a 5.6 or 5.7 name such as .t or .t.a, apart from the word before it.
Rule: MYSQL-LEADING-DOT-001. The MySQL lexer reads a word directly followed by a dot and an identifier as a qualifier, not as a keyword (MY_LEX_IDENT_SEP in sql/sql_lex.cc), so FROM.t is not FROM .t. The output writer joins a dot to the piece before it, so the leading dot is written as a piece of its own that the writer separates from a preceding word, and the name after it is glued to it. The written token is the dot either way. Source: sql/sql_lex.cc and sql/sql_yacc.yy (table_ident: '.' ident, simple_ident_q: '.' ident '.' ident) of MySQL 5.7. Status: Implemented.
Methods§
public function write(Output $out): voidWrites the dot so that the next piece is joined to it.
Parameters
$out | Output |
Called from 2
Calls 1
- method-call Output::spelled() line 31
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.