Method
inner
(errors: &mut Vec<ParseError>, error: ParseErrorType, range: TextRange)
Source from the content-addressed store, hash-verified
| 636 | T: Ranged, |
| 637 | { |
| 638 | fn inner(errors: &mut Vec<ParseError>, error: ParseErrorType, range: TextRange) { |
| 639 | // Avoid flagging multiple errors at the same location |
| 640 | let is_same_location = errors |
| 641 | .last() |
| 642 | .is_some_and(|last| last.location.start() == range.start()); |
| 643 | |
| 644 | if !is_same_location { |
| 645 | errors.push(ParseError { |
| 646 | error, |
| 647 | location: range, |
| 648 | }); |
| 649 | } |
| 650 | } |
| 651 | |
| 652 | inner(&mut self.errors, error, ranged.range()); |
| 653 | } |
Callers
nothing calls this directly
Tested by
no test coverage detected