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

Method _getCompilerObject

external/.scrollLibs.js:19701–19709  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19699 return extendedDef ? extendedDef.generatedClassName : "ParserBackedParticle"
19700 }
19701 _getCompilerObject() {
19702 let obj = {}
19703 const items = this._getSubparticlesByParserInExtended(ParsersCompilerParser)
19704 items.reverse() // Last definition wins.
19705 items.forEach(particle => {
19706 obj = Object.assign(obj, particle.toObject()) // todo: what about multiline strings?
19707 })
19708 return obj
19709 }
19710 // todo: improve layout (use bold?)
19711 get lineHints() {
19712 return this.atomParser.lineHints

Callers 3

_getCompiledLineMethod · 0.80
compileMethod · 0.80

Calls 4

reverseMethod · 0.80
forEachMethod · 0.80
toObjectMethod · 0.45

Tested by

no test coverage detected