We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06cb092 commit 1972913Copy full SHA for 1972913
compiler/crates/common/src/text_source.rs
@@ -71,6 +71,10 @@ impl TextSource {
71
Range::new(start_position, end_position)
72
}
73
74
+ /**
75
+ * Converts span, which is the relative indices of characters within this text source,
76
+ * into the equivalent line and character number range.
77
+ */
78
pub fn to_span_range(&self, span: Span) -> lsp_types::Range {
79
let start = span.start as usize;
80
let end = span.end as usize;
0 commit comments