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

Method getGetter

external/.scrollLibs.js:19188–19193  ·  view source on GitHub ↗
(atomIndex)

Source from the content-addressed store, hash-verified

19186 return this.parent.atomTypeDefinitions
19187 }
19188 getGetter(atomIndex) {
19189 const atomToNativeJavascriptTypeParser = this.getAtomConstructor().parserFunctionName
19190 return `get ${this.atomTypeId}() {
19191 return ${atomToNativeJavascriptTypeParser ? atomToNativeJavascriptTypeParser + `(this.getAtom(${atomIndex}))` : `this.getAtom(${atomIndex})`}
19192 }`
19193 }
19194 getCatchAllGetter(atomIndex) {
19195 const atomToNativeJavascriptTypeParser = this.getAtomConstructor().parserFunctionName
19196 return `get ${this.atomTypeId}() {

Callers 1

Calls 1

getAtomConstructorMethod · 0.95

Tested by

no test coverage detected