Use or_break and or_continue where appropriate in the core library

This commit is contained in:
gingerBill committed 2023-09-30 15:34:39 +01:00
1 parent 41a22bd83d
commit 14adcb9db8
14 files changed
+92 -142

No files matched your search

+2 -2
View File
@@ -551,8 +551,8 @@ unparen_expr :: proc(expr: ^Expr) -> (val: ^Expr) {
return
}
for {
e, ok := val.derived.(^Paren_Expr)
if !ok || e.expr == nil {
e := val.derived.(^Paren_Expr) or_break
if e.expr == nil {
break
}
val = e.expr