History log of /PHP-Parser/ (Results 76 – 100 of 1692)
Revision (<<< Hide revision tags) (Show revision tags >>>)Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
481fec4707-Oct-2023 Abdul Malik Ikhsan

Improve performance of find() and findFirst() when passed $nodes is empty array

4e27a17c06-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 ...

de84f76726-Sep-2023 Nikita Popov

Avoid by-reference iteration in NodeTraverser

No need to create reference wrappers around every element in the
array.

b4183c2b25-Sep-2023 Nikita Popov

Remove Stmt\Throw

This was a backwards-compatibility shim for Expr\Throw.

a1ccf57724-Sep-2023 Nikita Popov

Introduce Stmt\Block

Stmt\Block will be created for { $a; } style blocks, unless these
occur directly inside some structure that is usually combined
with a block.

For exampl

Introduce Stmt\Block

Stmt\Block will be created for { $a; } style blocks, unless these
occur directly inside some structure that is usually combined
with a block.

For example if ($a) { $b; } will continue to use the old
representation (plain array in in If_::$stmts), but a free-standing
{ $b; } will become a Stmt\Block.

Fixes #590.

show more ...

f5adbb5e24-Sep-2023 Nikita Popov

Add rawValue to InterpolatedStringPart and doc strings

For doc strings, the rawValue (on either the String_ or
InterpolatedStringPrts) does not include the leading indentation
(which

Add rawValue to InterpolatedStringPart and doc strings

For doc strings, the rawValue (on either the String_ or
InterpolatedStringPrts) does not include the leading indentation
(which is available as docIndentation) or the trailing newline on
the last part.

show more ...

5edc190b23-Sep-2023 Nikita Popov

Add support for dumping additional attributes

8085116323-Sep-2023 Nikita Popov

Assemble NodeDumper result in property

Append to a property instead of returning strings. This is
significantly faster when dumping large ASTs.

This also fixes an inconsistency

Assemble NodeDumper result in property

Append to a property instead of returning strings. This is
significantly faster when dumping large ASTs.

This also fixes an inconsistency where the indentation level for
strings and comments was off-by-one.

show more ...

8f175fe723-Sep-2023 Nikita Popov

Pass --dry-run to php-cs-fixer

Apparently it only returns the correct exit code with the
--dry-run option.

d8e8065323-Sep-2023 Nikita Popov

Don't parse unicode escapes for PHP < 7.0

We still had the option for this but were hardcoding it to true.
Make it conditional on the PHP version instead.

f4961b8918-Sep-2023 RainX <101971+rainx@users.noreply.github.com>

Add missing phpdoc annotations in AST nodes (#946)

8b9488e117-Sep-2023 Nikita Popov

Explicit test new ParserFactory methods

21fa9c9817-Sep-2023 Nikita Popov

Drop some @covers annotations

0b3c762917-Sep-2023 Nikita Popov

Update docs table of contents

edee19a517-Sep-2023 Nikita Popov

Release PHP-Parser 5.0.0 Beta 1

ea5ba26717-Sep-2023 Nikita Popov

Add upgrading notes for lexer changes

ab51e9d317-Sep-2023 Nikita Popov

Remove superfluous phpdoc tags

These just specify a type that is already specified as a real PHP
type.

1873020b17-Sep-2023 Nikita Popov

Deprecate Node::getLine() in favor of Node::getStartLine()

1b346f7917-Sep-2023 Nikita Popov

Remove deprecated Comment methods

2d3dd4e217-Sep-2023 Nikita Popov

Don't align phpdoc tags

I did this to start with, but then alignment kept being broken
during refactorings, and at some point I switched to not aligning,
and now we have a big mess.

Don't align phpdoc tags

I did this to start with, but then alignment kept being broken
during refactorings, and at some point I switched to not aligning,
and now we have a big mess.

Add a php-cs-fixer rule to consistently not align phpdoc tags.

show more ...


.php-cs-fixer.dist.php
lib/PhpParser/Builder/ClassConst.php
lib/PhpParser/Builder/EnumCase.php
lib/PhpParser/Builder/TraitUseAdaptation.php
lib/PhpParser/Builder/Use_.php
lib/PhpParser/BuilderFactory.php
lib/PhpParser/BuilderHelpers.php
lib/PhpParser/Comment.php
lib/PhpParser/Error.php
lib/PhpParser/Internal/TokenStream.php
lib/PhpParser/NameContext.php
lib/PhpParser/Node.php
lib/PhpParser/Node/Arg.php
lib/PhpParser/Node/ArrayItem.php
lib/PhpParser/Node/Attribute.php
lib/PhpParser/Node/ClosureUse.php
lib/PhpParser/Node/Const_.php
lib/PhpParser/Node/DeclareItem.php
lib/PhpParser/Node/Expr/ArrayDimFetch.php
lib/PhpParser/Node/Expr/Array_.php
lib/PhpParser/Node/Expr/Assign.php
lib/PhpParser/Node/Expr/AssignOp.php
lib/PhpParser/Node/Expr/AssignRef.php
lib/PhpParser/Node/Expr/BinaryOp.php
lib/PhpParser/Node/Expr/BitwiseNot.php
lib/PhpParser/Node/Expr/BooleanNot.php
lib/PhpParser/Node/Expr/Cast.php
lib/PhpParser/Node/Expr/Clone_.php
lib/PhpParser/Node/Expr/ConstFetch.php
lib/PhpParser/Node/Expr/Empty_.php
lib/PhpParser/Node/Expr/ErrorSuppress.php
lib/PhpParser/Node/Expr/Eval_.php
lib/PhpParser/Node/Expr/Exit_.php
lib/PhpParser/Node/Expr/Include_.php
lib/PhpParser/Node/Expr/Isset_.php
lib/PhpParser/Node/Expr/List_.php
lib/PhpParser/Node/Expr/PostDec.php
lib/PhpParser/Node/Expr/PostInc.php
lib/PhpParser/Node/Expr/PreDec.php
lib/PhpParser/Node/Expr/PreInc.php
lib/PhpParser/Node/Expr/Print_.php
lib/PhpParser/Node/Expr/Ternary.php
lib/PhpParser/Node/Expr/Throw_.php
lib/PhpParser/Node/Expr/UnaryMinus.php
lib/PhpParser/Node/Expr/UnaryPlus.php
lib/PhpParser/Node/Expr/Variable.php
lib/PhpParser/Node/Expr/YieldFrom.php
lib/PhpParser/Node/Expr/Yield_.php
lib/PhpParser/Node/Identifier.php
lib/PhpParser/Node/InterpolatedStringPart.php
lib/PhpParser/Node/IntersectionType.php
lib/PhpParser/Node/Name.php
lib/PhpParser/Node/PropertyItem.php
lib/PhpParser/Node/Scalar/Float_.php
lib/PhpParser/Node/Scalar/Int_.php
lib/PhpParser/Node/Scalar/InterpolatedString.php
lib/PhpParser/Node/Scalar/String_.php
lib/PhpParser/Node/StaticVar.php
lib/PhpParser/Node/Stmt/Break_.php
lib/PhpParser/Node/Stmt/Case_.php
lib/PhpParser/Node/Stmt/Catch_.php
lib/PhpParser/Node/Stmt/Const_.php
lib/PhpParser/Node/Stmt/Continue_.php
lib/PhpParser/Node/Stmt/Declare_.php
lib/PhpParser/Node/Stmt/Do_.php
lib/PhpParser/Node/Stmt/Echo_.php
lib/PhpParser/Node/Stmt/ElseIf_.php
lib/PhpParser/Node/Stmt/Else_.php
lib/PhpParser/Node/Stmt/EnumCase.php
lib/PhpParser/Node/Stmt/Expression.php
lib/PhpParser/Node/Stmt/Finally_.php
lib/PhpParser/Node/Stmt/Foreach_.php
lib/PhpParser/Node/Stmt/Global_.php
lib/PhpParser/Node/Stmt/Goto_.php
lib/PhpParser/Node/Stmt/GroupUse.php
lib/PhpParser/Node/Stmt/HaltCompiler.php
lib/PhpParser/Node/Stmt/InlineHTML.php
lib/PhpParser/Node/Stmt/Label.php
lib/PhpParser/Node/Stmt/Namespace_.php
lib/PhpParser/Node/Stmt/Return_.php
lib/PhpParser/Node/Stmt/Static_.php
lib/PhpParser/Node/Stmt/Switch_.php
lib/PhpParser/Node/Stmt/Throw_.php
lib/PhpParser/Node/Stmt/TraitUse.php
lib/PhpParser/Node/Stmt/TraitUseAdaptation/Alias.php
lib/PhpParser/Node/Stmt/TraitUseAdaptation/Precedence.php
lib/PhpParser/Node/Stmt/TryCatch.php
lib/PhpParser/Node/Stmt/Unset_.php
lib/PhpParser/Node/Stmt/Use_.php
lib/PhpParser/Node/Stmt/While_.php
lib/PhpParser/Node/UnionType.php
lib/PhpParser/Node/UseItem.php
lib/PhpParser/NodeDumper.php
lib/PhpParser/NodeFinder.php
lib/PhpParser/NodeVisitor/NameResolver.php
lib/PhpParser/ParserAbstract.php
lib/PhpParser/ParserFactory.php
lib/PhpParser/PrettyPrinterAbstract.php
3c52ea9b17-Sep-2023 Nikita Popov

Document phpVersion effect on pretty printer

5a7753a917-Sep-2023 Nikita Popov

Update changelog

c91c863317-Sep-2023 Nikita Popov

Add PHP 8.3 to CI matrix

e395f04217-Sep-2023 Nikita Popov

Add php-cs-fixer CI job

21ead39017-Sep-2023 Nikita Popov

Update docs after lexer changes

12345678910>>...68