Remove Separated

This commit is contained in:
Joscha 2022-11-22 00:00:43 +01:00
parent 198f56226e
commit 94ea196933
4 changed files with 3 additions and 117 deletions

View file

@ -77,26 +77,6 @@ impl HasSpan for Ident {
}
}
#[derive(Debug, Clone)]
pub enum Separated<E, S1, S2> {
Empty(Span),
NonEmpty {
first_elem: E,
last_elems: Vec<(S1, E)>,
trailing: Option<S2>,
span: Span,
},
}
impl<E, S1, S2> HasSpan for Separated<E, S1, S2> {
fn span(&self) -> Span {
match self {
Self::Empty(span) => *span,
Self::NonEmpty { span, .. } => *span,
}
}
}
#[derive(Debug, Clone)]
pub struct BoundedSeparated<E> {
pub elems: Vec<(Space, E, Space)>,