Appearance
| 1 | namespace IR.Values is | |
| 2 | use Semantic.Types.Type | |
| 3 | ||
| 4 | class UNBOX: Value is | |
| 5 | value: Value | |
| 6 | type: Type? pure => value.type | |
| 7 | is_value_type: bool => true | |
| 8 | ||
| 9 | init( | |
| 10 | value: Value | |
| 11 | ) is | |
| 12 | super.init() | |
| 13 | ||
| 14 | self.value = value | |
| 15 | si | |
| 16 | ||
| 17 | accept(visitor: Visitor) is | |
| 18 | visitor.visit(self) | |
| 19 | si | |
| 20 | ||
| 21 | to_string() -> string => | |
| 22 | "unbox:[{type}]({value})" | |
| 23 | si | |
| 24 | ||
| 25 | si |