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

Method src_text

crates/ruff_python_parser/src/parser/mod.rs:640–645  ·  view source on GitHub ↗
(&self, ranged: T)

Source from the content-addressed store, hash-verified

638 }
639
640 fn src_text<T>(&self, ranged: T) -> &'src str
641 where
642 T: Ranged,
643 {
644 &self.source[ranged.range()]
645 }
646
647 /// Parses a list of elements into a thin vector where each element is parsed using
648 /// the given `parse_element` function.

Callers 4

current_token_textMethod · 0.80
unparse_exprMethod · 0.80

Calls 1

rangeMethod · 0.45

Tested by

no test coverage detected