make/ast.js
function (src) {
        // https://github.com/Constellation/escodegen/issues/85
        let ast = esprima.parse(src, {
            range: true,
            tokens: true,
            comment: true
        });
        ast = escodegen.attachComments(ast, ast.comments, ast.tokens);
        delete ast.tokens;
        delete ast.comments;
        return ast;
    }
function (src) {
        // https://github.com/Constellation/escodegen/issues/85
        let ast = esprima.parse(src, {
            range: true,
            tokens: true,
            comment: true
        });
        ast = escodegen.attachComments(ast, ast.comments, ast.tokens);
        delete ast.tokens;
        delete ast.comments;
        return ast;
    }
function ( src ) { // https://github.com/Constellation/escodegen/issues/85 let ast = esprima . parse ( src , { range : true , tokens : true , comment : true } ) ; ast = escodegen . attachComments ( ast , ast . comments , ast . tokens ) ; delete ast . tokens ; delete ast . comments ; return ast ; }
Transform the source into an AST representation
Transform the source into an AST representation