History log of /PHP-Parser/ (Results 426 – 450 of 1692)
Revision (<<< Hide revision tags) (Show revision tags >>>)Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
4c22c62713-Sep-2020 Tomas Votruba

[PHP 8.0] Add attributes support (#661)

Adds support for PHP 8 attributes, represented using `AttrGroup` nodes
containing `Attribute` nodes. The `attrGroup` subnode is added to all
n

[PHP 8.0] Add attributes support (#661)

Adds support for PHP 8 attributes, represented using `AttrGroup` nodes
containing `Attribute` nodes. The `attrGroup` subnode is added to all
nodes that can have attributes.

This is still missing FPPP support.

Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>

show more ...


grammar/php7.y
grammar/rebuildParsers.php
lib/PhpParser/Node/Attribute.php
lib/PhpParser/Node/AttributeGroup.php
lib/PhpParser/Node/Expr/ArrowFunction.php
lib/PhpParser/Node/Expr/Closure.php
lib/PhpParser/Node/FunctionLike.php
lib/PhpParser/Node/Param.php
lib/PhpParser/Node/Stmt/ClassConst.php
lib/PhpParser/Node/Stmt/ClassLike.php
lib/PhpParser/Node/Stmt/ClassMethod.php
lib/PhpParser/Node/Stmt/Class_.php
lib/PhpParser/Node/Stmt/Function_.php
lib/PhpParser/Node/Stmt/Interface_.php
lib/PhpParser/Node/Stmt/Property.php
lib/PhpParser/Node/Stmt/Trait_.php
lib/PhpParser/NodeVisitor/NameResolver.php
lib/PhpParser/Parser/Php7.php
lib/PhpParser/PrettyPrinter/Standard.php
test/PhpParser/NodeAbstractTest.php
test/PhpParser/NodeVisitor/NameResolverTest.php
test/code/parser/commentAtEndOfClass.test
test/code/parser/errorHandling/recovery.test
test/code/parser/expr/arraySpread.test
test/code/parser/expr/arrow_function.test
test/code/parser/expr/closure.test
test/code/parser/expr/closure_use_trailing_comma.test
test/code/parser/expr/uvs/indirectCall.test
test/code/parser/semiReserved.test
test/code/parser/stmt/attributes.test
test/code/parser/stmt/class/abstract.test
test/code/parser/stmt/class/anonymous.test
test/code/parser/stmt/class/class_position.test
test/code/parser/stmt/class/conditional.test
test/code/parser/stmt/class/constModifierErrors.test
test/code/parser/stmt/class/constModifiers.test
test/code/parser/stmt/class/final.test
test/code/parser/stmt/class/implicitPublic.test
test/code/parser/stmt/class/interface.test
test/code/parser/stmt/class/modifier.test
test/code/parser/stmt/class/name.test
test/code/parser/stmt/class/php4Style.test
test/code/parser/stmt/class/propertyTypes.test
test/code/parser/stmt/class/property_promotion.test
test/code/parser/stmt/class/simple.test
test/code/parser/stmt/class/staticMethod.test
test/code/parser/stmt/class/staticType.test
test/code/parser/stmt/class/trait.test
test/code/parser/stmt/function/builtinTypeDeclarations.test
test/code/parser/stmt/function/byRef.test
test/code/parser/stmt/function/conditional.test
test/code/parser/stmt/function/defaultValues.test
test/code/parser/stmt/function/nullableTypes.test
test/code/parser/stmt/function/parameters_trailing_comma.test
test/code/parser/stmt/function/returnTypes.test
test/code/parser/stmt/function/specialVars.test
test/code/parser/stmt/function/typeDeclarations.test
test/code/parser/stmt/function/unionTypes.test
test/code/parser/stmt/function/variadic.test
test/code/parser/stmt/function/variadicDefaultValue.test
test/code/parser/stmt/generator/basic.test
test/code/parser/stmt/generator/yieldPrecedence.test
test/code/parser/stmt/generator/yieldUnaryPrecedence.test
test/code/prettyPrinter/stmt/attributes.test
f66a32e206-Sep-2020 Nikita Popov

Emulate PHP 8 attribute syntax

Perform emulation by replacing #[ with %[, then patching % back
to # and coalescing #[ into T_ATTRIBUTE if it is a freestanding
token.

75abbbd206-Sep-2020 Nikita Popov

Handle flexible heredoc via TokenEmulator

Extend the interface to support preprocessing.

39b0460006-Sep-2020 Nikita Popov

Refactor token emulator registration

Only determine needed emulators based on PHP version once, and
add an adaptor that allows treating forward and reverse emulation
the same.

Refactor token emulator registration

Only determine needed emulators based on PHP version once, and
add an adaptor that allows treating forward and reverse emulation
the same.

Previously the isEmulationNeeded() check was too conservative,
as it also considered emulators that are not relevant for the
version. Though possibly that check should just be dropped
altogether.

show more ...

e3872b8906-Sep-2020 Nikita Popov

Improve compatibility with other libs defining compat tokens

4a40a84c02-Sep-2020 Ondřej Mirtes

Fixed PHPDoc typo

88e5197630-Aug-2020 Nikita Popov

Release PHP-Parser 4.9.1

35306de329-Aug-2020 Nikita Popov

Support visibility modifiers in namespaced names

Fixes #704.

ad365b1b29-Aug-2020 Nikita Popov

FPPP: Fix code block detection during removal

Instead of checking whether there is a {/} before/after the removed
note, check whether {/} occurs in the between-node range. Dropping
t

FPPP: Fix code block detection during removal

Instead of checking whether there is a {/} before/after the removed
note, check whether {/} occurs in the between-node range. Dropping
that is what we're really concerned about here.

show more ...

4bc8243223-Aug-2020 Nikita Popov

Only special-case brace handling for statement lists

Don't interpret the } before a catch clause as a block statement
and trigger a pretty printing fallback.

fd6052e323-Aug-2020 Ondrej Mirtes

FPPP failing tests

bd72280923-Aug-2020 Nikita Popov

FPPP: Support removing nodes from start of list

56356e4a22-Aug-2020 Viktor Szépe

Remove repeated word from PHPDoc in Name

aaee038b18-Aug-2020 Nikita Popov

Release PHP-Parser 4.9.0

f9d35fe110-Aug-2020 Nikita Popov

Fix casing of class name

8bcaa42609-Aug-2020 Nikita Popov

Add parens for new/instanceof with complex expression

This is not fully accurate because the rules for "new variables"
are different than the rules for dereferenceable LHS.

feb6bf7a09-Aug-2020 Nikita Popov

Wrap class const LHS in parens if necessary

This looks like a very old bug in the pretty printer that showed
up in PHP 8 tests.

0cee208809-Aug-2020 Nikita Popov

Remove self/parent/static restriction for namespace names

This no longer applies as of PHP 8.0.

78e08fc109-Aug-2020 Nikita Popov

Allow keywords in namespace declaration

3aadc15e09-Aug-2020 Nikita Popov

Support keywords in namespaced names

a983505809-Aug-2020 Nikita Popov

Add support for throw expression

7f39876909-Aug-2020 Nikita Popov

Add support for static return type

98f7f39d09-Aug-2020 Nikita Popov

Add named argument support

Not adding any explicit FPPP support, as I don't think add/remove
of names can be handled any better than full reformatting.

7221195009-Aug-2020 Nikita Popov

Fine grained version choice for test_old

544aee1605-Aug-2020 Graham Campbell

Fix up tests

1...<<11121314151617181920>>...68