ast: Var.is_tmp field

pull/7162/head
Alexander Medvednikov 2020-12-06 08:19:14 +01:00
parent cd72c25edb
commit b6ae81032f
1 changed files with 1 additions and 0 deletions

View File

@ -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