File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ namespace ts.codefix {
34
34
}
35
35
36
36
const constructor = getContainingFunction ( token ) ;
37
- const superCall = < ExpressionStatement > findSuperCall ( ( < ConstructorDeclaration > constructor ) . body ) ;
37
+ const superCall = findSuperCall ( ( < ConstructorDeclaration > constructor ) . body ) ;
38
38
if ( ! superCall ) {
39
39
return undefined ;
40
40
}
@@ -67,9 +67,9 @@ namespace ts.codefix {
67
67
changes
68
68
} ] ;
69
69
70
- function findSuperCall ( n : Node ) : Node {
71
- if ( n . kind === SyntaxKind . ExpressionStatement && isSuperCallExpression ( ( < ExpressionStatement > n ) . expression ) ) {
72
- return n ;
70
+ function findSuperCall ( n : Node ) : ExpressionStatement {
71
+ if ( n . kind === SyntaxKind . ExpressionStatement && isSuperCall ( ( < ExpressionStatement > n ) . expression ) ) {
72
+ return < ExpressionStatement > n ;
73
73
}
74
74
if ( isFunctionLike ( n ) ) {
75
75
return undefined ;
You can’t perform that action at this time.
0 commit comments