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
This will ensure interoperability with other parsers such as esprima-next. Currently the following pre-walk of the raw AST is required:
// We need to fix the AST to match the expected format of recast (i.e. ast-types)constvistitor=newclassextendsVisitor{visitPrivateIdentifier(node){node.type='PrivateName'returnsuper.visitPrivateIdentifier(node);}}vistitor.visit(ast);
Per the ESTree specification, PrivateName should should be PrivateIdentifier
This will ensure interoperability with other parsers such as esprima-next. Currently the following pre-walk of the raw AST is required:
See estree/estree#240 for further details.
The text was updated successfully, but these errors were encountered: