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

Method getAllErrors

external/.scrollLibs.js:15631–15641  ·  view source on GitHub ↗
(lineStartsAt = 1)

Source from the content-addressed store, hash-verified

15629 }
15630 // Note: This currently does not return any errors resulting from "required" or "single"
15631 getAllErrors(lineStartsAt = 1) {
15632 const errors = []
15633 for (let particle of this.topDownArray) {
15634 particle._cachedLineNumber = lineStartsAt // todo: cleanup
15635 const errs = particle.getErrors()
15636 errs.forEach(err => errors.push(err))
15637 // delete particle._cachedLineNumber
15638 lineStartsAt++
15639 }
15640 return errors
15641 }
15642 *getAllErrorsIterator() {
15643 let line = 1
15644 for (let particle of this.getTopDownArrayIterator()) {

Callers 4

getErrorsInFilesMethod · 0.80
scroll.test.jsFile · 0.80
invalidParsersMethod · 0.80
examplesToTestBlocksMethod · 0.80

Calls 2

forEachMethod · 0.80
getErrorsMethod · 0.45

Tested by

no test coverage detected