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'm trying to use grasp with squery which I think uses esquery under the hood? How do I match an import with a given specifier:
I can't do import-dec[specifiers=x] since specifiers is a list of nodes, such as import {x, y z} from 'v'
import-dec[specifiers=x]
specifiers
import {x, y z} from 'v'
const find = 'import-dec[specifiers=x] ~ class-dec[id=#CoolGang]' const replace = `class {{.id}} {{.body}}` const replacer = grasp.replace('squery', find, replace)
The text was updated successfully, but these errors were encountered:
Been trying a nested selector like this:
const find = `(import-dec[specifiers=(id=#x)], class-dec[id=#CoolGang])` const replace = `class {{.id}} {{.body}}` const replacer = grasp.replace('squery', find, replace)
Still to no avail.
Sorry, something went wrong.
No branches or pull requests
I'm trying to use grasp with squery which I think uses esquery under the hood?
How do I match an import with a given specifier:
I can't do
import-dec[specifiers=x]
sincespecifiers
is a list of nodes, such asimport {x, y z} from 'v'
The text was updated successfully, but these errors were encountered: