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

Method programAsAtoms

external/.scrollLibs.js:18248–18259  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18246 return errors
18247 }
18248 get programAsAtoms() {
18249 // todo: what is this?
18250 return this.topDownArray.map(particle => {
18251 const atoms = particle.parsedAtoms
18252 let indents = particle.getIndentLevel() - 1
18253 while (indents) {
18254 atoms.unshift(undefined)
18255 indents--
18256 }
18257 return atoms
18258 })
18259 }
18260 get programWidth() {
18261 return Math.max(...this.programAsAtoms.map(line => line.length))
18262 }

Callers

nothing calls this directly

Calls 2

mapMethod · 0.80
getIndentLevelMethod · 0.80

Tested by

no test coverage detected