Skip to main content

edits

Function edits 

Source
pub fn edits<'a>(
    text: &str,
    errors: impl IntoIterator<Item = &'a CompileError>,
) -> Vec<(Span, String)>
Expand description

Every edit fix-all would apply to text, the file whose errors these are, sorted by position and non-overlapping. Empty when there is nothing to fix. A suggestion with an edit span that isn’t valid for text (out of bounds, reversed, or off a char boundary) is skipped whole.