Split AST into separate files.

This commit is contained in:
Stephen Chung
2021-12-17 16:07:13 +08:00
parent b1b2c62d7d
commit c7ec27acc7
16 changed files with 2693 additions and 2614 deletions

View File

@@ -1328,7 +1328,7 @@ impl Module {
f.access,
f.name.as_str(),
f.params,
f.func.get_script_fn_def().expect("scripted function"),
f.func.get_script_fn_def().expect("script-defined function"),
)
})
}
@@ -1459,7 +1459,7 @@ impl Module {
let mut func = f
.func
.get_script_fn_def()
.expect("scripted function")
.expect("script-defined function")
.as_ref()
.clone();
func.lib = Some(ast.shared_lib().clone());