lib/acorn/dist/acorn.js
function finishNodeAt(node, type, pos, loc) {
  node.type = type;
  node.end = pos;
  if (this.options.locations) node.loc.end = loc;
  if (this.options.ranges) node.range[1] = pos;
  return node;
}
function finishNodeAt(node, type, pos, loc) {
  node.type = type;
  node.end = pos;
  if (this.options.locations) node.loc.end = loc;
  if (this.options.ranges) node.range[1] = pos;
  return node;
}
function finishNodeAt ( node , type , pos , loc ) { node . type = type ; node . end = pos ; if ( this . options . locations ) node . loc . end = loc ; if ( this . options . ranges ) node . range [ 1 ] = pos ; return node ; }
Finish an AST node, adding `type` and `end` properties.
Finish an AST node adding type and end properties .