classCallNoise
final class CallNoise
The noise and synonym token positions of the productions of function-like expressions.
Only a token with no influence on meaning in its production may be listed as noise, and only terminals the manual defines as synonyms may share a key. Every entry is listed in the method documentation with its reason and the manual page that states it. Nothing else is skipped or merged by the token correspondence check.
Methods§
public static function positions(): array<string, list<int>>Answers the noise positions by production signature.
None: the empty parentheses after a clock function change nothing, but they are part of the text MySQL names an unaliased select list expression after, so the model keeps them (OptionalWords).
Returns
array<string, list<int>>Test cases 2
public static function synonyms(): array<string, array<int, string>>Answers the key of each synonym position by production signature.
SUBSTRING(str FROM pos FOR len)isSUBSTRING(str, pos, len): FROM and FOR take the keys of the commas (https://dev.mysql.com/doc/refman/8.4/en/string-functions.html#function_substring: "The forms with a FROM keyword are standard SQL syntax"; the server builds the same Item_func_substr for both).ADDDATE(date, INTERVAL expr unit)isDATE_ADD(date, INTERVAL expr unit)andSUBDATE(...)with INTERVAL isDATE_SUB(...)(https://dev.mysql.com/doc/refman/8.4/en/date-and-time-functions.html#function_adddate: "When invoked with the INTERVAL form of the second argument, ADDDATE()- is a synonym for DATE_ADD()"; likewise SUBDATE() for DATE_SUB()).
Returns
array<string, array<int, string>>Test cases 2
Test cases 4§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.