Files
Partie-2/node_modules/cucumber-expressions/dist/src/group.js
Simon Priet 9e2991e668 init
2021-09-05 22:53:58 +02:00

33 lines
524 B
JavaScript

"use strict";
class Group {
constructor(value, start, end, children) {
this._value = value;
this._start = start;
this._end = end;
this._children = children;
}
get value() {
return this._value;
}
get start() {
return this._start;
}
get end() {
return this._end;
}
get children() {
return this._children;
}
get values() {
return (this.children.length === 0 ? [this] : this.children).map(g => g.value).filter(v => v !== undefined);
}
}
module.exports = Group;