Appearance
| 1 | namespace IR.Values.Store is | |
| 2 | use SymbolBase = Semantic.Symbols.Symbol | |
| 3 | ||
| 4 | // The cast to the symbol's expected kind is a checked construction | |
| 5 | // invariant: the caller only ever builds this value with a symbol of | |
| 6 | // that kind, so a throw here means the invariant broke elsewhere. | |
| 7 | @suppress("cast-may-throw") | |
| 8 | class STATIC_FIELD: SYMBOL is | |
| 9 | is_consumable: bool => value.is_consumable | |
| 10 | ||
| 11 | init(symbol: SymbolBase, value: IR.Values.Value) is | |
| 12 | super.init(null, symbol, value) | |
| 13 | si | |
| 14 | ||
| 15 | accept(visitor: Visitor) is | |
| 16 | visitor.visit(self) | |
| 17 | si | |
| 18 | ||
| 19 | to_string() -> string => | |
| 20 | "store:[{type}](\"{symbol.name}\",{value})" | |
| 21 | si | |
| 22 | si |