From 403a7c5315beffd269cd4a31ce9307a60d7c8ad6 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 29 Sep 2017 17:41:19 +0200 Subject: [PATCH] Update changelog --- CHANGELOG.md | 3 +++ UPGRADE-4.0.md | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d5850f718b..90baf40e93 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,9 @@ Version 4.0.0-dev * Added `Name` methods `toLowerString()` and `isSpecialClassName()`. * Added `Identifier` and `VarLikeIdentifier` nodes, which are used in place of simple strings in many places. +* Added `getComments()`, `getStartLine()`, `getEndLine()`, `getStartTokenPos()`, `getEndTokenPos()`, + `getStartFilePos()` and `getEndFilePos()` methods to `Node`. These provide a more obvious access + point for the already existing attributes of the same name. ### Changed diff --git a/UPGRADE-4.0.md b/UPGRADE-4.0.md index 3889555cc5..bb8d5f0493 100644 --- a/UPGRADE-4.0.md +++ b/UPGRADE-4.0.md @@ -52,6 +52,13 @@ Because HHVM does not support PHP 7, HHVM is no longer supported. * The `alias` subnode of `UseUse` is now `null` if no explicit alias is given. As such, `use Foo\Bar` and `use Foo\Bar as Bar` are now represented differently. The `getAlias()` method can be used to get the effective alias, even if it is not explicitly given. + +### Miscellaneous + +* The indenentation handling in the pretty printer has been changed (this is only relevant if you + extend the pretty printer). Previously indentation was automatic, and parts were excluded using + `pNoindent()`. Now no-indent is the default and newlins that require indentation should use + `$this->nl`. ### Removed functionality