/PHP-Parser/lib/PhpParser/Internal/ |
H A D | TokenPolyfill.php | 24 public int $line; variable in PhpParser\\Internal\\TokenPolyfill 42 final public function __construct(int $id, string $text, int $line = -1, int $pos = -1) { argument 45 $this->line = $line; 128 $line = 1; 138 $tokens[] = new static(\ord('"'), $token, $line, $pos); 141 $tokens[] = new static(\ord($token), $token, $line, $pos); 154 $tokens[] = new static($id, $text, $line, $pos); 164 $line++; 202 $tokens[] = new static($id, $newText, $line, $pos); 209 $tokens[] = new static($id, $text, $line, $pos); [all …]
|
/PHP-Parser/lib/PhpParser/Lexer/TokenEmulator/ |
H A D | NullsafeTokenEmulator.php | 24 new Token(\T_NULLSAFE_OBJECT_OPERATOR, '?->', $token->line, $token->pos), 36 new Token(\T_NULLSAFE_OBJECT_OPERATOR, '?->', $token->line, $token->pos), 37 new Token(\T_STRING, $matches[1], $token->line, $token->pos + 3), 44 $token->line, $token->pos + $matchLen
|
H A D | AsymmetricVisibilityTokenEmulator.php | 35 $token->line, $token->pos), 58 new Token($reverseMap[$token->id], $modifier, $token->line, $token->pos), 59 new Token(\ord('('), '(', $token->line, $token->pos + $modifierLen), 60 new Token(\T_STRING, $set, $token->line, $token->pos + $modifierLen + 1), 61 new Token(\ord(')'), ')', $token->line, $token->pos + $modifierLen + 4),
|
H A D | AttributeEmulator.php | 24 new Token(\T_ATTRIBUTE, '#[', $token->line, $token->pos),
|
H A D | ExplicitOctalEmulator.php | 26 new Token($tokenKind, '0' . $tokens[$i + 1]->text, $token->line, $token->pos),
|
/PHP-Parser/test/ |
H A D | bootstrap.php | 16 $lines = array_map(function ($line) { 17 return rtrim($line, " \t");
|
/PHP-Parser/lib/PhpParser/ |
H A D | Lexer.php | 53 'startLine' => $token->line, 54 'endLine' => $token->line, 106 'startLine' => $lastToken->line,
|
H A D | Error.php | 83 * @param int $line Error start line 85 public function setStartLine(int $line): void { argument 86 $this->attributes['startLine'] = $line;
|
H A D | Token.php | 16 return $this->line + \substr_count($this->text, "\n");
|
H A D | Comment.php | 181 foreach ($lines as $line) { 182 preg_match('(^\s*)', $line, $matches);
|
H A D | ConstExprEvaluator.php | 67 set_error_handler(function ($num, $str, $file, $line) { 68 throw new \ErrorException($str, 0, $num, $file, $line);
|
H A D | ParserAbstract.php | 329 $e->setStartLine($this->tokens[$this->tokenPos]->line); 483 'startLine' => $startToken->line, 486 'endLine' => $afterEndToken->line, 505 'startLine' => $token->line, 508 'endLine' => $token->line, 894 ? new Comment\Doc($token->text, $token->line, $token->pos, $tokenPos, 896 : new Comment($token->text, $token->line, $token->pos, $tokenPos,
|
/PHP-Parser/test/code/parser/stmt/ |
H A D | hashbang.test | 1 Hashbang line
|
/PHP-Parser/lib/PhpParser/NodeVisitor/ |
H A D | CommentAnnotatingVisitor.php | 50 $token->text, $token->line, $token->pos, $pos, 56 $token->text, $token->line, $token->pos, $pos,
|
/PHP-Parser/test/code/parser/scalar/ |
H A D | unicodeEscape.test | 83 Invalid UTF-8 codepoint escape sequence: Codepoint too large on line 2
|
/PHP-Parser/doc/component/ |
H A D | JSON_representation.markdown | 44 "line": 3, 139 From the command line, a JSON dump can be obtained using `vendor/bin/php-parse -j file.php`.
|
H A D | Error_handling.markdown | 7 …formation is available depends on the origin of the error. At a minimum the start line of the error 28 Both line numbers and column numbers are 1-based. EOF errors will be located at the position one pa…
|
H A D | Lexer.markdown | 19 …* Single-line comments use the PHP 8.0 representation that does not include a trailing newline. Th… 49 /** @var int The 1-based starting line of the token (or -1 if unknown). */ 50 public int $line;
|
H A D | Performance.markdown | 19 If you are building a command-line utility for use by developers (who often have Xdebug enabled),
|
/PHP-Parser/ |
H A D | CONTRIBUTING.md | 4 always on the same line, even for class and method declarations.
|
H A D | CHANGELOG.md | 65 * Fix handling of indentation on next line after opening PHP tag in formatting-preserving pretty 81 line. Now an `Error` will be thrown early to indicate the problem. 226 * `__halt_compiler` is no longer recognized as a semi-reserved keyword, in line with PHP behavior. 232 * Removed deprecated `Error` constructor taking a line number instead of an attributes array. 438 * [PHP 8.0] Added support for nullsafe properties inside interpolated strings, in line with an 536 * Added end line, token position and file position information for comments. 730 * In formatting-preserving pretty printer: Improved formatting of elements inserted into multi-line 1063 * `Name::slice()` now supports lengths and negative offsets. This brings it in line with 1162 * A shebang line like `#!/usr/bin/env php` is now allowed at the start of a namespaced file. 1189 * Update group use support to be in line with recent PHP 7.0 builds.
|
H A D | UPGRADE-5.0.md | 481 public int $line; 531 …* The deprecated `Error` constructor taking a start line has been removed. Pass `['startLine' => $…
|
/PHP-Parser/lib/PhpParser/Lexer/ |
H A D | Emulative.php | 141 $token->line += $lineDelta;
|