Skip to main content

source_arrow_span

Function source_arrow_span 

Source
pub fn source_arrow_span(h: &JsHost, pos: u32, end: u32) -> Option<String>
Expand description

source_arrow for the range [pos, end): one ^ per column, none for an empty range (the end of the input), and no caret line at all for a range that runs past the end of its line, as GetErrorSource prints it. An end of 0 is the one-character range.