Remove Separated
This commit is contained in:
parent
198f56226e
commit
94ea196933
4 changed files with 3 additions and 117 deletions
|
|
@ -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)>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue