UNPKG

decaffeinate-parser

Version:

A better AST for CoffeeScript, inspired by CoffeeScriptRedux.

8 lines (7 loc) 409 B
import { ExtendsOp } from '../nodes'; import getLocation from '../util/getLocation'; import mapAny from './mapAny'; export default function mapExtends(context, node) { var _a = getLocation(context, node), line = _a.line, column = _a.column, start = _a.start, end = _a.end, raw = _a.raw; return new ExtendsOp(line, column, start, end, raw, mapAny(context, node.child), mapAny(context, node.parent)); }