/PHP-Parser/lib/PhpParser/ |
H A D | PhpVersion.php | 10 public int $id; variable in PhpParser\\PhpVersion 31 $this->id = $id; 70 return $this->id === $other->id; 77 return $this->id >= $other->id; 84 return $this->id < $other->id; 106 return $this->id >= 50400; 113 return $this->id >= 70100; 120 return $this->id >= 70300; 134 return $this->id < 70000; 141 return $this->id < 70000; [all …]
|
H A D | Lexer.php | 85 if ($token->id === \T_BAD_CHARACTER) { 89 if ($token->id === \ord('&')) { 91 while (isset($tokens[$next]) && $tokens[$next]->id === \T_WHITESPACE) { 96 $token->id = $followedByVarOrVarArg
|
H A D | ParserFactory.php | 20 if ($version->id >= 80000) {
|
H A D | ParserAbstract.php | 251 $tokenId = $token->id; 892 assert($token->id === \T_COMMENT || $token->id == \T_DOC_COMMENT); 893 return \T_DOC_COMMENT === $token->id 906 if (!isset($this->dropTokens[$token->id])) { 910 if ($token->id === \T_COMMENT || $token->id === \T_DOC_COMMENT) { 953 return $nextToken->id === \T_INLINE_HTML ? $nextToken->text : ''; 959 assert($token->id == \T_INLINE_HTML); 962 assert($prevToken->id == \T_CLOSE_TAG);
|
/PHP-Parser/lib/PhpParser/Internal/ |
H A D | TokenPolyfill.php | 20 public int $id; variable in PhpParser\\Internal\\TokenPolyfill 43 $this->id = $id; 54 if ($this->id < 256) { 55 return \chr($this->id); 58 $name = token_name($this->id); 71 return $this->id === $kind; 79 if ($this->id === $entry) { 145 $id = $token[0]; 172 if (($id === \T_NS_SEPARATOR || isset(self::$identifierTokens[$id]))) { 198 $id = \T_NAME_RELATIVE; [all …]
|
H A D | TokenStream.php | 228 $id = $token->id; 230 if ($id === \T_CONSTANT_ENCAPSED_STRING || $id === \T_ENCAPSED_AND_WHITESPACE) { 257 if ($token->id === \T_WHITESPACE) { 262 } elseif ($i === 1 && $this->tokens[0]->id === \T_OPEN_TAG &&
|
/PHP-Parser/lib/PhpParser/Lexer/TokenEmulator/ |
H A D | KeywordEmulator.php | 21 return $prevToken->id !== \T_OBJECT_OPERATOR 22 && $prevToken->id !== \T_NULLSAFE_OBJECT_OPERATOR; 28 if ($token->id === T_STRING && strtolower($token->text) === $keywordString 30 $token->id = $this->getKeywordToken(); 40 if ($tokens[$i]->id === T_WHITESPACE) { 53 if ($token->id === $keywordToken) { 54 $token->id = \T_STRING;
|
H A D | AsymmetricVisibilityTokenEmulator.php | 27 if (isset($map[$token->id]) && $i + 3 < $c && $tokens[$i + 1]->text === '(' && 28 $tokens[$i + 2]->id === \T_STRING && \strtolower($tokens[$i + 2]->text) === 'set' && 34 $map[$token->id], $token->text . '(' . $tokens[$i + 2]->text . ')', 52 if (isset($reverseMap[$token->id]) && 58 new Token($reverseMap[$token->id], $modifier, $token->line, $token->pos), 77 return $prevToken->id !== \T_OBJECT_OPERATOR 78 && $prevToken->id !== \T_NULLSAFE_OBJECT_OPERATOR; 84 if ($tokens[$i]->id === T_WHITESPACE) {
|
H A D | EnumTokenEmulator.php | 23 && $tokens[$pos + 1]->id === \T_WHITESPACE 24 && $tokens[$pos + 2]->id === \T_STRING;
|
H A D | NullsafeTokenEmulator.php | 22 …if ($token->text === '?' && isset($tokens[$i + 1]) && $tokens[$i + 1]->id === \T_OBJECT_OPERATOR) { 31 if ($token->id === \T_ENCAPSED_AND_WHITESPACE && isset($tokens[$i - 1]) 32 && $tokens[$i - 1]->id === \T_VARIABLE
|
H A D | ExplicitOctalEmulator.php | 20 if ($token->id == \T_LNUMBER && $token->text === '0' && 21 isset($tokens[$i + 1]) && $tokens[$i + 1]->id == \T_STRING &&
|
H A D | ReadonlyTokenEmulator.php | 27 ($tokens[$pos + 1]->id === \T_WHITESPACE &&
|
/PHP-Parser/test/code/parser/expr/uvs/ |
H A D | indirectCall.test | 5 id('var_dump')(1); 6 id('id')('var_dump')(2); 7 id()()('var_dump')(4); 8 id(['udef', 'id'])[1]()('var_dump')(5); 13 [$obj, 'id']()('id')($id)('var_dump')(10); 14 'id'()('id')('var_dump')(12); 16 '\id'('var_dump')(14); 23 name: id 53 name: id 95 name: id [all …]
|
/PHP-Parser/lib/PhpParser/NodeVisitor/ |
H A D | CommentAnnotatingVisitor.php | 29 if ($token->id === \T_COMMENT || $token->id === \T_DOC_COMMENT) { 48 if ($token->id === \T_DOC_COMMENT) { 54 if ($token->id === \T_COMMENT) { 60 if ($token->id !== \T_WHITESPACE) {
|
/PHP-Parser/test/PhpParser/ |
H A D | PhpVersionTest.php | 8 $this->assertSame(80200, $version->id); 11 $this->assertSame(80200, $version->id); 14 $this->assertSame(80200, $version->id); 17 $this->assertSame(80200, $version->id);
|
H A D | TokenTest.php | 26 public function testIsIgnorable(int $id, string $text, bool $isIgnorable): void { argument 27 $token = new Token($id, $text);
|
H A D | LexerTest.php | 62 if ($token->id === 0 || $token->isIgnorable()) { 68 $this->assertSame($expectedToken[0], $token->id);
|
/PHP-Parser/test/code/formatPreservation/ |
H A D | listRemoval.test | 178 private $id; 195 private $id;
|
/PHP-Parser/test/PhpParser/Lexer/ |
H A D | EmulativeTest.php | 124 if ($token->id === 0 || $token->isIgnorable()) { 127 $reducedTokens[] = [$token->id, $token->text];
|
/PHP-Parser/doc/component/ |
H A D | Lexer.markdown | 46 public int $id; 93 return $tokens[$i]->id === T_VAR;
|
/PHP-Parser/ |
H A D | UPGRADE-5.0.md | 479 public int $id;
|
H A D | CHANGELOG.md | 329 placeholder id present. `getArgs()` can be used to assert that the call is not a first-class
|