Skip to main content

print_code_frame

Function print_code_frame 

Source
pub fn print_code_frame(
    source: &str,
    start_line: u32,
    start_col: u32,
    end_line: u32,
    end_col: u32,
    message: &str,
) -> String
Expand description

Format a code frame with abbreviation for long spans, matching the JS printCodeFrame() function.