decaffeinate-parser
Version:
A better AST for CoffeeScript, inspired by CoffeeScriptRedux.
11 lines (10 loc) • 522 B
JavaScript
;
exports.__esModule = true;
var nodes_1 = require("../nodes");
var getLocation_1 = require("../util/getLocation");
var mapAny_1 = require("./mapAny");
function mapExtends(context, node) {
var _a = getLocation_1["default"](context, node), line = _a.line, column = _a.column, start = _a.start, end = _a.end, raw = _a.raw;
return new nodes_1.ExtendsOp(line, column, start, end, raw, mapAny_1["default"](context, node.child), mapAny_1["default"](context, node.parent));
}
exports["default"] = mapExtends;