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

This commit is contained in:
Damian Tarnawski committed 2024-07-29 22:14:42 +02:00
1 parent 7f17d4eb7f
commit 478b2d7444
2 files changed
+2 -1

No files matched your search

+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
}