Searched refs:tokenize (Results 1 – 10 of 10) sorted by relevance
/PHP-Parser/test/PhpParser/ |
H A D | LexerTest.php | 23 $lexer->tokenize($code, $errorHandler); 52 $lexer->tokenize("<?php readonly /*"); 60 $tokens = $lexer->tokenize($code); 117 $this->assertEquals($expectedTokens, $lexer->tokenize($code));
|
H A D | ParserTestAbstract.php | 208 public function tokenize(string $code, ?ErrorHandler $errorHandler = null): array { function in PhpParser\\InvalidTokenLexer
|
/PHP-Parser/test/PhpParser/Lexer/ |
H A D | EmulativeTest.php | 29 ], $lexer->tokenize($code)); 43 ], $lexer->tokenize($code)); 58 ], $lexer->tokenize($code)); 74 ], $lexer->tokenize($code)); 89 ], $lexer->tokenize($code)); 137 $this->assertSameTokens($expectedTokens, $lexer->tokenize('<?php ' . $code)); 153 ], $lexer->tokenize($fullCode)); 162 $lexer->tokenize('<?php ' . $code . "\0", $errorHandler); 435 $this->assertSameTokens($expectedTokens, $lexer->tokenize('<?php ' . $code));
|
/PHP-Parser/lib/PhpParser/ |
H A D | Lexer.php | 24 public function tokenize(string $code, ?ErrorHandler $errorHandler = null): array { function in PhpParser\\Lexer 31 $tokens = @Token::tokenize($code);
|
H A D | ParserAbstract.php | 184 $this->tokens = $this->lexer->tokenize($code, $this->errorHandler);
|
/PHP-Parser/lib/PhpParser/Lexer/ |
H A D | Emulative.php | 64 public function tokenize(string $code, ?ErrorHandler $errorHandler = null): array { function in PhpParser\\Lexer\\Emulative 71 return parent::tokenize($code, $errorHandler); 84 $tokens = parent::tokenize($code, $collector);
|
/PHP-Parser/lib/PhpParser/Internal/ |
H A D | TokenPolyfill.php | 124 public static function tokenize(string $code, int $flags = 0): array { function in PhpParser\\Internal\\TokenPolyfill
|
/PHP-Parser/doc/component/ |
H A D | Lexer.markdown | 40 The `Lexer::tokenize()` method returns an array of `PhpParser\Token`s. The most important parts of … 59 Unlike PHP's own `PhpToken::tokenize()` output, the token array is terminated by a sentinel token w…
|
/PHP-Parser/ |
H A D | UPGRADE-5.0.md | 493 The lexer API is reduced to a single `Lexer::tokenize()` method, which returns an array of tokens. …
|
H A D | CHANGELOG.md | 140 there is a single method `tokenize()` returning the tokens.
|
Completed in 51 milliseconds