php-parser/lib/PhpParser/Lexer/TokenEmulator
Nikita Popov 39b046007d Refactor token emulator registration
Only determine needed emulators based on PHP version once, and
add an adaptor that allows treating forward and reverse emulation
the same.

Previously the isEmulationNeeded() check was too conservative,
as it also considered emulators that are not relevant for the
version. Though possibly that check should just be dropped
altogether.
2020-09-06 15:50:52 +02:00
..
CoaleseEqualTokenEmulator.php Fix a token reference 2020-08-01 22:36:49 +02:00
FnTokenEmulator.php Add reverse emulation support 2020-08-01 22:34:36 +02:00
KeywordEmulator.php Add reverse emulation support 2020-08-01 22:34:36 +02:00
MatchTokenEmulator.php Add reverse emulation support 2020-08-01 22:34:36 +02:00
NullsafeTokenEmulator.php Add support for nullsafe operator 2020-08-09 12:08:05 +02:00
NumericLiteralSeparatorEmulator.php Add reverse emulation support 2020-08-01 22:34:36 +02:00
ReverseEmulator.php Refactor token emulator registration 2020-09-06 15:50:52 +02:00
TokenEmulatorInterface.php Add reverse emulation support 2020-08-01 22:34:36 +02:00