1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-11-26 20:04:48 +01:00
PHP-Parser/lib/PhpParser
Nikita Popov d3d1ee470a Fix #738 incorrect start line for traits
Empty productions are supposed to be assigned the start attributes
of the lookahead token. Currently, this happens by assigning above
the current stack position when the token it read.

This fails in a situation where we first reduce an empty production
higher up in the stack, and then again reduce an empty production
lower in the stack, without consuming the lookahead token in the
meantime.

Fix this by moving the assignment into the reduction phase. We
also need to do this for error productions, which are effectively
empty.
2020-12-20 10:52:47 +01:00
..
Builder Add union type to ParamBuilder and BuilderHelpers 2020-01-05 00:34:49 +01:00
Comment [CS] New line in the end of file 2018-01-13 16:08:26 +01:00
ErrorHandler [CS] New line in the end of file 2018-01-13 16:08:26 +01:00
Internal Allow both '{' and T_CURLY_OPEN as curly bracket (#732) 2020-12-03 18:42:00 +01:00
Lexer Make keyword emulation check case-insensitive 2020-09-23 20:19:40 +02:00
Node [PHP 8.0] Add attributes support (#661) 2020-09-13 21:01:17 +02:00
NodeVisitor [PHP 8.0] Add attributes support (#661) 2020-09-13 21:01:17 +02:00
Parser Fix #741 incorrect varvar positions 2020-12-19 22:03:43 +01:00
PrettyPrinter Upgrade some PrettyPrinter methods to protected 2020-10-17 22:04:40 +02:00
Builder.php [CS] New line in the end of file 2018-01-13 16:08:26 +01:00
BuilderFactory.php updates via "rectorphp/rector" (#573) 2019-01-19 11:18:00 +01:00
BuilderHelpers.php Add support for the mixed type 2020-05-28 23:39:04 +02:00
Comment.php Add end line / file position / token position to comments 2020-02-09 16:53:46 +01:00
ConstExprEvaluationException.php [CS] New line in the end of file 2018-01-13 16:08:26 +01:00
ConstExprEvaluator.php Improve constant evaluation and add docs 2018-01-27 17:47:45 +01:00
Error.php Fixes from PHPStan (#502) 2018-05-19 11:12:24 +02:00
ErrorHandler.php [CS] New line in the end of file 2018-01-13 16:08:26 +01:00
JsonDecoder.php Remove trailing comma 2020-02-09 17:15:59 +01:00
Lexer.php Remove useless code left from old implementation 2020-12-02 12:54:15 +01:00
NameContext.php [CS] New line in the end of file 2018-01-13 16:08:26 +01:00
Node.php Don't require doc comment to be last comment 2020-02-15 10:52:34 +01:00
NodeAbstract.php Don't require doc comment to be last comment 2020-02-15 10:52:34 +01:00
NodeDumper.php [CS] Use elseif instead of else if 2018-01-13 16:03:36 +01:00
NodeFinder.php [CS] New line in the end of file 2018-01-13 16:08:26 +01:00
NodeTraverser.php Add new constant to be returned from enterNode() to not traverse current and child nodes (#536) 2018-10-08 22:26:00 +02:00
NodeTraverserInterface.php Add methods visibility (#464) 2018-01-10 19:07:41 +01:00
NodeVisitor.php [CS] New line in the end of file 2018-01-13 16:08:26 +01:00
NodeVisitorAbstract.php Add strict_types to lib code 2017-08-18 23:00:13 +02:00
Parser.php [CS] Open class brackets in new line 2018-01-13 16:03:55 +01:00
ParserAbstract.php Fix #738 incorrect start line for traits 2020-12-20 10:52:47 +01:00
ParserFactory.php [CS] Open class brackets in new line 2018-01-13 16:03:55 +01:00
PrettyPrinterAbstract.php Fix #718: PrettyPrinter breaks nested ternaries 2020-09-30 20:42:58 +02:00