You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varesprima=require('esprima');varesquery=require('esquery');varast=esprima.parse('a + !b');varquery=esquery.parse('BinaryExpression! > UnaryExpression.right');// should be true (does not work)console.log(esquery.matches(ast.body[0].expression,query,[ast.body[0],ast]));// should be false (does not work)console.log(esquery.matches(ast.body[0].expression.right,query,[ast.body[0].expression,ast.body[0],ast]));// should include only the BinaryExpression (works)console.log(JSON.stringify(esquery.match(ast,query,[]),null,4));
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: