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): ?string

Answers the comparison key of a token, or null when the token is declared noise.

Parameters

$tokenTokenThe token
$signaturestringThe production the token is a direct child of
$positionintThe position of the token among the children of that production

Returns

?string
Called from 1

Relations§

Implemented by 1
Method calls 1
Type declarations 2