From b6ae81032f384961a3f4d20d85fa9efee0ea3d41 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sun, 6 Dec 2020 08:19:14 +0100 Subject: [PATCH] ast: Var.is_tmp field --- vlib/v/ast/ast.v | 1 + 1 file changed, 1 insertion(+) diff --git a/vlib/v/ast/ast.v b/vlib/v/ast/ast.v index e1acd34b01..c188977521 100644 --- a/vlib/v/ast/ast.v +++ b/vlib/v/ast/ast.v @@ -370,6 +370,7 @@ pub mut: is_changed bool // to detect mutable vars that are never changed is_or bool // `x := foo() or { ... }` // (for setting the position after the or block for autofree) + is_tmp bool // for tmp for loop vars, so that autofree can skip them } // used for smartcasting only