hook up result locs for try
This commit is contained in:
@@ -165,8 +165,8 @@ static const char *node_type_str(NodeType node_type) {
|
||||
return "Parens";
|
||||
case NodeTypeBinOpExpr:
|
||||
return "BinOpExpr";
|
||||
case NodeTypeUnwrapErrorExpr:
|
||||
return "UnwrapErrorExpr";
|
||||
case NodeTypeCatchExpr:
|
||||
return "CatchExpr";
|
||||
case NodeTypeFnCallExpr:
|
||||
return "FnCallExpr";
|
||||
case NodeTypeArrayAccessExpr:
|
||||
@@ -1100,7 +1100,7 @@ static void render_node_extra(AstRender *ar, AstNode *node, bool grouped) {
|
||||
fprintf(ar->f, "]");
|
||||
break;
|
||||
}
|
||||
case NodeTypeUnwrapErrorExpr:
|
||||
case NodeTypeCatchExpr:
|
||||
{
|
||||
render_node_ungrouped(ar, node->data.unwrap_err_expr.op1);
|
||||
fprintf(ar->f, " catch ");
|
||||
|
||||
Reference in New Issue
Block a user