1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

cgen, check, parser: implement first-class option type (#17017)

This commit is contained in:
Felipe Pena
2023-02-18 06:45:01 -03:00
committed by GitHub
parent e066d1d3df
commit 2879c5110c
76 changed files with 1156 additions and 538 deletions

View File

@ -1459,6 +1459,7 @@ fn (t Tree) ident(node ast.Ident) &Node {
obj.add('mut_pos', t.pos(node.mut_pos))
obj.add('obj', t.scope_object(node.obj))
obj.add('scope', t.number_node(int(node.scope)))
obj.add_terse('or_expr', t.or_expr(node.or_expr))
return obj
}