This commit is contained in:
greg 2018-05-16 01:13:02 -07:00
parent 36cd7e080d
commit 8f0104ebc7

View File

@ -92,9 +92,7 @@ impl TypeContext {
pub fn new() -> TypeContext { pub fn new() -> TypeContext {
TypeContext { bindings: HashMap::new(), /*type_var_count: 0*/ symbol_table: SymbolTable::new() } TypeContext { bindings: HashMap::new(), /*type_var_count: 0*/ symbol_table: SymbolTable::new() }
} }
}
impl TypeContext {
/* note: this adds names for *forward reference* but doesn't actually create any types. solve that problem /* note: this adds names for *forward reference* but doesn't actually create any types. solve that problem
* later */ * later */
pub fn add_top_level_types(&mut self, ast: &parsing::AST) -> TypeResult<()> { pub fn add_top_level_types(&mut self, ast: &parsing::AST) -> TypeResult<()> {