mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: minor simplification (#5645)
This commit is contained in:
parent
3d3549d65a
commit
37f31da6c9
@ -257,12 +257,7 @@ fn (mut p Parser) prefix_expr() ast.PrefixExpr {
|
||||
// p.warn('unsafe')
|
||||
// }
|
||||
p.next()
|
||||
mut right := ast.Expr{}
|
||||
if op == .minus {
|
||||
right = p.expr(token.Precedence.call)
|
||||
} else {
|
||||
right = p.expr(token.Precedence.prefix)
|
||||
}
|
||||
right := if op == .minus { p.expr(token.Precedence.call) } else { p.expr(token.Precedence.prefix) }
|
||||
p.is_amp = false
|
||||
return ast.PrefixExpr{
|
||||
op: op
|
||||
|
Loading…
Reference in New Issue
Block a user