1- /* @internal */
1+ /* @internal */
22namespace ts . codefix {
33 function getOpenBraceEnd ( constructor : ConstructorDeclaration , sourceFile : SourceFile ) {
44 // First token is the open curly, this is where we want to put the 'super' call.
55 return constructor . body . getFirstToken ( sourceFile ) . getEnd ( ) ;
66 }
77
88 registerCodeFix ( {
9- errorCodes : [ `TS ${ Diagnostics . Constructors_for_derived_classes_must_contain_a_super_call . code } ` ] ,
9+ errorCodes : [ Diagnostics . Constructors_for_derived_classes_must_contain_a_super_call . code ] ,
1010 getCodeActions : ( context : CodeFixContext ) => {
1111 const sourceFile = context . sourceFile ;
1212 const token = getTokenAtPosition ( sourceFile , context . span . start ) ;
@@ -24,7 +24,7 @@ namespace ts.codefix {
2424 } ) ;
2525
2626 registerCodeFix ( {
27- errorCodes : [ `TS ${ Diagnostics . super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class . code } ` ] ,
27+ errorCodes : [ Diagnostics . super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class . code ] ,
2828 getCodeActions : ( context : CodeFixContext ) => {
2929 const sourceFile = context . sourceFile ;
3030
@@ -43,7 +43,7 @@ namespace ts.codefix {
4343 // i.e. super(this.a), since in that case we won't suggest a fix
4444 if ( superCall . expression && superCall . expression . kind == SyntaxKind . CallExpression ) {
4545 const arguments = ( < CallExpression > superCall . expression ) . arguments ;
46- for ( let i = 0 ; i < arguments . length ; i ++ ) {
46+ for ( let i = 0 ; i < arguments . length ; i ++ ) {
4747 if ( ( < PropertyAccessExpression > arguments [ i ] ) . expression === token ) {
4848 return undefined ;
4949 }
0 commit comments