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