optimized the way Twig exceptions are managed
authorFabien Potencier <fabien.potencier@gmail.com>
Wed, 17 Oct 2012 17:29:45 +0000 (19:29 +0200)
committerFabien Potencier <fabien.potencier@gmail.com>
Fri, 19 Oct 2012 12:45:58 +0000 (14:45 +0200)
commit2506be1794fb2fcad5b0a8183c32be1d14c4599a
treec04ead116bd564348f2ba635f46b2edb93b29d72
parent244eaf53b30632850c2b582fcea57ff1b9ac407f
optimized the way Twig exceptions are managed

As guessing the template name and the line number of where an error
occurred is quite expensive, this is now avoided as much as possible.
28 files changed:
CHANGELOG
lib/Twig/Compiler.php
lib/Twig/Environment.php
lib/Twig/Error.php
lib/Twig/Error/Loader.php
lib/Twig/ExpressionParser.php
lib/Twig/Node.php
lib/Twig/Node/Expression/Filter.php
lib/Twig/Node/Expression/Function.php
lib/Twig/Node/Expression/Test.php
lib/Twig/Node/Expression/Test/Defined.php
lib/Twig/Node/Sandbox.php
lib/Twig/Parser.php
lib/Twig/Template.php
lib/Twig/Token.php
lib/Twig/TokenParser/AutoEscape.php
lib/Twig/TokenParser/Block.php
lib/Twig/TokenParser/Extends.php
lib/Twig/TokenParser/If.php
lib/Twig/TokenParser/Macro.php
lib/Twig/TokenParser/Sandbox.php
lib/Twig/TokenParser/Set.php
lib/Twig/TokenParser/Use.php
lib/Twig/TokenParserBroker.php
lib/Twig/TokenStream.php
test/Twig/Tests/Fixtures/tags/include/missing.test [new file with mode: 0644]
test/Twig/Tests/Fixtures/tags/include/missing_nested.test [new file with mode: 0644]
test/Twig/Tests/ParserTest.php