Appearance
| 1 | namespace Semantic.Types is | |
| 2 | use Source.LOCATION; | |
| 3 | ||
| 4 | class FUNCTION_GROUP: Type is | |
| 5 | name: string; | |
| 6 | ||
| 7 | function_group: Symbols.FUNCTION_GROUP; | |
| 8 | ||
| 9 | init(name: string, function_group: Symbols.FUNCTION_GROUP) is | |
| 10 | super.init(); | |
| 11 | ||
| 12 | self.name = name; | |
| 13 | self.function_group = function_group; | |
| 14 | si | |
| 15 | ||
| 16 | matches(other: Type) -> bool => | |
| 17 | isa FUNCTION_GROUP(other) /\ | |
| 18 | function_group == other.function_group; | |
| 19 | ||
| 20 | to_string() -> string => | |
| 21 | "{name}(...)"; | |
| 22 | si | |
| 23 | si |