Appearance
| 1 | namespace IR.Values.Need is | |
| 2 | use TypeTyped = Semantic.Types.Typed; | |
| 3 | use Semantic.Types.Type; | |
| 4 | use SymbolBase = Semantic.Symbols.Symbol; | |
| 5 | ||
| 6 | class STORE: Value is | |
| 7 | type: Type? => value.type; | |
| 8 | value: Value; | |
| 9 | is_consumable: bool => false; | |
| 10 | is_need_store: bool => true; | |
| 11 | ||
| 12 | init(value: Value) is | |
| 13 | super.init(); | |
| 14 | ||
| 15 | self.value = value; | |
| 16 | si | |
| 17 | ||
| 18 | gen(context: IR.CONTEXT) is | |
| 19 | gen(value, context); | |
| 20 | ||
| 21 | assert false else "unresolved need store"; | |
| 22 | si | |
| 23 | ||
| 24 | to_string() -> string => | |
| 25 | "need-store:[{type}]"; | |
| 26 | si | |
| 27 | si |