| 258 | |
| 259 | @dataclass |
| 260 | class ModuleIR: |
| 261 | domain: str |
| 262 | class_name: str |
| 263 | filename: str |
| 264 | enums: list[EnumIR] |
| 265 | records: list[RecordIR] |
| 266 | unions: list[UnionIR] |
| 267 | commands: list[CommandIR] |
| 268 | events: list[EventIR] |
| 269 | imports: dict[str, set[str]] # module filename -> annotation names (cross-domain) |
| 270 | spec_href: str | None = None |
| 271 | |
| 272 | |
| 273 | # --------------------------------------------------------------------------- # |