interfaceLeafKeys
interface LeafKeys
Restricted visibility: declared "@visibility SqlSemantics". Code outside that scope must not name this declaration.
Maps the tokens of a parse tree to comparison keys for the token correspondence check.
A keyword or punctuation token is keyed by its terminal, a name by its decoded value, a literal by its exact decoded value. A token with no influence on meaning in its production is noise and has no key; every such position is listed with its reason in the database package.
Methods§
public function key(Token $token, string $signature, int $position): ?stringAnswers the comparison key of a token, or null when the token is declared noise.
Parameters
$token | Token | The token |
$signature | string | The production the token is a direct child of |
$position | int | The position of the token among the children of that production |
Returns
?stringTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
LeafKeysTestcalls