Skip to content
← Back

src/ir/values/store/local_variable.ghul

1
namespace IR.Values.Store is
2
use TypeTyped = Semantic.Types.Typed
3
use Semantic.Types.Type
4
use SymbolBase = Semantic.Symbols.Symbol
5
6
class LOCAL_VARIABLE: SYMBOL is
7
is_consumable: bool => value.is_consumable
8
9
init(symbol: SymbolBase, value: IR.Values.Value) is
10
super.init(null, symbol, value)
11
si
12
13
accept(visitor: Visitor) is
14
visitor.visit(self)
15
si
16
17
to_string() -> string =>
18
"store:[{type}]({from},\"{symbol.name}\",{value})"
19
si
20
si