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

ast: Var.is_tmp field

This commit is contained in:
Alexander Medvednikov 2020-12-06 08:19:14 +01:00
parent cd72c25edb
commit b6ae81032f

View File

@ -370,6 +370,7 @@ pub mut:
is_changed bool // to detect mutable vars that are never changed is_changed bool // to detect mutable vars that are never changed
is_or bool // `x := foo() or { ... }` is_or bool // `x := foo() or { ... }`
// (for setting the position after the or block for autofree) // (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 // used for smartcasting only