update comment

This commit is contained in:
z78078 2022-07-20 16:56:41 +08:00
parent 510eaae73a
commit ad12b7e958
2 changed files with 2 additions and 1 deletions

View File

@ -281,6 +281,7 @@ impl Nac3 {
ComposerConfig { kernel_ann: Some("Kernel"), kernel_invariant_ann: "KernelInvariant" },
);
composer.build_constructor_lookup(self.top_levels.iter().map(|(stmt, _, _)| stmt));
let builtins = PyModule::import(py, "builtins")?;
let typings = PyModule::import(py, "typing")?;
let id_fn = builtins.getattr("id")?;

View File

@ -37,7 +37,7 @@ pub struct TopLevelComposer {
// number of built-in function and classes in the definition list, later skip
pub builtin_num: usize,
pub core_config: ComposerConfig,
// the HashMap that store the class name and It constructor Function
// the HashMap that store the class name and it's constructor function
pub constructor_lookup: HashMap<StrRef, ast::Located<ast::StmtKind>>,
}