decaffeinate-parser
Version:
A better AST for CoffeeScript, inspired by CoffeeScriptRedux.
9 lines (8 loc) • 355 B
JavaScript
;
exports.__esModule = true;
var nodes_1 = require("../nodes");
var mapPossiblyEmptyBlock_1 = require("./mapPossiblyEmptyBlock");
function mapProgram(context) {
return new nodes_1.Program(1, 1, 0, context.source.length, context.source, mapPossiblyEmptyBlock_1["default"](context, context.ast), context);
}
exports["default"] = mapProgram;