Improve core:odin/ast ast.Range_Stmt to use generic number of vals rather than the fixed two to aid with parsing errors

This commit is contained in:
gingerBill
2021-03-24 12:34:06 +00:00
parent d969d0b264
commit bec42e8dd3
4 changed files with 8 additions and 23 deletions
+1 -2
View File
@@ -402,8 +402,7 @@ Range_Stmt :: struct {
using node: Stmt,
label: ^Expr,
for_pos: tokenizer.Pos,
val0: ^Expr,
val1: ^Expr,
vals: []^Expr,
in_pos: tokenizer.Pos,
expr: ^Expr,
body: ^Stmt,