php-parser/test
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
..
code Fix #738 incorrect start line for traits 2020-12-20 10:52:47 +01:00
PhpParser Make keyword emulation check case-insensitive 2020-09-23 20:19:40 +02:00
bootstrap.php [CS] New line in the end of file 2018-01-13 16:08:26 +01:00
updateTests.php Fix updateTests.php 2018-07-22 21:18:34 +02:00