History log of /php-ast/ast_stub.php (Results 1 – 25 of 41)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1fc2c3a1 10-Aug-2024 Tyson Andre

Support PHP 8.4 property hooks in AST version 110 (#241)

Add 'hooks' child of type `AST_PROPERTY_HOOK` to `AST_PROP_ELEM` and
`AST_PARAM` (constructor property promotion) in AST version

Support PHP 8.4 property hooks in AST version 110 (#241)

Add 'hooks' child of type `AST_PROPERTY_HOOK` to `AST_PROP_ELEM` and
`AST_PARAM` (constructor property promotion) in AST version 110.

In version 110, change `AST_CLOSURE` and `AST_ARROW_FUNC` nodes to have no `name`.

Fixes #240

show more ...


# 260678d4 09-Aug-2022 Tyson Andre

Add encaps var flags for AST_DIM/AST_VAR for php 8.2 (#227)

For https://wiki.php.net/rfc/deprecate_dollar_brace_string_interpolation

Closes #224

In util.php: Don't print a

Add encaps var flags for AST_DIM/AST_VAR for php 8.2 (#227)

For https://wiki.php.net/rfc/deprecate_dollar_brace_string_interpolation

Closes #224

In util.php: Don't print a 0 flag value for combinable flags

For php-ast self-testing, minimize the number of changes in the future
when similar combinable flags get added to existing ast var types.

show more ...


# e7dceba7 08-Aug-2022 Tyson Andre

Add support for TYPE_TRUE for php 8.2 (#229)

* Add support for TYPE_TRUE for php 8.2

https://wiki.php.net/rfc/true-type

* Fix test name


# e460595b 07-Aug-2022 Tyson Andre

Add tests, flag constants for php 8.2 readonly classes (#228)

* Add tests, flag constants for php 8.2 readonly classes

* Address review comments


# 8f1e75f6 27-Nov-2021 Tyson Andre

Release 1.0.16: Optimize ast\Node property setting. Document `#[AllowsDynamicProperties]` in stubs (#219)

Add `#[AllowsDynamicProperties]` to AST stubs

Use OBJ_PROP_NUM for ast\Node

Release 1.0.16: Optimize ast\Node property setting. Document `#[AllowsDynamicProperties]` in stubs (#219)

Add `#[AllowsDynamicProperties]` to AST stubs

Use OBJ_PROP_NUM for ast\Node and ast\Metadata building

(Do it even for Metadata.
The resulting assembly code should be smaller and it's an example of
how to write other classes efficiently in the future)

Mark 1.0.15 and 1.0.16 as stable

show more ...


# c533904c 24-Jul-2021 Tyson Andre

Support php 8.1 read-only properties, first-class callable syntax (#209)

Add php 8.1 readonly property support, first-class callables

And run all tests even after the first case fai

Support php 8.1 read-only properties, first-class callable syntax (#209)

Add php 8.1 readonly property support, first-class callables

And run all tests even after the first case fails

Mark ast version 90 as current and 85 as no longer experimental.

Add date to changelog, bump version in php_ast.h

show more ...


# 83c769f5 07-Jul-2021 Tyson Andre

Support php 8.1 intersection types (#208)

* Add tests of final class constant modifier, update metadata (https://wiki.php.net/rfc/final_class_const for php 8.1)
* Support proposed php 8.

Support php 8.1 intersection types (#208)

* Add tests of final class constant modifier, update metadata (https://wiki.php.net/rfc/final_class_const for php 8.1)
* Support proposed php 8.1 intersection types (https://wiki.php.net/rfc/pure-intersection-types)
* Allow using any modifier on any class element in metadata

show more ...


# f8248ff8 14-May-2021 Tyson Andre

Support doc comments for php 8.1 code, combine equivalent switch cases (#204)

* Support parsing php 8.1 enum doc comments

Requires https://github.com/php/php-src/pull/6984
(php

Support doc comments for php 8.1 code, combine equivalent switch cases (#204)

* Support parsing php 8.1 enum doc comments

Requires https://github.com/php/php-src/pull/6984
(php 8.1 has no public alphas yet)

* Combine equivalent case statements in generated code

show more ...


# b09570df 17-Apr-2021 Tyson Andre

Support php 8.1 never RFC (#199)

https://wiki.php.net/rfc/noreturn_type


# 28f5201f 05-Apr-2021 Tyson Andre

Support php 8.1 enums (#197)

* Support php 8.1 enums

* Test with travis and php 8.0, again

* AST_ENUM_CASE can have attributes

* Set `type` property of `AST_CLASS`

Support php 8.1 enums (#197)

* Support php 8.1 enums

* Test with travis and php 8.0, again

* AST_ENUM_CASE can have attributes

* Set `type` property of `AST_CLASS` iff ast version 85+

(iff === if and only if)

* Add AST_CLASS's type in version 85+ prior to php 8.1

* [skip ci] Document support for php 8.1 enums

show more ...


# 15a7ebd5 12-Sep-2020 Tyson Andre

Add param defaults to reflection (of php-ast's functions) in php 8 (#152)

Add param defaults to reflection in php 8

Support generated arginfo macros in older php versions

T

Add param defaults to reflection (of php-ast's functions) in php 8 (#152)

Add param defaults to reflection in php 8

Support generated arginfo macros in older php versions

Throw in `new ast\Node` for invalid parameter types in php 7. (already the default for php 8)

show more ...


# 21057fb6 04-Sep-2020 Tyson Andre

Support php 8.0 grouped attributes with `#[` (#173)

The choice of null AST_ARG_LIST seems deliberate in php-src, so that
zend_ast_export_attribute_group can emit a different representati

Support php 8.0 grouped attributes with `#[` (#173)

The choice of null AST_ARG_LIST seems deliberate in php-src, so that
zend_ast_export_attribute_group can emit a different representation for
`attr()` and `attr`

show more ...


# 2b4a3812 04-Sep-2020 Tyson Andre

Release php-ast 1.0.9 (#175)

The API will change in php 8.0.0beta3.
Attributes syntax will change in php 8.0.0RC1.


# faf53973 02-Aug-2020 Tyson Andre

Support the php 8.0 nullsafe operator(?->) (#169)


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


# 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
# 34bad619 10-Nov-2019 Tyson Andre

Release php-ast 1.0.4 (#139)

* Release php-ast 1.0.4

* Update date, add me as <developer> in package.xml


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

Release php-ast 1.0.3


Revision tags: v1.0.2
# a6e1f882 30-Jun-2019 Tyson Andre

Release php-ast 1.0.2

And put together release notes.


12