Fixed where module needs to be placed

This commit is contained in:
2026-06-10 05:54:19 +02:00
parent e7f1072050
commit cb3f1bcde1
3 changed files with 13 additions and 3 deletions
+3 -1
View File
@@ -88,7 +88,9 @@ fn transpile_file(path *PathBuf, output_file *PathBuf, mod_decl *str) {
let mut gc = mist_codegen::RustCodegen::new();
let [[vis, api], ast] = match (mist_parser::parse(&source)) {
let is_master = path.file_name().unwrap().to_str().unwrap() == "main.mist";
let [[vis, api], ast] = match (mist_parser::parse(&source, is_master)) {
Ok[ast] => ast;
Err[e] => {
match (e) {