Appearance
| 1 | namespace Semantic.Types is | |
| 2 | ||
| 3 | use Source.LOCATION | |
| 4 | ||
| 5 | class POINTER: GENERIC is | |
| 6 | short_description: string => get_short_description(self) | |
| 7 | ||
| 8 | is_pointer: bool => true | |
| 9 | ||
| 10 | get_short_description(reference: GENERIC) -> string static => "{reference.arguments[0]} ptr" | |
| 11 | ||
| 12 | init( | |
| 13 | location: LOCATION, | |
| 14 | symbol: Symbols.Classy, | |
| 15 | arguments: Collections.List[Type] | |
| 16 | ) is | |
| 17 | super.init(Symbols.POINTER(location, symbol, arguments[0])) | |
| 18 | si | |
| 19 | ||
| 20 | create( | |
| 21 | location: LOCATION, | |
| 22 | symbol: Symbols.Classy, | |
| 23 | arguments: Collections.List[Type] | |
| 24 | ) -> GENERIC => | |
| 25 | Types.POINTER(location, symbol, arguments) | |
| 26 | ||
| 27 | to_string() -> string => get_short_description(self) | |
| 28 | si | |
| 29 | si |