mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-11-30 04:19:30 +01:00
60d025a914
Previously zero-length nop nodes used the lookahead start attributes and current end attributes. This choice ends up being somewhat weird, because the end attributes will be the at the last non-whitespace, non-comment token, which might be quite far back. More problematically, we may not have encountered any non-discarded token if we're at the start of the file, in which case we will have no end attributes to assign. Change things to use a canonical "zero-length" node representation, where the end position (token & file) will be exactly one before the start position. Fixes #589. |
||
---|---|---|
.. | ||
Builder | ||
Comment | ||
ErrorHandler | ||
Internal | ||
Lexer | ||
Node | ||
NodeVisitor | ||
Parser | ||
PrettyPrinter | ||
Builder.php | ||
BuilderFactory.php | ||
BuilderHelpers.php | ||
Comment.php | ||
ConstExprEvaluationException.php | ||
ConstExprEvaluator.php | ||
Error.php | ||
ErrorHandler.php | ||
JsonDecoder.php | ||
Lexer.php | ||
NameContext.php | ||
Node.php | ||
NodeAbstract.php | ||
NodeDumper.php | ||
NodeFinder.php | ||
NodeTraverser.php | ||
NodeTraverserInterface.php | ||
NodeVisitor.php | ||
NodeVisitorAbstract.php | ||
Parser.php | ||
ParserAbstract.php | ||
ParserFactory.php | ||
PrettyPrinterAbstract.php |