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

v.parser: eliminate PrefixExpr from &Type(x).name and &Type(x)[idx] too (fix vinix build)

This commit is contained in:
Delyan Angelov
2021-07-17 20:19:29 +03:00
parent fc8a8e3b6f
commit 6edfb2c7fe
5 changed files with 89 additions and 16 deletions

View File

@ -1224,12 +1224,13 @@ fn (t Tree) at_expr(node ast.AtExpr) &Node {
fn (t Tree) cast_expr(node ast.CastExpr) &Node {
mut obj := new_object()
obj.add('ast_type', t.string_node('CastExpr'))
obj.add('expr', t.expr(node.expr))
obj.add('arg', t.expr(node.arg))
obj.add('typ', t.type_node(node.typ))
obj.add('ityp', t.number_node(int(node.typ)))
obj.add('typname', t.string_node(node.typname))
obj.add('expr_type', t.type_node(node.expr_type))
obj.add('has_arg', t.bool_node(node.has_arg))
obj.add('arg', t.expr(node.arg))
obj.add('expr_type', t.type_node(node.expr_type))
obj.add('expr', t.expr(node.expr))
obj.add('pos', t.position(node.pos))
return obj
}