History log of /php-ast/ast.c (Results 26 – 50 of 161)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 44944ac8 02-Sep-2020 Remi Collet

fix for 8.0.0beta3


# 49ebd1f8 31-Jul-2020 Tyson Andre

Support PARAM_MODIFIER_PUBLIC on AST_PARAM nodes (#168)

Fixes #167


# 1b5d767d 11-Jul-2020 Tyson Andre

Support match expression v2 rfc (#161)

The naming is based on `switch` statements.
Note that even if statement blocks were supported after a future RFC
those would probably be consid

Support match expression v2 rfc (#161)

The naming is based on `switch` statements.
Note that even if statement blocks were supported after a future RFC
those would probably be considered block **expressions**,
hence the `expr` name for `AST_MATCH_ARM`.

* Regenerate ast_stub.php
* Add missing files to package.xml

show more ...


# 85b6bf88 14-Jun-2020 Tyson Andre

Support php 8.0 "Constructor Promotion" and attributes (#160)

- attributes are only available in AST version 80+,
and will be null before php 8.0


# 66de07d2 06-Jun-2020 Tyson Andre

Revert "Support php 8.0 "Constructor Promotion" and attributes"

This reverts commit b0370e632aad7b2c6feadaa8ea4610e5e0c055c6.


# b0370e63 30-May-2020 Tyson Andre

Support php 8.0 "Constructor Promotion" and attributes

Because AST_CLASS_CONST_DECL is a list of nodes, don't add the key
"attributes" to the hash table in older AST versions.

A

Support php 8.0 "Constructor Promotion" and attributes

Because AST_CLASS_CONST_DECL is a list of nodes, don't add the key
"attributes" to the hash table in older AST versions.

Add visibility modifiers to AST_PARAM, but only in php 8.0+.
MODIFIER_PUBLIC and PARAM_REF are the same value in php 7.4.

show more ...


# feae85ba 26-May-2020 Tyson Andre

Support php 8.0 non-capturing catch (#157)


# f5532bf4 24-May-2020 Tyson Andre

Support php 8.0's mixed type (#156)

Fixes #154

- We've preferred AST versions that are multiples of 10 for previous releases.


# 5e3ebe21 22-Feb-2020 Tyson Andre

Support parsing php 8.0 TYPE_STATIC, add test of $x::class (#150)

Test ::class on objects

Support parsing php 8.0 TYPE_STATIC

Fixes #149


Revision tags: v1.0.5
# 7883996d 23-Nov-2019 Tyson Andre

Support ast\flags\TYPE_FALSE for union types. (#140)

AST_CAST already has some impossible flags such as TYPE_ITERABLE.

This was overlooked when adding AST_TYPE_UNION


Revision tags: v1.0.4
# 2040325f 27-Oct-2019 Tyson Andre

Support PHP 8.0 Union Type RFC


# 5b6f45ea 29-Aug-2019 Nikita Popov

Remove unused function


Revision tags: v1.0.3
# aa3f513e 27-Jul-2019 Tyson Andre

Add ast\flags\PARENTHESIZED_CONDITIONAL for php 7.4

This will make it easier for static analyzers to warn about the lack of
parenthesis, to format code from ASTs, etc.


# 5ed59317 21-Jul-2019 Tyson Andre

Add DIM_ALTERNATIVE_SYNTAX flag for 7.4's $x{$i}

Fixes #128

Fix ast\kind_uses_flags(ast\AST_ARROW_FUNC) in php < 7.4


# 2d8fd587 09-Jul-2019 Nikita Popov

Fix PHP 7.4 build

AST_ASSIGN_OP now directly stores the binary op, assign op opcodes
no longer exist.


Revision tags: v1.0.2
# 0f9c6809 18-May-2019 Tyson Andre

Normalize representation of parenthesized concat in php 7.4

Fixes #123


# 1c71634b 11-May-2019 Tyson Andre

Fix generating signature types of AST_ARROW_FUNC

The return/parameter types would have incorrect AST nodes generated
due to the param/return type check not being added for AST_ARROW_FUNC

Fix generating signature types of AST_ARROW_FUNC

The return/parameter types would have incorrect AST nodes generated
due to the param/return type check not being added for AST_ARROW_FUNC.

Fixes #121

show more ...


# ae71ecc3 04-May-2019 Tyson Andre

Support AST_ARROW_FUNC, add tests


# 0e7ef059 18-Apr-2019 Tyson Andre

Change current AST version from 60 to 70 (#119)

And mark version 70 as no longer being experimental


# 195036c7 11-Feb-2019 Nikita Popov

Fix arginfo: $version is a required parameter


# a3663b43 11-Feb-2019 Remi Collet

display extension and AST version in phpinfo


Revision tags: v1.0.1
# 85595ccb 11-Feb-2019 Nikita Popov

Compatibility with object handler changes in PHP 8


# fb1be834 30-Jan-2019 Tyson Andre

Add AST_CLASS_NAME in AST version 70 (#111)

Add AST_CLASS_NAME in AST version 70

Fixes #109

Tests pass with a local PHP 7.4 installation


# d4c370de 26-Jan-2019 Tyson Andre

Support FLAGS_COALESCE on AST_ASSIGN_OP (`??=`)


# 7fe259ed 12-Jan-2019 Tyson Andre

Add AST_PROP_GROUP in version 70.

The type information is deliberately left out of versions < 70.

`children['type']` is a Node describing the type of the property group,
or null

Add AST_PROP_GROUP in version 70.

The type information is deliberately left out of versions < 70.

`children['type']` is a Node describing the type of the property group,
or null.
`children['props']` is the AST_PROP_DECL.

The property visibility modifier flags were moved to the AST_PROP_GROUP.

Update package.xml

show more ...


1234567