Home
last modified time | relevance | path

Searched refs:id (Results 1 – 22 of 22) sorted by relevance

/PHP-Parser/lib/PhpParser/
H A DPhpVersion.php10 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 DLexer.php85 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 DParserFactory.php20 if ($version->id >= 80000) {
H A DParserAbstract.php251 $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 DTokenPolyfill.php20 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 DTokenStream.php228 $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 DKeywordEmulator.php21 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 DAsymmetricVisibilityTokenEmulator.php27 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 DEnumTokenEmulator.php23 && $tokens[$pos + 1]->id === \T_WHITESPACE
24 && $tokens[$pos + 2]->id === \T_STRING;
H A DNullsafeTokenEmulator.php22 …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 DExplicitOctalEmulator.php20 if ($token->id == \T_LNUMBER && $token->text === '0' &&
21 isset($tokens[$i + 1]) && $tokens[$i + 1]->id == \T_STRING &&
H A DReadonlyTokenEmulator.php27 ($tokens[$pos + 1]->id === \T_WHITESPACE &&
/PHP-Parser/test/code/parser/expr/uvs/
H A DindirectCall.test5 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 DCommentAnnotatingVisitor.php29 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 DPhpVersionTest.php8 $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 DTokenTest.php26 public function testIsIgnorable(int $id, string $text, bool $isIgnorable): void { argument
27 $token = new Token($id, $text);
H A DLexerTest.php62 if ($token->id === 0 || $token->isIgnorable()) {
68 $this->assertSame($expectedToken[0], $token->id);
/PHP-Parser/test/code/formatPreservation/
H A DlistRemoval.test178 private $id;
195 private $id;
/PHP-Parser/test/PhpParser/Lexer/
H A DEmulativeTest.php124 if ($token->id === 0 || $token->isIgnorable()) {
127 $reducedTokens[] = [$token->id, $token->text];
/PHP-Parser/doc/component/
H A DLexer.markdown46 public int $id;
93 return $tokens[$i]->id === T_VAR;
/PHP-Parser/
H A DUPGRADE-5.0.md479 public int $id;
H A DCHANGELOG.md329 placeholder id present. `getArgs()` can be used to assert that the call is not a first-class

Completed in 25 milliseconds