We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 64a7fd6 + 20a5452 commit c12a9d4Copy full SHA for c12a9d4
ts/output/common/Wrapper.ts
@@ -709,9 +709,10 @@ export class CommonWrapper<
709
if (this.node.isEmbellished) {
710
return [this, this.coreMO()] as any as [WW, WW];
711
}
712
- const childNodes = this.childNodes[0]?.node?.isInferred
713
- ? this.childNodes[0].childNodes
714
- : this.childNodes;
+ const childNodes =
+ this.childNodes[0]?.node?.isInferred || this.node.isKind('semantics')
+ ? this.childNodes[0].childNodes
715
+ : this.childNodes;
716
if (this.node.isToken || !childNodes[i]) {
717
return [this, null] as any as [WW, WW];
718
0 commit comments