'use strict'; var Node = require('./Node'); class FunctionCall extends Node { constructor(def) { super('FunctionCall'); this.callee = def.callee; this.args = def.args; if (this.args && !Array.isArray(this.args)) { throw new Error('Invalid args'); } } generateCode(generator) { var callee = this.callee; var args = this.args; generator.generateCode(callee); generator.write('('); if (args && args.length) { for (let i=0, argsLen = args.length; i