File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ namespace ts.codefix {
3434 }
3535
3636 const constructor = getContainingFunction ( token ) ;
37- const superCall = < ExpressionStatement > findSuperCall ( ( < ConstructorDeclaration > constructor ) . body ) ;
37+ const superCall = findSuperCall ( ( < ConstructorDeclaration > constructor ) . body ) ;
3838 if ( ! superCall ) {
3939 return undefined ;
4040 }
@@ -67,9 +67,9 @@ namespace ts.codefix {
6767 changes
6868 } ] ;
6969
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 ;
7373 }
7474 if ( isFunctionLike ( n ) ) {
7575 return undefined ;
You can’t perform that action at this time.
0 commit comments