From b65d6e4c8e6807a1aa46e3c1b2358ac78780f898 Mon Sep 17 00:00:00 2001 From: greg Date: Mon, 12 Aug 2019 11:27:16 -0700 Subject: [PATCH] Symbol table notes to self --- schala-lang/language/src/symbol_table.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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();