| 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 | } |