An experimental TypeSpec syntax for Lexicon

fix namespaces failing to emit

Changed files
+1 -6
packages
emitter
+1 -6
packages/emitter/src/emitter.ts
··· 164 164 const hasScalars = ns.scalars.size > 0; 165 165 const hasUnions = ns.unions?.size > 0; 166 166 const hasOperations = ns.operations?.size > 0; 167 - const hasChildNamespaces = ns.namespaces.size > 0; 168 167 const hasContent = hasModels || hasScalars || hasUnions; 169 168 170 169 if (hasOperations) { 171 170 return "operation"; 172 171 } 173 172 174 - if (hasContent && hasChildNamespaces) { 175 - return "defs"; 176 - } 177 - 178 - if (hasContent && !hasChildNamespaces) { 173 + if (hasContent) { 179 174 return "content"; 180 175 } 181 176