mirror of
https://github.com/icsharpcode/ILSpy.git
synced 2026-10-12 02:15:58 +00:00
The generator emits a Slots holder of typed CSharpSlotInfo<T> kind constants (T is the child type, widened to AstNode for the few kinds reused with several child types). Call sites whose kind maps to a single type switch from GetChildByRole<T>(SlotKind.X) to GetChild(Slots.X), inferring the result type from the slot. The ByRole methods and SlotKind remain for the multi-type Attribute accessor and the internal add/insert plumbing, removed in following steps. Assisted-by: Claude:claude-opus-4-8:Claude Code