(span: Span, src: &str)
| 18 | |
| 19 | impl Location { |
| 20 | pub fn from_span(span: Span, src: &str) -> Self { |
| 21 | let (line, col) = span.line_and_column(src); |
| 22 | Self { line: line + 1, column: col + 1, start: usize::from(span.start()), end: usize::from(span.end()) } |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | /// A single extracted result: position + command-specific payload. |
nothing calls this directly
no test coverage detected