Skip to content

query not working with await in code #131

@adros

Description

@adros

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions