MCPcopy Create free account
hub / github.com/PRQL/prql / compose_location

Method compose_location

prqlc/prqlc/src/error_message.rs:200–209  ·  view source on GitHub ↗
(&self, source: &Source)

Source from the content-addressed store, hash-verified

198 }
199
200 fn compose_location(&self, source: &Source) -> Option<SourceLocation> {
201 let span = self.span?;
202
203 let start = source.get_offset_line(span.start)?;
204 let end = source.get_offset_line(span.end)?;
205 Some(SourceLocation {
206 start: (start.1, start.2),
207 end: (end.1, end.2),
208 })
209 }
210}
211
212struct FileTreeCache<'a> {

Callers 1

composedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected