UNPKG

js-slang

Version:

Javascript-based implementations of Source, written in Typescript

12 lines (11 loc) 468 B
import * as es from 'estree'; /** * Transforms an AST generated by the Babel parser into one * that is compliant with the ESTree types. While the Babel * parser-generated AST is mostly compliant with the ESTree * specifications due to the use of the 'estree' plugin, not * everything is compliant with the ESTree types. * * @param program The AST to be transformed. */ export declare const transformBabelASTToESTreeCompliantAST: (program: es.Program) => void;