stage1 更多的语义及其附属基础设施

This commit is contained in:
zzy committed 2026-08-20 19:51:08 +08:00
1 parent d6113a5417
commit 0f40de43a1
7 files changed
+553 -79

No files matched your search

+3 -2
View File
@@ -1848,9 +1848,10 @@ static void dump_node(spl_ast_t *ast, spl_ast_node_ref_t node_ref, dump_stack_t
for (usize i = 0; i < vec_size(*stack); i++)
printf("%s", vec_at(*stack, i) ? " " : "| ");
printf("%s%s #%zu", last ? "`-" : "|-", spl_ast_kind_name(node->kind), node_ref);
printf("%s%s #%zu ID`%zu`", last ? "`-" : "|-", spl_ast_kind_name(node->kind), node_ref,
node->resolved_type_id);
if (node->dbg.fname)
printf(" (%d:%d)", node->dbg.line, node->dbg.col);
printf(" [%d:%d]", node->dbg.line, node->dbg.col);
printf("\n");
vec_push(*stack, last);