stage2 修复大量AI生成的风格问题 stage1 修复对于vm abi的错误生成

This commit is contained in:
zzy committed 2026-10-03 15:05:55 +08:00
1 parent 0e38858785
commit 76f980654c
40 files changed
+619 -938

No files matched your search

+2 -5
View File
@@ -1,9 +1,7 @@
// Expect retcode = 0
// 作用域树(移植自 stage1/spl_scope.c)。每个作用域是一张名字 -> Symbol 表,
// 节点用 parent 指向父作用域;查找从 current_scope 沿父链上溯(支持遮蔽)。
// 名字是 ByteView(借用源/AST);Map 复制键值字节,但 ByteView 指向的字节由
// 调用方保证存活。node 字段是 def.spl 的 DefId。
// 作用域树:名字 -> Symbol,节点经 parent 上溯查找(支持遮蔽)。名字借用源字节,
// 存活由调用方保证;node 为 def.spl 的 DefId。
type .{ .Error } = @import("utils/error.spl");
type .{ .Vec } = @import("utils/vec.spl");
@@ -134,7 +132,6 @@ fn find(self: *Scope, name: ByteView, out: *Symbol): bool {
ret false;
}
// ---- 测试 ----
fn sym(name: []u8, kind: SymbolKind, node: usize): Symbol {
ret Symbol {