UNPKG

awv3

Version:
30 lines (24 loc) 676 B
import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose"; var _class, _temp; import Expr from './expr'; var Call = (_temp = _class = /*#__PURE__*/ function (_Expr) { _inheritsLoose(Call, _Expr); function Call() { return _Expr.apply(this, arguments) || this; } var _proto = Call.prototype; _proto.unparse = function unparse() { return this.func.unparse() + '(' + this.args.map(function (arg) { return arg.unparse(); }).join(', ') + ')'; }; return Call; }(Expr), Object.defineProperty(_class, "_fields", { configurable: true, enumerable: true, writable: true, value: ['func', 'args'] }), _temp); export { Call as default };