History log of /PHP-Parser/lib/PhpParser/PrettyPrinter/Standard.php (Results 101 – 125 of 160)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 9d599040 13-Aug-2017 TomasVotruba

[cs] spaces


# ec535ea1 13-Aug-2017 TomasVotruba

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


Revision tags: v3.1.0
# 5a3a1ec2 19-Jul-2017 Nikita Popov

Handle LC_NUMERIC with comma decimal separator

Closes #399.


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

Distinguish between implicit/explicit alias

The UseUse::$alias node can now be null if an alias is not
explicitly given. As such "use Foo\Bar" and "use Foo\Bar as Bar"
are now repres

Distinguish between implicit/explicit alias

The UseUse::$alias node can now be null if an alias is not
explicitly given. As such "use Foo\Bar" and "use Foo\Bar as Bar"
are now represented differently.

The UseUse->getAlias() method replicates the previous semantics,
by returning "Bar" in both cases.

show more ...


# 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 ...


# c3cbf079 09-Apr-2017 Nikita Popov

Pretty printer: Preserve comments in arrays and calls

If call arguments or array contains comments, print it in multiline
form, so that comments may be preserved.


Revision tags: v3.0.5, v3.0.4
# 4e558970 08-Feb-2017 Jennifer Hodgdon

Change one function to protected


Revision tags: v3.0.3
# d287c167 03-Feb-2017 Nikita Popov

Pretty print: Handle Error in ClassConstFetch


# fd7ac251 29-Jan-2017 Nikita Popov

Throw if pretty-printing Error node


# cb5dd289 21-Jan-2017 Nikita Popov

Don't include whitespace directly in catch/finally print


# d7f3c4f9 19-Jan-2017 Nikita Popov

Renamve Param::$name to Param::$var

As it now contains a Variable node.


# a79306cc 19-Jan-2017 Nikita Popov

Rename StaticVar::$name to $var

As it now holds a Variable


# 6238f5f9 19-Jan-2017 Nikita Popov

Adjust code for constitent var mode


# 4d2a4d02 23-Dec-2016 Nikita Popov

Add first shot at format preserving pretty printer


# 58970e2a 11-Dec-2016 Nikita Popov

Improve LNumber/DNumber pretty printing

* Support PHP_INT_MIN
* Support negative binary/octal/hex numbers
* Support INF/-INF/NAN in namespaces


Revision tags: v3.0.2
# 5219f757 06-Dec-2016 Nikita Popov

Fix pretty-printing of nullable types


Revision tags: v3.0.1, v3.0.0
# bcdfb703 23-Nov-2016 Nikita Popov

Cleanup imports

Thanks PhpStorm :)


Revision tags: v3.0.0beta2, v3.0.0beta1, v2.1.1
# ec614c95 25-Jul-2016 Nikita Popov

Add hasLeadingNewline attribute to InlineHTML

Use this attribute to not print an extra newline if the original
code did not have it.


Revision tags: v3.0.0alpha1
# 818ef2e6 25-Jul-2016 Nikita Popov

Make PrettyPrinter\Standard methods protected

I'm not sure how these ever ended up being public.


# 5f97b125 25-Jul-2016 Nikita Popov

Introduce explicit Finally node


# 18129480 25-Jul-2016 Nikita Popov

Rename $type subnode to $flags

Type makes it sound like a type-hint, and on a number of other nodes
$type is used for exactly that. Use $flags to hold modifiers instead.


# 537b59d4 22-Jul-2016 Nikita Popov

PHP 7.1: Support multi-catch

Catch::$type is now an array Catch::$types.


# 574665b4 09-Jul-2016 Nikita Popov

PHP 7.1: list() with keys

Expr\List will now contain ArrayItems instead of plain variables.
I'm reusing ArrayItem, because code handling list() must also handle
arrays, and this allo

PHP 7.1: list() with keys

Expr\List will now contain ArrayItems instead of plain variables.
I'm reusing ArrayItem, because code handling list() must also handle
arrays, and this allows both to go through the same code path.

This also renames Expr\List->vars to ->items.

TODO: Should Expr\List be dropped in favor of Expr\Array with an
extra flag?

show more ...


# 437890d3 06-Jul-2016 Nikita Popov

PHP 7: Short destructuring syntax

Potentially the pretty printer should force use of [] in assignment
context, instead of relying on the existance of the right attribute.


# 1edf72c0 06-Jul-2016 Nikita Popov

PHP 7: Support nullable types

Using a new NullableType node.


1234567