1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-12-04 18:28:25 +01:00
PHP-Parser/lib/PHPParser
nikic cdbad02fb2 Fix endAttributes assignment
The end attributes previously were always assigned from the last read token,
which does not necessarily correspond to the last token in the reduced rule.
In particular this occurs if the parser read a new token and based on that
lookahead decided to reduce a rule. The behavior was only correct if the
newly read token was first shifted and then the rule was reduced.

This is fixed by buffering the endAttributes of the new token in a temporary
variable and only assigning them once the token is shifted.
2012-11-20 16:12:19 +01:00
..
Builder Add function builder 2012-03-11 09:02:52 +01:00
Comment Collect normal comments too, not only doc comments 2012-05-06 17:49:04 +02:00
Lexer Add support for yield expressions (PHP 5.5) 2012-09-07 23:41:57 +02:00
Node Scalar_String::create() -> Scalar_String::parse() 2012-10-19 15:17:08 +02:00
NodeVisitor Fix NameResolver to properly copy attributes 2012-05-04 10:18:50 +02:00
PrettyPrinter Rename pSafe to pNoIndent 2012-10-31 17:50:54 +01:00
Serializer Add line number information to comments 2012-06-06 14:33:38 +01:00
Unserializer Add line number information to comments 2012-06-06 14:33:38 +01:00
Autoloader.php Cover errors (and fix errors for namespace names) 2011-11-27 12:58:20 +01:00
Builder.php Add class builder 2012-03-10 17:56:56 +01:00
BuilderAbstract.php Update lib/PHPParser/BuilderAbstract.php 2012-11-06 18:28:15 +01:00
BuilderFactory.php Add function builder 2012-03-11 09:02:52 +01:00
Comment.php Fix some doc comments 2012-09-07 23:41:54 +02:00
Error.php Some more test improvements (+ fixes) 2011-11-27 21:50:19 +01:00
Lexer.php Add line number information to comments 2012-06-06 14:33:38 +01:00
Node.php Fix getAttribute signature in Node interface 2012-05-11 18:48:23 +02:00
NodeAbstract.php Fix $node->getDocComment() 2012-05-06 18:24:26 +02:00
NodeDumper.php Add PHPParser_Node interface 2011-09-21 21:43:19 +02:00
NodeTraverser.php Remove unused variable 2012-03-03 17:01:28 +01:00
NodeVisitor.php Don't use references in NodeTraverser 2011-09-24 23:39:05 +02:00
NodeVisitorAbstract.php Cover, fix and cleanup XML unserializer 2011-12-03 15:15:20 +01:00
Parser.php Fix endAttributes assignment 2012-11-20 16:12:19 +01:00
PrettyPrinterAbstract.php Rename pSafe to pNoIndent 2012-10-31 17:50:54 +01:00
Serializer.php Add XML serialization and unserialization support 2011-11-06 17:07:38 +01:00
Template.php Use inject-once approach for lexer 2012-05-04 10:16:46 +02:00
TemplateLoader.php Add a filesystem template loader. 2012-04-03 23:52:00 +02:00
Unserializer.php Add XML serialization and unserialization support 2011-11-06 17:07:38 +01:00