annotate-snippets 0.0.1

Library for building code annotations
Documentation
slice:
  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
main_annotation: 0
title: null
annotations:
  - label: Variable defined here
    annotation_type: Error
    range: [102, 112]
  - label: Referenced here
    annotation_type: Error
    range: [188, 198]
  - label: Referenced again here
    annotation_type: Error
    range: [249, 259]