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

Method definition

external/.scrollLibs.js:18088–18092  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18086 // Returns a pointer to the Particle containing the parser definition. In the future this will
18087 // be in the same file. Right now we still have the split between Parser definitions and program code.
18088 get definition() {
18089 if (this._definition) return this._definition
18090 this._definition = this.isRoot() ? this.handParsersProgram : this.parent.definition.getParserDefinitionByParserId(this.constructor.name)
18091 return this._definition
18092 }
18093 registerParsers(parserCode, id) {
18094 // Todo: hacky as shit for now. Thats fine.
18095 // What we do here is if a parser comes in we recreate the entire root parser.

Callers

nothing calls this directly

Calls 2

isRootMethod · 0.80

Tested by

no test coverage detected