Lines Matching refs:is
4 The lexer is responsible for providing tokens to the parser. Typical use of the library does not re…
5 interaction with the lexer, as an appropriate lexer is created by `PhpParser\ParserFactory`. The to…
23 …This means that certain code that is legal on older versions (namespaced names including whitespac…
27 `T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG` or `T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG`. This is req…
30 Finally, `PhpParser\Lexer\Emulative` performs other, optional emulations. This lexer is parameteriz…
31 and will try to emulate `ext/tokenizer` output for that version. This is done using separate `Token…
34 Emulation is usually used to support newer PHP versions, but there is also very limited support for…
55 public function is($kind): bool;
59 Unlike PHP's own `PhpToken::tokenize()` output, the token array is terminated by a sentinel token w…
61 The lexer is normally invoked implicitly by the parser. In that case, the tokens for the last parse…
71 …* `startFilePos`: Offset into the code string of the first character that is part of the node. Use…
72 …* `endFilePos`: Offset into the code string of the last character that is part of the node. Used b…
80 > **Note:** The example in this section is outdated in that this information is directly available …
85 The token offset information is useful if you wish to examine the exact formatting used for a node.…