php-parser/lib/PhpParser
Nikita Popov c758510a37 Add support for PHP 8.1
With the introduction of intersection types, PHP now lexes the
token '&' either as T_AMPERSAND_(NOT_)FOLLOWED_BY_VAR_OR_VARARG.
This completely breaks parsing of any code containing '&'.

Fix this by canonicalizing to the new token format (unconditionally,
independent of emulation) and adjusting the parser to use the two
new tokens.

This doesn't add actual support for intersection types yet.
2021-07-09 16:52:58 +02:00
..
Builder Add addAttribute() method to Builders with normalizer (#782) 2021-06-16 17:47:22 +02: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 Add emulation for enum keyword 2021-03-20 17:49:44 +01:00
Node [PHP 8.1] Add support for enums (#758) 2021-04-25 21:11:36 +02:00
NodeVisitor Add handling for Enum(Case)s in NameResolver 2021-07-03 15:09:11 +02:00
Parser Add support for PHP 8.1 2021-07-09 16:52:58 +02:00
PrettyPrinter Add handling for Enum(Case)s in NameResolver 2021-07-03 15:09:11 +02:00
Builder.php [CS] New line in the end of file 2018-01-13 16:08:26 +01:00
BuilderFactory.php Add Attribute builder and support for named args (#781) 2021-06-14 23:52:57 +02:00
BuilderHelpers.php Add support for "never" type in the BuilderHelpers::normalizeType() 2021-06-18 17:25:28 +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 Add support for PHP 8.1 2021-07-09 16:52:58 +02: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 Add never type 2021-04-25 22:35:28 +02:00
ParserFactory.php [CS] Open class brackets in new line 2018-01-13 16:03:55 +01:00
PrettyPrinterAbstract.php Avoid ctype_alnum() on integer 2021-07-09 15:46:50 +02:00