MCPcopy Create free account
hub / github.com/astral-sh/ruff / inner

Method inner

crates/ruff_python_parser/src/parser/mod.rs:638–650  ·  view source on GitHub ↗
(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

Calls 3

lastMethod · 0.45
startMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected