Home
last modified time | relevance | path

Searched refs:line (Results 1 – 23 of 23) sorted by relevance

/PHP-Parser/lib/PhpParser/Internal/
H A DTokenPolyfill.php24 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 DNullsafeTokenEmulator.php24 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 DAsymmetricVisibilityTokenEmulator.php35 $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 DAttributeEmulator.php24 new Token(\T_ATTRIBUTE, '#[', $token->line, $token->pos),
H A DExplicitOctalEmulator.php26 new Token($tokenKind, '0' . $tokens[$i + 1]->text, $token->line, $token->pos),
/PHP-Parser/test/
H A Dbootstrap.php16 $lines = array_map(function ($line) {
17 return rtrim($line, " \t");
/PHP-Parser/lib/PhpParser/
H A DLexer.php53 'startLine' => $token->line,
54 'endLine' => $token->line,
106 'startLine' => $lastToken->line,
H A DError.php83 * @param int $line Error start line
85 public function setStartLine(int $line): void { argument
86 $this->attributes['startLine'] = $line;
H A DToken.php16 return $this->line + \substr_count($this->text, "\n");
H A DComment.php181 foreach ($lines as $line) {
182 preg_match('(^\s*)', $line, $matches);
H A DConstExprEvaluator.php67 set_error_handler(function ($num, $str, $file, $line) {
68 throw new \ErrorException($str, 0, $num, $file, $line);
H A DParserAbstract.php329 $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 Dhashbang.test1 Hashbang line
/PHP-Parser/lib/PhpParser/NodeVisitor/
H A DCommentAnnotatingVisitor.php50 $token->text, $token->line, $token->pos, $pos,
56 $token->text, $token->line, $token->pos, $pos,
/PHP-Parser/test/code/parser/scalar/
H A DunicodeEscape.test83 Invalid UTF-8 codepoint escape sequence: Codepoint too large on line 2
/PHP-Parser/doc/component/
H A DJSON_representation.markdown44 "line": 3,
139 From the command line, a JSON dump can be obtained using `vendor/bin/php-parse -j file.php`.
H A DError_handling.markdown7 …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 DLexer.markdown19 …* 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 DPerformance.markdown19 If you are building a command-line utility for use by developers (who often have Xdebug enabled),
/PHP-Parser/
H A DCONTRIBUTING.md4 always on the same line, even for class and method declarations.
H A DCHANGELOG.md65 * 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 DUPGRADE-5.0.md481 public int $line;
531 …* The deprecated `Error` constructor taking a start line has been removed. Pass `['startLine' => $…
/PHP-Parser/lib/PhpParser/Lexer/
H A DEmulative.php141 $token->line += $lineDelta;

Completed in 24 milliseconds