History log of /php-ast/ (Results 176 – 200 of 325)
Revision (<<< Hide revision tags) (Show revision tags >>>)Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
be365b4329-Jul-2017 Nikita Popov

Make flags information slightly more accurate

a37c132b29-Jul-2017 Nikita Popov

Use ast\get_metadata() in AST dumper

8f4a033b29-Jul-2017 Nikita Popov

Add ast\get_metadata() function

This function returns metadata about the AST kinds. Currently this
mainly provides the flags supported by each AST kind.

698bb51829-Jul-2017 Nikita Popov

Param flags are combinable

64fda72929-Jul-2017 Nikita Popov

Update Windows DLL URL

4a35b7fd29-Jul-2017 Nikita Popov

Add examples for some tricky nodes/flags

Closes #33 and #35.

d6c3844129-Jul-2017 Nikita Popov

Add missing changelog entry regarding PROP_ELEM

Resolves issue #70.

c5990ac819-Jul-2017 Nikita Popov

Back to dev

Revision tags: v0.1.5
b4bb167619-Jul-2017 Nikita Popov

Release version 0.1.5

220bab8119-Jul-2017 Nikita Popov

Mark version 35 as deprecated

0414087919-Jul-2017 Nikita Popov

Mention in docs that ast\Node\Decl is no longer used

Mark versions 45 and 50 as supported.

edc2c4c119-Jul-2017 Nikita Popov

Update changelog

3394775e19-Jul-2017 Nikita Popov

Regenerate stubs

7f91b00e19-Jul-2017 Nikita Popov

Add CLOSURE_USE_REF flag

With the CLOSURE_ prefix to distinguish it from the namespace
USE_ flags.

497a855819-Jul-2017 Nikita Popov

Rename RETURNS_REF to FUNC_RETURNS_REF

1a60479508-Jul-2017 Tyson Andre

In version 50+, return an empty statement list in \ast\parse_file

This makes \ast\parse_file and \ast\parse_code consistent.

file_get_contents has a similar check of the result of s

In version 50+, return an empty statement list in \ast\parse_file

This makes \ast\parse_file and \ast\parse_code consistent.

file_get_contents has a similar check of the result of stream_read,
it will return the empty string if it returned null.

show more ...

4d680f5517-Jul-2017 Nikita Popov

Expose FUNC_GENERATOR flag

cf4f45e628-Jun-2017 Nikita Popov

Add skipif

cca3151428-Jun-2017 Nikita Popov

Don't use Decl nodes in version 50

392e929c28-Jun-2017 Nikita Popov

Recognize "object" types in version 45

Also shift off the __declId change to version 50.

07efc42128-Jun-2017 Nikita Popov

Move version into ast_state_info

92ad0b1024-Jun-2017 Tyson Andre

Add a unique id to declarations in version 45+

For issue #58

The output of `var_dump(ast\parse_code('<?php function(){};function(){};', 45));`

will include '__declId' value

Add a unique id to declarations in version 45+

For issue #58

The output of `var_dump(ast\parse_code('<?php function(){};function(){};', 45));`

will include '__declId' values starting from 0.
The counter will reset if `parse_code` is called again,

show more ...

4262758d24-Jun-2017 Nikita Popov

Deprecate version 30

022f31a710-Jun-2017 Tyson Andre

Create package.xml for the php-ast project

Verified that `pecl package; pecl install ast-0.1.5dev.tgz` worked in
php 7.1.

For Issue #29 (Having a package.xml reduces the work to

Create package.xml for the php-ast project

Verified that `pecl package; pecl install ast-0.1.5dev.tgz` worked in
php 7.1.

For Issue #29 (Having a package.xml reduces the work to submit this to PECL)

show more ...

159b984b24-Jun-2017 Tyson Andre

Add constructors with parameters for Node (#55)

Signature: new Node(kind, flags, children, lineno)

Assume that the constructor is either never used with parameters
or used very

Add constructors with parameters for Node (#55)

Signature: new Node(kind, flags, children, lineno)

Assume that the constructor is either never used with parameters
or used very frequently (e.g. ast simplifier, code refactoring,
php-parser to ast conversion, etc.)
Validate the data types of params, but not the values themselves.

For backwards compatibility reasons, leave parameters
with no passed values as null, and make everything nullable.
- Assume no pre-existing code would pass in values.

This constructor hasn't been benchmarked yet
(compare with assigning params manually).
php-parser-to-php-ast (incomplete) is one codebase that could be used to
test this, e.g. in a loop.

Also, add aliases to simplify setting a Node property to a zend_long.
- AST_CACHE_SLOT_FLAGS was missing in one place, this PR added it back.
Was the absense deliberate?
- TRY_DELREF is unnecessary in some places, and wrong for parameters to
the constructor.

show more ...

12345678910>>...13