diff --git a/schala-lang/language/src/symbol_table.rs b/schala-lang/language/src/symbol_table.rs index c2a83b9..cc2cb21 100644 --- a/schala-lang/language/src/symbol_table.rs +++ b/schala-lang/language/src/symbol_table.rs @@ -178,6 +178,7 @@ impl SymbolTable { Ok(()) } + //TODO handle type mutability fn add_type_decl(&mut self, type_name: &TypeSingletonName, body: &TypeBody, _mutable: &bool, scope_name_stack: &mut Vec) -> Result<(), String> { use crate::ast::{TypeIdentifier, Variant}; let TypeBody(variants) = body; @@ -208,8 +209,6 @@ impl SymbolTable { }; self.add_new_symbol(variant_name, scope_name_stack, spec); }, - //TODO if there is only one variant, and it is a record, it doesn't need to have an - //explicit name Variant::Record { name, members: defined_members } => { let mut members = HashMap::new(); let mut duplicate_member_definitions = Vec::new();