feat(selfhost): multi-file #line paths from Decl.sourceFile

Stamp each merged .bux path onto decls, propagate to HirFunc, and emit
#line N \"path\" per function without requiring BUX_DEBUG_FILE.

- Decl.sourceFile + Cli_StampSourceFile on merge/project parse
- HirFunc.sourceFile; CBE switches currentFile per function
- Stdlib and multi-file user packages get distinct paths automatically
This commit is contained in:
2026-07-19 23:13:02 +03:00
parent ed07cf8921
commit 70321075a6
7 changed files with 75 additions and 10 deletions
+2
View File
@@ -115,6 +115,8 @@ module Hir {
envStructName: String;
envInstanceName: String;
checkedFunc: bool;
// Absolute/relative path for #line maps (multi-file selfhost)
sourceFile: String;
}
// ---------------------------------------------------------------------------