init
This commit is contained in:
33
node_modules/cucumber-expressions/dist/src/group.js
generated
vendored
Normal file
33
node_modules/cucumber-expressions/dist/src/group.js
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
"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;
|
Reference in New Issue
Block a user