Appearance
| 1 | namespace IR.Program is | |
| 2 | use Semantic.Symbols.Symbol | |
| 3 | use Semantic.Symbols.Classy | |
| 4 | ||
| 5 | /// The built-in types a whole-program plan treats specially, which the | |
| 6 | /// core library supplies. | |
| 7 | trait CoreClasses open is | |
| 8 | /// The generic definition every array type is an instance of, or | |
| 9 | /// null where there is none. | |
| 10 | array_definition: Classy? | |
| 11 | ||
| 12 | /// The symbol of the built-in `bigint` type, or null where there is | |
| 13 | /// none. | |
| 14 | bigint: Symbol? | |
| 15 | ||
| 16 | /// The generic definition of `Iterable`, which a sequence implements, | |
| 17 | /// or null where there is none. | |
| 18 | iterable_definition: Symbol? | |
| 19 | si | |
| 20 | ||
| 21 | /// The core classes as the compilation's built-in symbol lookup | |
| 22 | /// answers them. | |
| 23 | class INNATE_CORE_CLASSES: CoreClasses is | |
| 24 | init() is si | |
| 25 | ||
| 26 | array_definition: Classy? => | |
| 27 | cast Classy?( | |
| 28 | cast Semantic.Symbols.GENERIC?( | |
| 29 | IoC.CONTAINER.instance.innate_symbol_lookup.get_array_type( | |
| 30 | IoC.CONTAINER.instance.innate_symbol_lookup.get_int_type()).symbol)?.unspecialized_symbol) | |
| 31 | ||
| 32 | bigint: Symbol? => IoC.CONTAINER.instance.innate_symbol_lookup.get_bigint_type().symbol | |
| 33 | ||
| 34 | iterable_definition: Symbol? => IoC.CONTAINER.instance.innate_symbol_lookup.get_unspecialized_iterable_type().symbol | |
| 35 | si | |
| 36 | si |