(&self, source: &Source)
| 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 | |
| 212 | struct FileTreeCache<'a> { |