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

Method _initAtomTypeCache

external/.scrollLibs.js:18413–18419  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18411 return typeParticle ? typeParticle.getAtom(atomIndex - 1) : undefined
18412 }
18413 _initAtomTypeCache() {
18414 const particleMTime = this.getLineOrSubparticlesModifiedTime()
18415 if (this._cache_programAtomTypeStringMTime === particleMTime) return undefined
18416 this._cache_typeParticles = new Particle(this.toAtomTypeParticles())
18417 this._cache_paintParticles = new Particle(this.toPaintParticles())
18418 this._cache_programAtomTypeStringMTime = particleMTime
18419 }
18420 createParserPool() {
18421 return this.isRoot() ? new Particle.ParserPool(BlobParser) : new Particle.ParserPool(this.parent._getParserPool()._getCatchAllParser(this.parent), {})
18422 }

Callers 1

Calls 3

toAtomTypeParticlesMethod · 0.95
toPaintParticlesMethod · 0.95

Tested by

no test coverage detected