blob: f037c9a12bfbfd79e66ba3172315f51d7e7328ba [file] [log] [blame]
[[snippet.slices]]
source = """
fn add_title_line(result: &mut Vec<String>, main_annotation: Option<&Annotation>) {
if let Some(annotation) = main_annotation {
result.push(format_title_line(
&annotation.annotation_type,
None,
&annotation.label,
));
}
}
"""
line_start = 96
[[snippet.slices.annotations]]
label = "Variable defined here"
annotation_type = "Error"
range = [100, 110]
[[snippet.slices.annotations]]
label = "Referenced here"
annotation_type = "Error"
range = [184, 194]
[[snippet.slices.annotations]]
label = "Referenced again here"
annotation_type = "Error"
range = [243, 253]