stage1 更多的语义及其附属基础设施
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user