nac3core: Add field "constructor_lookup" to the struct TopLevelComposer #308

Closed
z78078 wants to merge 9 commits from issue-139 into master
Showing only changes of commit 6eb433b2e3 - Show all commits

View File

@ -37,7 +37,7 @@ pub struct TopLevelComposer {
// number of built-in function and classes in the definition list, later skip // number of built-in function and classes in the definition list, later skip
pub builtin_num: usize, pub builtin_num: usize,
pub core_config: ComposerConfig, pub core_config: ComposerConfig,
// the class name and it's constructor function // the class name and its constructor function
pub constructor_lookup: HashMap<StrRef, ast::Located<ast::StmtKind>>, pub constructor_lookup: HashMap<StrRef, ast::Located<ast::StmtKind>>,
} }
@ -185,7 +185,7 @@ impl TopLevelComposer {
return Some((**class_name, stmt.clone())) return Some((**class_name, stmt.clone()))
} }
} }
return None None
}) })
); );