History log of /PHP-Parser/test/code/formatPreservation/classMethodNop.test (Results 1 – 6 of 6)
Revision Date Author Comments
# 1f504d2c 07-Aug-2022 Nikita Popov

Don't trim in Comment::getReformattedText()

In the past, single-line comments were stored together with the
trailing newline. Later we switched to the PHP8 comment
representation, wh

Don't trim in Comment::getReformattedText()

In the past, single-line comments were stored together with the
trailing newline. Later we switched to the PHP8 comment
representation, where the trailing newline is not part of the
comment anymore. As such, there is also no need to trim here.

This is split out from GH-867.

show more ...


# 4abc5312 27-Jun-2020 Nikita Popov

Canonicalize to PHP 8 comment token format

The trailing newline is no longer part of the comment token.


# f56d90d4 09-Feb-2020 Nikita Popov

Add additional tests for modifying a Nop comment


# 46cbd939 09-Feb-2020 Nikita Popov

Place Nop nodes more precisely

If the Nop is created to collect comments, place it directly after
the comment, instead of at the next non-whitespace character.


# bf086d98 09-Feb-2020 Nikita Popov

FPPP: Remove special Nop handling

This results in ugly formatting, but avoids generating invalid
code.


# 521addec 31-Jan-2020 Ryan Weaver

Adding a test case for Nop causing bad new statement placement