Testing scope importing

This commit is contained in:
2026-04-22 08:56:44 +02:00
parent 664e8aba74
commit 842383ba6e
6 changed files with 40 additions and 11 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ pub fn build() {
println!(" → type checking...");
semantic::walk_ast(semantic::scope::Scope::from_top(&ast), &mut ast);
semantic::walk_ast(semantic::scope::Scope::from_top(&root, &ast), &mut ast);
println!(" → generating Go code...");
+2 -2
View File
@@ -56,7 +56,7 @@ fn cmd_check(path: &str) {
Ok(mut ast) => {
println!("parse: ok");
walk_ast(semantic::scope::Scope::from_top(&ast), &mut ast);
// walk_ast(semantic::scope::Scope::from_top(&ast), &mut ast);
println!("{:#?}", ast)
}
@@ -71,7 +71,7 @@ fn cmd_parse(path: &str) {
let source = read_ms_file(path);
match parser::parse(&source) {
Ok(mut ast) => {
walk_ast(semantic::scope::Scope::from_top(&ast), &mut ast);
// walk_ast(semantic::scope::Scope::from_top(&ast), &mut ast);
fs::write("output.json", serde_json::to_string_pretty(&ast).unwrap()).unwrap_or_else(
|e| {