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

Method _getCatchAllParser

external/.scrollLibs.js:15197–15202  ·  view source on GitHub ↗
(contextParticle)

Source from the content-addressed store, hash-verified

15195 return this._getCueMap().get(this._getCue(block, atomBreakSymbol)) || this._getParserFromRegexTests(block) || this._getCatchAllParser(parentParticle)
15196 }
15197 _getCatchAllParser(contextParticle) {
15198 if (this._catchAllParser) return this._catchAllParser
15199 const parent = contextParticle.parent
15200 if (parent) return parent._getParserPool()._getCatchAllParser(parent)
15201 return contextParticle.constructor
15202 }
15203 _getParserFromRegexTests(block) {
15204 if (!this._regexTests) return undefined
15205 const line = block.split(/\n/)[0]

Callers 2

_getMatchingParserMethod · 0.95
createParserPoolMethod · 0.80

Calls 1

_getParserPoolMethod · 0.80

Tested by

no test coverage detected