Skip to content

initial parser support for attributes#333

Open
i582 wants to merge 3 commits intomasterfrom
pmakhnev/attributes
Open

initial parser support for attributes#333
i582 wants to merge 3 commits intomasterfrom
pmakhnev/attributes

Conversation

@i582
Copy link
Contributor

@i582 i582 commented Oct 13, 2021

RFC: https://wiki.php.net/rfc/attributes_v2

This PR adds parser support for attributes. At the moment, each attribute is parsed as an empty statement.

Based on the fact that in PHP work with attributes occurs through Reflection, and in KPHP there
is no Reflection, there is little point in parsing and storing attributes anywhere, so we just parse
them, checking the syntax for correctness and skip.

@i582 i582 added the PHP8 PHP8 feature label Oct 13, 2021
@i582 i582 changed the title php8: initial parser support for attributes initial parser support for attributes Oct 14, 2021
@Tsygankov-Slava Tsygankov-Slava mentioned this pull request Jul 3, 2023
44 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PHP8 PHP8 feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant