From 6c8e7f53b571a356f58e379eae8b7865922bece8 Mon Sep 17 00:00:00 2001 From: Tim Basel Date: Fri, 21 Jan 2022 11:11:10 +0100 Subject: [PATCH] transformer: fix some missing `stmt` assignments (#13236) --- vlib/v/transformer/transformer.v | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vlib/v/transformer/transformer.v b/vlib/v/transformer/transformer.v index 018e93a73b..5a4eb4be13 100644 --- a/vlib/v/transformer/transformer.v +++ b/vlib/v/transformer/transformer.v @@ -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 {