Add ScriptFnMetadata.

This commit is contained in:
Stephen Chung
2020-12-12 18:44:28 +08:00
parent 1087c338bd
commit 26449a9f1c
6 changed files with 57 additions and 29 deletions

View File

@@ -142,20 +142,7 @@ fn main() {
.for_each(|f| println!("{}", f));
#[cfg(not(feature = "no_function"))]
main_ast
.iter_functions()
.for_each(|(_, access, name, _, params)| {
println!(
"{}{}({}) -> Dynamic",
if access.is_private() { "private " } else { "" },
name,
params
.iter()
.map(|s| s.as_str())
.collect::<Vec<_>>()
.join(", ")
)
});
main_ast.iter_functions().for_each(|f| println!("{}", f));
println!();
continue;