Skip to content

Commit f61a224

Browse files
Merge pull request #12639 from MattiasBuelens/fixElideFallthrough
Fix elided syntax kinds falling through to visitConstructor in TypeScript transformer
2 parents a230cb7 + 9310063 commit f61a224

File tree

1 file changed

+1
-0
lines changed
  • src/compiler/transformers

1 file changed

+1
-0
lines changed

src/compiler/transformers/ts.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ namespace ts {
345345

346346
case SyntaxKind.PropertyDeclaration:
347347
// TypeScript property declarations are elided.
348+
return undefined;
348349

349350
case SyntaxKind.Constructor:
350351
return visitConstructor(<ConstructorDeclaration>node);

0 commit comments

Comments
 (0)