mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
remove ScalarExpr
This commit is contained in:
@@ -44,15 +44,10 @@ const (
|
||||
fn (g mut Gen) expr(node ast.Expr) Type {
|
||||
//println('cgen expr()')
|
||||
match node {
|
||||
ast.IntegerExpr {
|
||||
ast.IntegerLiteral {
|
||||
g.write(it.val.str())
|
||||
return int_type
|
||||
}
|
||||
ast.ScalarExpr {
|
||||
g.expr(it.left)
|
||||
g.write(' $it.val ')
|
||||
|
||||
}
|
||||
ast.UnaryExpr {
|
||||
g.expr(it.left)
|
||||
g.write(' $it.op ')
|
||||
|
Reference in New Issue
Block a user