History log of /PHP-Parser/lib/PhpParser/Parser/Php7.php (Results 126 – 150 of 175)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 48d3243a 19-Jan-2017 Nikita Popov

Drop last vestiges of consistent var mode flag


# 1bfbd7bc 19-Jan-2017 Nikita Popov

Make useExpressionStatement only supported mode


# 4d2a4d02 23-Dec-2016 Nikita Popov

Add first shot at format preserving pretty printer


# 9b2d35d1 24-Dec-2016 Nikita Popov

Add expression statement mode


# 0f582e17 23-Dec-2016 Nikita Popov

Add VarLikeIdentifier

For representing Identifiers that have an implicit leading $.

With this done, maybe go one step further?
* Rename VarLikeIdentifier -> VarIdentifier / Var

Add VarLikeIdentifier

For representing Identifiers that have an implicit leading $.

With this done, maybe go one step further?
* Rename VarLikeIdentifier -> VarIdentifier / VarName
* Use VarIdentifier / VarName also as an inner node in Variable.
Not sure if this adds any real value.

show more ...


# d32d937d 22-Dec-2016 Nikita Popov

Use Identifier for property names as well


# f46c909b 22-Dec-2016 Nikita Popov

Represent prop in static prop fetch using Identifier


# a947e731 22-Dec-2016 Nikita Popov

Add useConsistentVariableNodes mode

The parameter case is a bit weird, because the subnode is called
"name" here, rather than "var". Nothing we can do about that in
this version thou

Add useConsistentVariableNodes mode

The parameter case is a bit weird, because the subnode is called
"name" here, rather than "var". Nothing we can do about that in
this version though.

The two parser options might be merged. I've kept it separate,
because I think this variable representation should become the
default (or even only representation) in the future, while I'm
less sure about the Identifier thing.

show more ...


# 122f4499 22-Dec-2016 Nikita Popov

Represent builtin types using Identifier as well


# 6bcc6c31 22-Dec-2016 Nikita Popov

Add useIdentifierNodes mode to parser

In this mode non-namespaced names that are currently represented
using strings will be represented using Identifier nodes instead.
Identifier no

Add useIdentifierNodes mode to parser

In this mode non-namespaced names that are currently represented
using strings will be represented using Identifier nodes instead.
Identifier nodes have a string $name subnode and coerce to string.

This allows preserving attributes and in particular location
information on identifiers.

show more ...


# c1e0bab4 11-Dec-2016 Nikita Popov

Add support for negative interpolated offsets

A late addition to PHP 7.1 which I missed.


# 70319e27 07-Dec-2016 Nikita Popov

Parse 0 in "$a[0]" as LNumber (#325)


Revision tags: v3.0.2, v3.0.1
# 3e158a23 01-Dec-2016 Nikita Popov

Wrap List_ in ArrayItem

This was correctly done for the 'key'=>list() form, but not for
unkeyed nested lists.


Revision tags: v3.0.0
# e52ffc44 22-Nov-2016 Nikita Popov

Support recovery from Foo::


# c5cdd5ad 21-Nov-2016 Nikita Popov

Support recovery from free-standing $


# c0630f81 21-Nov-2016 Nikita Popov

Support recovery for new without class name


Revision tags: v3.0.0beta2
# caa5c0cc 08-Oct-2016 Nikita Popov

Graceful handling for "special" errors

Nearly all special errors are now handled gracefully, i.e. the
parser will be able to continue after encountering them. In some
cases the assoc

Graceful handling for "special" errors

Nearly all special errors are now handled gracefully, i.e. the
parser will be able to continue after encountering them. In some
cases the associated error range has been improved using the new
end attribute stack.

To achieve this the error handling code has been moved out of the
node constructors and into special methods in the parser.

show more ...


# 2be7838f 08-Oct-2016 Nikita Popov

Correctly assign attrs for encaps vars


# f6eb341b 08-Oct-2016 Nikita Popov

Fix GroupUse prefix attribute assignment


Revision tags: v3.0.0beta1, v2.1.1
# 83f34e7f 30-Aug-2016 Nikita Popov

Retain comments on blocks on first inner statement


# 13f7321d 30-Aug-2016 Nikita Popov

Forbid "=& new" in PHP 7 mode


# 977cbab8 25-Jul-2016 Nikita Popov

Decrement errorState when recovering from -> error

It's likely that an error after -> will trigger another one due to
missing semicolon without shifting a single token. We prevent an

Decrement errorState when recovering from -> error

It's likely that an error after -> will trigger another one due to
missing semicolon without shifting a single token. We prevent an
immediate failure in this case by manually setting errorState to 2,
which will suppress the duplicate error message, but allow error
recovery.

show more ...


# 09086fbe 25-Jul-2016 Nikita Popov

Support partial parsing of $foo->

Introduce Error node for this purpose.


Revision tags: v3.0.0alpha1
# 5f97b125 25-Jul-2016 Nikita Popov

Introduce explicit Finally node


# 867ae514 22-Jul-2016 Nikita Popov

Bring Trait constructor in line with Class/interface


1234567