Skip to content
← Back

src/ir/values/store/local_argument.ghul

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