Use Collection in Expr::TagUnion

This commit is contained in:
Joshua Warner 2021-11-12 10:20:10 -08:00
parent d63405d824
commit 1fabc64fdf
6 changed files with 21 additions and 49 deletions

View file

@ -266,11 +266,10 @@ pub enum TypeAnnotation<'a> {
/// A tag union, e.g. `[
TagUnion {
tags: &'a [Loc<Tag<'a>>],
/// The row type variable in an open tag union, e.g. the `a` in `[ Foo, Bar ]a`.
/// This is None if it's a closed tag union like `[ Foo, Bar]`.
ext: Option<&'a Loc<TypeAnnotation<'a>>>,
final_comments: &'a [CommentOrNewline<'a>],
tags: Collection<'a, Loc<Tag<'a>>>,
},
/// The `*` type variable, e.g. in (List *)