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

cgen: make comptime call works with or-block (#18215)

This commit is contained in:
Felipe Pena
2023-05-21 10:22:40 -03:00
committed by GitHub
parent 30e02cfa3d
commit 38a155ac81
7 changed files with 50 additions and 4 deletions

View File

@ -1001,6 +1001,7 @@ fn (t Tree) comptime_call(node ast.ComptimeCall) &Node {
obj.add_terse('env_value', t.string_node(node.env_value))
obj.add('pos', t.pos(node.pos))
obj.add_terse('args', t.array_node_call_arg(node.args))
obj.add_terse('or_block', t.or_expr(node.or_block))
return obj
}