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

Method range

crates/ruff_python_parser/src/string.rs:21–28  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

19
20impl Ranged for StringType {
21 fn range(&self) -> TextRange {
22 match self {
23 Self::Str(node) => node.range(),
24 Self::Bytes(node) => node.range(),
25 Self::FString(node) => node.range(),
26 Self::TString(node) => node.range(),
27 }
28 }
29}
30
31impl From<StringType> for Expr {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected