@@ -42,11 +42,12 @@ pub enum TypedExpr {
4242 return_annotation : Option < TypeAst > ,
4343 } ,
4444
45- ListNil {
45+ EmptyList {
4646 location : SrcSpan ,
4747 typ : Arc < Type > ,
4848 } ,
4949
50+ // TODO: use a vector rather than a linked list here
5051 ListCons {
5152 location : SrcSpan ,
5253 typ : Arc < Type > ,
@@ -168,7 +169,7 @@ impl TypedExpr {
168169 | Self :: BinOp { location, .. }
169170 | Self :: Tuple { location, .. }
170171 | Self :: String { location, .. }
171- | Self :: ListNil { location, .. }
172+ | Self :: EmptyList { location, .. }
172173 | Self :: ListCons { location, .. }
173174 | Self :: TupleIndex { location, .. }
174175 | Self :: ModuleSelect { location, .. }
@@ -196,7 +197,7 @@ impl TypedExpr {
196197 | Self :: BinOp { location, .. }
197198 | Self :: Tuple { location, .. }
198199 | Self :: String { location, .. }
199- | Self :: ListNil { location, .. }
200+ | Self :: EmptyList { location, .. }
200201 | Self :: ListCons { location, .. }
201202 | Self :: TupleIndex { location, .. }
202203 | Self :: ModuleSelect { location, .. }
@@ -219,7 +220,7 @@ impl TypedExpr {
219220 fn type_ ( & self ) -> Arc < Type > {
220221 match self {
221222 Self :: Fn { typ, .. } => typ. clone ( ) ,
222- Self :: ListNil { typ, .. } => typ. clone ( ) ,
223+ Self :: EmptyList { typ, .. } => typ. clone ( ) ,
223224 Self :: Assignment { typ, .. } => typ. clone ( ) ,
224225 Self :: Int { typ, .. } => typ. clone ( ) ,
225226 Self :: Seq { then, .. } => then. type_ ( ) ,
0 commit comments