(error: error)
| 462 | } |
| 463 | |
| 464 | override addError<error extends ArkIssue>(error: error): error { |
| 465 | if (this.branches.length === 0) { |
| 466 | if (this.firstPath === undefined) this.firstPath = error.path |
| 467 | else if (this.left || !pathEquals(error.path, this.firstPath)) { |
| 468 | this.skip() |
| 469 | return error |
| 470 | } |
| 471 | } |
| 472 | return super.addError(error) |
| 473 | } |
| 474 | } |
| 475 | firstPathTraversals.set(Base, FirstPath) |
| 476 | return FirstPath |
no test coverage detected