Appearance
| 1 | namespace IR is | |
| 2 | // How a call on a receiver reaches the function it runs. | |
| 3 | enum Dispatch is | |
| 4 | // The named function itself, whatever the receiver's type: a | |
| 5 | // super call, or a function nothing can override. | |
| 6 | DIRECT, | |
| 7 | ||
| 8 | // Whatever overrides the function in the receiver's class. | |
| 9 | VIRTUAL, | |
| 10 | ||
| 11 | // Whatever implements the trait member in the receiver's type. | |
| 12 | INTERFACE, | |
| 13 | ||
| 14 | // Whatever implements the member in the type a type parameter | |
| 15 | // stands for, on a receiver whose type is that parameter or a | |
| 16 | // value type. | |
| 17 | CONSTRAINED | |
| 18 | si | |
| 19 | si |