(self, selector: dict)
| 502 | return variants |
| 503 | |
| 504 | def _ordered_variants(self, selector: dict) -> list[VariantIR]: |
| 505 | return [VariantIR("presence", None, arm["ref"], tuple(arm["requires"])) for arm in selector.get("ordered", [])] |
| 506 | |
| 507 | # The union-wide allowed discriminator set: each variant's tag plus the default |
| 508 | # variant's own enum values for the discriminator field (spec-faithful outbound check). |
no test coverage detected