Fix error propagation error in parsing. Semantic checker fix for compile result struct. Test cleanup
This commit is contained in:
8
AST.jai
8
AST.jai
@@ -296,10 +296,10 @@ pretty_print_if :: (node : *AST_Node, indentation : int, builder : *String_Build
|
||||
append(builder, "\n");
|
||||
|
||||
body := node.children[1];
|
||||
indent(builder,indentation + 4);
|
||||
append(builder, "(");
|
||||
pretty_print_node(body, indentation + 5, builder, true);
|
||||
append(builder, ")");
|
||||
// indent(builder,indentation + 4);
|
||||
// append(builder, "(");
|
||||
pretty_print_node(body, indentation + 4, builder);
|
||||
// append(builder, ")");
|
||||
|
||||
if node.children.count == 3 {
|
||||
append(builder, "\n");
|
||||
|
||||
Reference in New Issue
Block a user