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

query not working with await in code #131

Open
adros opened this issue Jun 18, 2019 · 0 comments
Open

query not working with await in code #131

adros opened this issue Jun 18, 2019 · 0 comments

Comments

@adros
Copy link
Contributor

adros commented Jun 18, 2019

When my code contains await keyword, the query does not match anything behind it.
Simple example:

async function foo() {
    baz();
}
async function bar() {
    await baz();
}

When I execute query grasp -s 'CallExpression' over it, I get only one match (on 2nd line), but two are expected.
The AST tree (produced byt --print-ast) seems to be OK.

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

1 participant