From b4c4531e4d102bea084ec763002a083387410e48 Mon Sep 17 00:00:00 2001 From: greg Date: Sat, 10 Nov 2018 14:11:29 -0800 Subject: [PATCH] Rename for more concision --- schala-lang/language/src/typechecking.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/schala-lang/language/src/typechecking.rs b/schala-lang/language/src/typechecking.rs index 635362d..4fa41a8 100644 --- a/schala-lang/language/src/typechecking.rs +++ b/schala-lang/language/src/typechecking.rs @@ -8,7 +8,6 @@ pub type TypeName = Rc; pub struct TypeContext<'a> { variable_map: ScopeStack<'a, Rc, Type<()>>, evar_count: u32 - } type InferResult = Result; @@ -30,8 +29,8 @@ enum Type { } enum TVar { - Universal(UniversalVar), - Existential(ExistentialVar) + Univ(UniversalVar), + Exist(ExistentialVar) } struct UniversalVar(Rc); @@ -193,7 +192,7 @@ impl<'a> TypeContext<'a> { fn allocate_existential(&mut self) -> Type { let n = self.evar_count; self.evar_count += 1; - Type::Var(TVar::Existential(ExistentialVar(n))) + Type::Var(TVar::Exist(ExistentialVar(n))) } }