(ir: SemanticIR)
| 489 | } |
| 490 | |
| 491 | function raisedNames(ir: SemanticIR): string[] { |
| 492 | const seen = new Set<string>(); |
| 493 | const out: string[] = []; |
| 494 | for (const raise of ir.throws.value) { |
| 495 | if (!seen.has(raise.type)) { |
| 496 | seen.add(raise.type); |
| 497 | out.push(raise.type); |
| 498 | } |
| 499 | } |
| 500 | return out; |
| 501 | } |
| 502 | |
| 503 | function observedDrafts(packet: FactPacket, rank: number): Draft[] { |
| 504 | return packet.observed.map((entry) => ({ |