We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c545c6 commit 487be62Copy full SHA for 487be62
1 file changed
src/compiler/transformers/ts.ts
@@ -860,14 +860,9 @@ namespace ts {
860
}
861
862
const statement = statements[index];
863
- if (statement.kind === SyntaxKind.ExpressionStatement) {
864
- const expression = (<ExpressionStatement>statement).expression;
865
- if (expression.kind === SyntaxKind.CallExpression) {
866
- if ((<CallExpression>expression).expression.kind === SyntaxKind.SuperKeyword) {
867
- result.push(visitNode(statement, visitor, isStatement));
868
- return index + 1;
869
- }
870
+ if (statement.kind === SyntaxKind.ExpressionStatement && isSuperCallExpression((<ExpressionStatement>statement).expression)) {
+ result.push(visitNode(statement, visitor, isStatement));
+ return index + 1;
871
872
873
return index;
0 commit comments