php-parser/test/code/parser
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
..
errorHandling Fix #738 incorrect start line for traits 2020-12-20 10:52:47 +01:00
expr Fix #741 incorrect varvar positions 2020-12-19 22:03:43 +01:00
scalar [PHP 7.4] Add support for numeric literal separators (#615) 2019-06-30 12:13:28 +02:00
stmt Fix #738 incorrect start line for traits 2020-12-20 10:52:47 +01:00
blockComments.test Merge branch '3.x' 2017-10-01 16:55:54 +02:00
commentAtEndOfClass.test [PHP 8.0] Add attributes support (#661) 2020-09-13 21:01:17 +02:00
comments.test Perform automated test update 2017-01-19 22:25:22 +01:00
nopPositions.test Place Nop nodes more precisely 2020-02-09 17:10:33 +01:00
semiReserved.test [PHP 8.0] Add attributes support (#661) 2020-09-13 21:01:17 +02:00