We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want to improve AST manipulation options in 1.9, including some breaking changes:
.children
.directives
Node#path
Node#parent
self
children
TypeStack
parent
Language::Visitor
.enter <<
Also, fix some things that this will break:
The text was updated successfully, but these errors were encountered:
rmosolgo
No branches or pull requests
I want to improve AST manipulation options in 1.9, including some breaking changes:
.children
,.directives
and other attached arrays (bc940ba)AddI decided against this because it doesn't support efficient modification, see Try to add path to AST nodes #1790Node#path
andNode#parent
Since the nodes are immutable, we can cache these on the nodes themselves[ ]Node#parent
references the node whereself
is a member ofchildren
[ ]Node#path
is the static path to this node in the query string (see ...TypeStack
, I think, where this is currently implemented)[ ] consider removingparent
from method-based visitor?Language::Visitor
.enter <<
usage (Add warning for proc-based visitors #2017)Also, fix some things that this will break:
The text was updated successfully, but these errors were encountered: