MCPcopy Create free account
hub / github.com/breck7/scroll / _getStack

Method _getStack

external/.scrollLibs.js:15673–15678  ·  view source on GitHub ↗
(relativeTo)

Source from the content-addressed store, hash-verified

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())

Callers 3

getStackMethod · 0.95
getStackStringMethod · 0.95
_getIndentLevelMethod · 0.95

Calls 2

isRootMethod · 0.95
concatMethod · 0.80

Tested by

no test coverage detected