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

Method singleParserUsedTwiceErrors

external/.scrollLibs.js:18434–18443  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18432 return parsedAtoms.map(check => check.getErrorIfAny()).filter(identity => identity)
18433 }
18434 get singleParserUsedTwiceErrors() {
18435 const errors = []
18436 const parent = this.parent
18437 const hits = parent.getSubparticleInstancesOfParserId(this.definition.id)
18438 if (hits.length > 1)
18439 hits.forEach((particle, index) => {
18440 if (particle === this) errors.push(new ParserUsedMultipleTimesError(particle))
18441 })
18442 return errors
18443 }
18444 get uniqueLineAppearsTwiceErrors() {
18445 const errors = []
18446 const parent = this.parent

Callers

nothing calls this directly

Calls 2

forEachMethod · 0.80

Tested by

no test coverage detected