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

Method getParticleByParser

external/.scrollLibs.js:16742–16744  ·  view source on GitHub ↗
(parser)

Source from the content-addressed store, hash-verified

16740 return parent instanceof parser ? parent : parent.getAncestorByParser(parser)
16741 }
16742 getParticleByParser(parser) {
16743 return this.find(subparticle => subparticle instanceof parser)
16744 }
16745 // todo: switch to native classes and parsers in particles and away from javascript classes for parsing.
16746 // move off particle.ts
16747 // make the below work.

Callers

nothing calls this directly

Calls 1

findMethod · 0.95

Tested by

no test coverage detected