MCPcopy Index your code
hub / github.com/RustPython/RustPython / python_end_location

Method python_end_location

crates/compiler/src/lib.rs:134–142  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

132 }
133
134 pub fn python_end_location(&self) -> Option<(usize, usize)> {
135 match self {
136 CompileError::Codegen(_) => None,
137 CompileError::Parse(parse_error) => Some((
138 parse_error.end_location.line.get(),
139 parse_error.end_location.character_offset.get(),
140 )),
141 }
142 }
143
144 pub fn source_path(&self) -> &str {
145 match self {

Callers 1

Calls 2

SomeClass · 0.50
getMethod · 0.45

Tested by

no test coverage detected