diff options
Diffstat (limited to 'src/types/mod.rs')
| -rw-r--r-- | src/types/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/types/mod.rs b/src/types/mod.rs index f3257eb..ecea578 100644 --- a/src/types/mod.rs +++ b/src/types/mod.rs @@ -8,12 +8,12 @@ use crate::parse::ast::nodes::Identifier; #[derive(Debug, Clone)] pub struct Type { - variant: Box<TypeVariant>, + kind: Box<TypeKind>, global_associated_values: &'static RefValueMap, } #[derive(Debug, Clone)] -pub enum TypeVariant { +pub enum TypeKind { // Concrete types Str, Int, @@ -39,4 +39,4 @@ pub enum TypeVariant { type TypeMap = HashMap<Identifier, Type>; -type RefValueMap = RefCell<ValueMap>; \ No newline at end of file +type RefValueMap = RefCell<ValueMap>; |
