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

Method atomsMap

external/.scrollLibs.js:18596–18607  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18594 }
18595 // todo: remove
18596 get atomsMap() {
18597 const atomsMap = {}
18598 this.parsedAtoms.forEach(atom => {
18599 const atomTypeId = atom.atomTypeId
18600 if (!atom.isCatchAll()) atomsMap[atomTypeId] = atom.parsed
18601 else {
18602 if (!atomsMap[atomTypeId]) atomsMap[atomTypeId] = []
18603 atomsMap[atomTypeId].push(atom.parsed)
18604 }
18605 })
18606 return atomsMap
18607 }
18608}
18609class BlobParser extends ParserBackedParticle {
18610 createParserPool() {

Callers

nothing calls this directly

Calls 2

forEachMethod · 0.80
isCatchAllMethod · 0.80

Tested by

no test coverage detected