()
| 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 | } |
nothing calls this directly
no test coverage detected