Skip to content

Commit

Permalink
Add support for Or_Branch_Expr
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielGavin committed Dec 5, 2023
1 parent 93095a1 commit 2b0e809
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/odin/printer/visit.odin
Original file line number Diff line number Diff line change
Expand Up @@ -1632,6 +1632,10 @@ visit_expr :: proc(
document = visit_expr(p, v.x)
document = cons_with_nopl(document, text_token(p, v.token))
document = cons_with_nopl(document, visit_expr(p, v.y))
case ^ast.Or_Branch_Expr:
document = visit_expr(p, v.expr)
document = cons_with_nopl(document, text_token(p, v.token))
document = cons_with_nopl(document, visit_expr(p, v.label))
case ^Or_Return_Expr:
document = cons_with_nopl(
visit_expr(p, v.expr),
Expand Down

0 comments on commit 2b0e809

Please sign in to comment.