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

Method _getMyAtomTypeDefs

external/.scrollLibs.js:19537–19546  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19535 return this._getParserPool().getCueOptions()
19536 }
19537 _getMyAtomTypeDefs() {
19538 const requiredAtoms = this.get(ParsersConstants.atoms)
19539 if (!requiredAtoms) return []
19540 const parsersProgram = this.languageDefinitionProgram
19541 return requiredAtoms.split(" ").map(atomTypeId => {
19542 const atomTypeDef = parsersProgram.getAtomTypeDefinitionById(atomTypeId)
19543 if (!atomTypeDef) throw new Error(`No atomType "${atomTypeId}" found`)
19544 return atomTypeDef
19545 })
19546 }
19547 // todo: what happens when you have a atom getter and constant with same name?
19548 get atomGettersAndParserConstants() {
19549 // todo: add atomType parsings

Callers 2

cueEnumOptionsMethod · 0.95

Calls 4

mapMethod · 0.80
splitMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected