Appearance
| 1 | namespace IR.Values.Store is | |
| 2 | use SymbolBase = Semantic.Symbols.Symbol; | |
| 3 | ||
| 4 | class STATIC_FIELD: SYMBOL is | |
| 5 | is_consumable: bool => value.is_consumable; | |
| 6 | ||
| 7 | init(symbol: SymbolBase, value: IR.Values.Value) is | |
| 8 | super.init(null, symbol, value); | |
| 9 | si | |
| 10 | ||
| 11 | gen(context: IR.CONTEXT) is | |
| 12 | gen(value, context); | |
| 13 | ||
| 14 | context.write_line("stsfld {symbol.get_il_reference()}"); | |
| 15 | si | |
| 16 | ||
| 17 | to_string() -> string => | |
| 18 | "store:[{type}](\"{symbol.name}\",{value})"; | |
| 19 | si | |
| 20 | si |