1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | var Group = (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 | }());
|
21 | exports.default = Group;
|
22 |
|
\ | No newline at end of file |