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.
When my code contains
await
keyword, the query does not match anything behind it. Simple example: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.