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

Method _shouldSynthesize

external/.scrollLibs.js:19773–19779  ·  view source on GitHub ↗
(def, parserChain)

Source from the content-addressed store, hash-verified

19771 .join(" ")
19772 }
19773 _shouldSynthesize(def, parserChain) {
19774 if (def._isErrorParser() || def._isAbstract()) return false
19775 if (parserChain.includes(def.id)) return false
19776 const tags = def.get(ParsersConstants.tags)
19777 if (tags && tags.includes(ParsersConstantsMisc.doNotSynthesize)) return false
19778 return true
19779 }
19780 // Get all definitions in this current scope down, even ones that are scoped inside other definitions.
19781 get inScopeAndDescendantDefinitions() {
19782 return this.languageDefinitionProgram._collectAllDefinitions(Object.values(this.programParserDefinitionCache), [])

Callers 1

synthesizeParticleMethod · 0.95

Calls 3

_isErrorParserMethod · 0.80
_isAbstractMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected