Stuff pertaining to variant scoping

This commit is contained in:
greg 2019-03-10 17:24:58 -07:00
parent c64f53a050
commit 051669b4cc
1 changed files with 3 additions and 0 deletions

View File

@ -178,6 +178,8 @@ impl SymbolTable {
use crate::ast::{TypeIdentifier, Variant};
let TypeBody(variants) = body;
let TypeSingletonName { name, .. } = type_name;
//scope_name_stack.push(name.clone()); //TODO adding this makes variants scoped under their
//type name and breaks a lot of things - don't add it until importing names works
//TODO figure out why _params isn't being used here
for (index, var) in variants.iter().enumerate() {
match var {
@ -212,6 +214,7 @@ impl SymbolTable {
},
}
}
//scope_name_stack.pop();
Ok(())
}
}