UNPKG

714 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var Group = /** @class */ (function () {
4 function Group(value, start, end, children) {
5 this.value = value;
6 this.start = start;
7 this.end = end;
8 this.children = children;
9 }
10 Object.defineProperty(Group.prototype, "values", {
11 get: function () {
12 return (this.children.length === 0 ? [this] : this.children)
13 .map(function (g) { return g.value; })
14 .filter(function (v) { return v !== null; });
15 },
16 enumerable: true,
17 configurable: true
18 });
19 return Group;
20}());
21exports.default = Group;
22//# sourceMappingURL=Group.js.map
\No newline at end of file