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

transformer: fix some missing stmt assignments (#13236)

This commit is contained in:
Tim Basel 2022-01-21 11:11:10 +01:00 committed by GitHub
parent edbb39b81d
commit 6c8e7f53b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,7 @@ pub fn (mut t Transformer) transform_files(ast_files []&ast.File) {
pub fn (mut t Transformer) transform(mut ast_file ast.File) {
for mut stmt in ast_file.stmts {
t.stmt(mut stmt)
stmt = t.stmt(mut stmt)
}
}
@ -354,7 +354,7 @@ pub fn (mut t Transformer) expr_stmt_if_expr(mut node ast.IfExpr) ast.Expr {
}
t.index.indent(false)
for mut stmt in branch.stmts {
t.stmt(mut stmt)
stmt = t.stmt(mut stmt)
}
t.index.unindent()
}
@ -386,7 +386,7 @@ pub fn (mut t Transformer) expr_stmt_match_expr(mut node ast.MatchExpr) ast.Expr
if branch.is_else {
t.index.indent(false)
for mut stmt in branch.stmts {
t.stmt(mut stmt)
stmt = t.stmt(mut stmt)
}
t.index.unindent()
continue
@ -595,7 +595,7 @@ pub fn (mut t Transformer) expr(mut node ast.Expr) ast.Expr {
}
ast.OrExpr {
for mut stmt in node.stmts {
t.stmt(mut stmt)
stmt = t.stmt(mut stmt)
}
}
ast.ParExpr {