UNPKG

decaffeinate-parser

Version:

A better AST for CoffeeScript, inspired by CoffeeScriptRedux.

8 lines (7 loc) 370 B
import { Spread } from '../nodes'; import getLocation from '../util/getLocation'; import mapAny from './mapAny'; export default function mapSplat(context, node) { var _a = getLocation(context, node), line = _a.line, column = _a.column, start = _a.start, end = _a.end, raw = _a.raw; return new Spread(line, column, start, end, raw, mapAny(context, node.name)); }