UNPKG

awv3

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