Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an attribute to the namespace to distinguish namespace; stmt; from namespace {stmt;} #417

Closed
TysonAndre opened this issue Sep 17, 2017 · 1 comment

Comments

@TysonAndre
Copy link
Contributor

(e.g. getAttribute('namespaceHasBracket') : bool

This will help people writing code pretty printers, visualizers, transformers, etc

Mentioned in TysonAndre/php-parser-to-php-ast#10

nikic added a commit that referenced this issue Sep 26, 2017
One of KIND_SEMICOLON or KIND_BRACED.
@nikic
Copy link
Owner

nikic commented Sep 26, 2017

Attribute added in 5a9fbca. I'm using kind following a convention used by a number of other nodes.

@nikic nikic closed this as completed Sep 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants