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

Method getInheritanceParticles

external/.scrollLibs.js:16869–16880  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16867 }
16868 // todo: make 0 and 1 a param
16869 getInheritanceParticles() {
16870 const paths = {}
16871 const result = new Particle()
16872 this.forEach(particle => {
16873 const key = particle.getAtom(0)
16874 const parentKey = particle.getAtom(1)
16875 const parentPath = paths[parentKey]
16876 paths[key] = parentPath ? [parentPath, key].join(" ") : key
16877 result.touchParticle(paths[key])
16878 })
16879 return result
16880 }
16881 _getGrandParent() {
16882 return this.isRoot() || this.parent.isRoot() ? undefined : this.parent.parent
16883 }

Callers

nothing calls this directly

Calls 4

forEachMethod · 0.95
touchParticleMethod · 0.95
getAtomMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected