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
findInScope
A findInScope method would only pattern match one scope level deep, beginning from the scope it was called on.
This is useful to find identifiers on a specific level in the AST, for example arguments or this inside of a function/method.
arguments
this
Examples where I did this manually or worked around this problem: cpojer/js-codemod@7502159 cpojer/js-codemod@a20a5e1
The text was updated successfully, but these errors were encountered:
This can currently be solved via collection.closestScope().find(...). Do we need an additional method for that?
collection.closestScope().find(...)
Sorry, something went wrong.
Merge pull request facebook#13 from TheSavior/props-primitives
edf43c0
create-element-to-jsx-children: Convert primitive attribute values properly
No branches or pull requests
A
findInScope
method would only pattern match one scope level deep, beginning from the scope it was called on.This is useful to find identifiers on a specific level in the AST, for example
arguments
orthis
inside of a function/method.Examples where I did this manually or worked around this problem:
cpojer/js-codemod@7502159
cpojer/js-codemod@a20a5e1
The text was updated successfully, but these errors were encountered: