Appearance
| 1 | namespace Semantic.Types is | |
| 2 | ||
| 3 | use Source.LOCATION; | |
| 4 | ||
| 5 | class ENUM: GENERIC is | |
| 6 | init( | |
| 7 | location: LOCATION, | |
| 8 | symbol: Symbols.Classy, | |
| 9 | arguments: Collections.List[Type] | |
| 10 | ) is | |
| 11 | super.init(location, symbol, arguments); | |
| 12 | si | |
| 13 | ||
| 14 | create( | |
| 15 | location: LOCATION, | |
| 16 | symbol: Symbols.Classy, | |
| 17 | arguments: Collections.List[Type] | |
| 18 | ) -> GENERIC => | |
| 19 | Types.ENUM(location, symbol, arguments); | |
| 20 | ||
| 21 | to_string() -> string => | |
| 22 | arguments[0].to_string() ?? ""; | |
| 23 | si | |
| 24 | ||
| 25 | si |