Working map shift gen

This commit is contained in:
2026-06-14 04:18:57 +02:00
parent 33d6c931f5
commit 37e0a574d5
2 changed files with 35 additions and 0 deletions
+3
View File
@@ -8,6 +8,7 @@ use std::time;
use std::env;
use mist_parser::error;
use mist_parser::rev_mapper;
use crate::modules;
use mist_codegen::GetRust;
@@ -238,6 +239,8 @@ fn transpile_file(path *PathBuf, source *str, mut output_file PathBuf, mod_decl
let res = fs::write(&output_file, format!("{mod_decl}{output}"));
rev_mapper::shift_rust_mappings(&mut gc.mapping, mod_decl.lines().count() as isize, 0);
let output_file_map = output_file.with_extension("map.json");
let res_map = fs::write(&output_file_map, serde_json::to_string(&gc.mapping).unwrap());