History log of /PHP-Parser/lib/PhpParser/Parser/Php7.php (Results 101 – 125 of 175)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# f967b867 07-Jul-2018 Nikita Popov

Improve error recovery in arrays

Similarly to missing semicolons, the error is not indicated in the
AST.

Fixes #512.


Revision tags: v4.0.2
# 7b201b63 13-May-2018 Nikita Popov

Error recovery for functions without body


# 01e85a26 12-May-2018 Nikita Popov

Support recovery for param without variable

We store an Expr\Error for the variable in this case.


# fa99c3fb 28-Apr-2018 Nikita Popov

Recover from foreach without as


# 7208b1c7 30-Mar-2018 Nikita Popov

Improve error recovery in classes (#492)


Revision tags: v4.0.1
# 7f8ff1b9 10-Mar-2018 Nikita Popov

Add support for list reference assignments

RFC: https://wiki.php.net/rfc/list_reference_assignment


# 91a462ce 10-Mar-2018 Nikita Popov

PHP 7.3: Add support for trailing commas in calls

RFC: https://wiki.php.net/rfc/trailing-comma-function-calls


Revision tags: v4.0.0, v3.1.5
# 08215e76 30-Jan-2018 Nikita Popov

Fix duplicate switch comment assignment

Fixes #469.


Revision tags: v4.0.0beta1, v3.1.4
# 92b39e3d 26-Dec-2017 Nikita Popov

Fix nNextFreeElement for arrays with trailing comma

Ugh.


Revision tags: v4.0.0alpha3, v3.1.3
# a75164c7 12-Nov-2017 Nikita Popov

Rename YYNLSTATES to numNonLeafStates


Revision tags: v4.0.0alpha2, v3.1.2
# b241a121 29-Oct-2017 Nikita Popov

Fix trait alias to semi-reserved name parsing

This was missing the explicit construction of an Identifier node.


Revision tags: v4.0.0alpha1
# d418bf39 01-Oct-2017 Nikita Popov

Preserve comments on empty blocks (#382)


# 5a9fbca5 26-Sep-2017 Nikita Popov

Add attribute for namespace kinds (#417)

One of KIND_SEMICOLON or KIND_BRACED.


Revision tags: v3.1.1
# e2e99f26 18-Aug-2017 TomasVotruba

Add strict_types to lib code


# ec535ea1 13-Aug-2017 TomasVotruba

[cs] use PHP 5.4 short array, since PHP 7.0 is min version


Revision tags: v3.1.0
# 7f862ac2 28-Jun-2017 Nikita Popov

Add support for trailing comma in group use


Revision tags: v3.0.6
# a6846e3b 28-Apr-2017 Nikita Popov

Always use Identifier nodes

The parser will now always generate Identifier nodes (for
non-namespaced identifiers). This obsoletes the useIdentifierNodes
parser option.

Node

Always use Identifier nodes

The parser will now always generate Identifier nodes (for
non-namespaced identifiers). This obsoletes the useIdentifierNodes
parser option.

Node constructors still accepts strings and will implicitly create
an Identifier wrapper. Identifier implement __toString(), so that
outside of strict-mode many things continue to work without changes.

show more ...


Revision tags: v3.0.5
# c12a4c82 26-Feb-2017 Nikita Popov

Fix start attribute assignment for Error in ClassConstFetch


Revision tags: v3.0.4
# df98b041 09-Feb-2017 Nikita Popov

Handle "extends static" etc more gracefully

Use class_name production and emit the same error as for
"extends self" and "extends parent". It's weird that "extends
static" gives a dif

Handle "extends static" etc more gracefully

Use class_name production and emit the same error as for
"extends self" and "extends parent". It's weird that "extends
static" gives a different result than those two.

show more ...


# a8eb2fc6 08-Feb-2017 Nikita Popov

Support recovery from invalid trailing commas


# 62877b5d 05-Feb-2017 Nikita Popov

Recover from missing semicolons on statements


# 8f623fb2 05-Feb-2017 Nikita Popov

Use closures instead of methods for semantic actions

The dispatch using $this->{'reduceRule' . $rule}() is very expensive
because it involves
* One allocation when converting $rule

Use closures instead of methods for semantic actions

The dispatch using $this->{'reduceRule' . $rule}() is very expensive
because it involves
* One allocation when converting $rule to a string
* Another allocation when concatenating the two strings
* Lowercasing during the method call
* Various uncached method checks, e.g. visibility.

Using an array of closures for semantic action dispatch is
significantly more efficient.

show more ...


# 3bbf8d8f 04-Feb-2017 Nikita Popov

Use local var for $stackPos

We're accessing $this->stackPos a lot, and property accesses are
much more expensive than local variable acesses. Its cheaper to
use a local var and pass

Use local var for $stackPos

We're accessing $this->stackPos a lot, and property accesses are
much more expensive than local variable acesses. Its cheaper to
use a local var and pass it as an argument to semantic actions.

show more ...


Revision tags: v3.0.3
# 414adfb1 20-Jan-2017 Nikita Popov

Drop useNopStatements option


# b5fb6f2d 20-Jan-2017 Nikita Popov

Don't require useNopStatements=false for format preservation

Instead assign attributes on Nop nodes and in the pretty printer
specially handle end<start offsets. It's a somewhat weird ca

Don't require useNopStatements=false for format preservation

Instead assign attributes on Nop nodes and in the pretty printer
specially handle end<start offsets. It's a somewhat weird case,
but not wrong per se given the meaning the offsets have.

show more ...


1234567