History log of /PHP-Parser/test/code/parser/expr/firstClassCallables.test (Results 1 – 7 of 7)
Revision Date Author Comments
# 4e27a17c 06-Jun-2022 Nikita Popov

Use visitor to assign comments

This fixes the long-standing issue where a comment would get assigned
to all nodes with the same starting position, instead of only the
outer-most one.

Use visitor to assign comments

This fixes the long-standing issue where a comment would get assigned
to all nodes with the same starting position, instead of only the
outer-most one.

Fixes #253.

show more ...


# 23647573 21-May-2023 Nikita Popov

Represent names using string rather than array of parts

In most circumstances we are interested in the whole string, not
the parts split by namespace separator. As names are common, this

Represent names using string rather than array of parts

In most circumstances we are interested in the whole string, not
the parts split by namespace separator. As names are common, this
representation measurably improves memory usage and performance.

show more ...


# 9a5d5c11 20-May-2023 Nikita Popov

Add newline at end of file for many tests

Add the newline in reconstructTest() and run updateTests.php, to
reduce spurious diffs in the future.


# d3d1297c 06-Jun-2022 Nikita Popov

Remove PHP 5 parser


# 4122ff3a 14-Nov-2021 Nikita Popov

Make NullsafeMethodCall extend from CallLike


# 08501991 12-Sep-2021 Nikita Popov

Don't make VariadicPlaceholder an expression

And don't store it in an Arg.


# 13549aa7 03-Sep-2021 Nikita Popov

Add support for first-class callables

I'm somewhat unsure about the AST structure here.
VariadicPlaceholder is not a general expression. Maybe Arg->expr
should be Expr|VariadicPlaceh

Add support for first-class callables

I'm somewhat unsure about the AST structure here.
VariadicPlaceholder is not a general expression. Maybe Arg->expr
should be Expr|VariadicPlaceholder? Or possibly the call arguments
should be an array of Arg|VariadicPlaceholder?

show more ...