History log of /PHP-Parser/test/code/formatPreservation/anonClasses.test (Results 1 – 3 of 3)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: v4.3.0, v4.2.5, v4.2.4, v4.2.3, v4.2.2, v4.2.1, v4.2.0
# d5180f0d 12-Jan-2019 Nikita Popov

Change test to use correct node type

Class name is an Identifier, not a Name.


# 90ee36a7 26-Dec-2018 Nikita Popov

Actually remove assertion...


Revision tags: v4.1.1, v4.1.0, v4.0.4, v4.0.3, v4.0.2, v4.0.1, v4.0.0, v3.1.5, v4.0.0beta1, v3.1.4, v4.0.0alpha3, v3.1.3, v4.0.0alpha2, v3.1.2
# 5900d78c 29-Oct-2017 Nikita Popov

FPPP: Support anonymous classes (#432)

This is a huge hack... We temporarily create a new node with the
correct structure and use that for printing.

I think it would be better t

FPPP: Support anonymous classes (#432)

This is a huge hack... We temporarily create a new node with the
correct structure and use that for printing.

I think it would be better to always use a separate node type for
NewAnonClass, rather than using a combination of New and Class,
but this would require some larger changes, as this node type would
have to be both Expr and ClassLike, which is not possible right now,
as the latter is a class rather than an interface...

show more ...