Correct the Array_Type.len comment and assign tok when making Ellipsis node

This commit is contained in:
Damian Tarnawski
2024-07-29 22:14:42 +02:00
parent 7f17d4eb7f
commit 478b2d7444
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -1778,6 +1778,7 @@ parse_var_type :: proc(p: ^Parser, flags: ast.Field_Flags) -> ^ast.Expr {
type = ast.new(ast.Bad_Expr, tok.pos, end_pos(tok))
}
e := ast.new(ast.Ellipsis, type.pos, type)
e.tok = tok.kind
e.expr = type
return e
}