(domain)
| 601 | const model = {} |
| 602 | const resultTypes = buildResultTypeNames(ast) |
| 603 | const ensure = (domain) => (model[domain] ??= { commands: [], events: [] }) |
| 604 | |
| 605 | // A vendor entry carries its namespace so the schema projector can file it under |
| 606 | // `vendor.<namespace>`; spec entries carry none, so a vendor-free AST yields the same model. |