(relativeTo)
| 15671 | return this._getStack() |
| 15672 | } |
| 15673 | _getStack(relativeTo) { |
| 15674 | if (this.isRoot(relativeTo)) return [] |
| 15675 | const parent = this.parent |
| 15676 | if (parent.isRoot(relativeTo)) return [this] |
| 15677 | else return parent._getStack(relativeTo).concat([this]) |
| 15678 | } |
| 15679 | getStackString() { |
| 15680 | return this._getStack() |
| 15681 | .map((particle, index) => this.edgeSymbol.repeat(index) + particle.getLine()) |
no test coverage detected