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

Method scopeErrors

external/.scrollLibs.js:18458–18466  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18456 return errors
18457 }
18458 get scopeErrors() {
18459 let errors = []
18460 const def = this.definition
18461 if (def.isSingle) errors = errors.concat(this.singleParserUsedTwiceErrors) // todo: speedup. takes ~1s on pldb.
18462 if (def.isUniqueLine) errors = errors.concat(this.uniqueLineAppearsTwiceErrors) // todo: speedup. takes ~1s on pldb.
18463 const { requiredParticleErrors } = this // todo: speedup. takes ~1.5s on pldb.
18464 if (requiredParticleErrors.length) errors = errors.concat(requiredParticleErrors)
18465 return errors
18466 }
18467 getErrors() {
18468 return this.atomErrors.concat(this.scopeErrors)
18469 }

Callers

nothing calls this directly

Calls 1

concatMethod · 0.80

Tested by

no test coverage detected