use crate::{file::FileSpan, *};
use rslint_text_edit::Indel;
use std::ops::Range;
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct CodeSuggestion {
pub substitution: SuggestionChange,
pub span: FileSpan,
pub applicability: Applicability,
pub msg: String,
pub style: SuggestionStyle,
pub labels: Vec<Range<usize>>,
}
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub enum SuggestionChange {
Indels(Vec<Indel>),
String(String),
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum SuggestionStyle {
DontShow,
HideCode,
Inline,
Full,
}