File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ namespace ts.codefix {
31
31
return undefined ;
32
32
}
33
33
34
- const isStatic = hasModifier ( getThisContainer ( token , /*includeArrowFunctions*/ false ) , ModifierFlags . Static ) ;
34
+ const isStatic = hasModifier ( classMemberDeclaration , ModifierFlags . Static ) ;
35
35
36
36
return isInJavaScriptFile ( sourceFile ) ? getActionsForAddMissingMemberInJavaScriptFile ( ) : getActionsForAddMissingMemberInTypeScriptFile ( ) ;
37
37
@@ -54,7 +54,7 @@ namespace ts.codefix {
54
54
fileName : sourceFile . fileName ,
55
55
textChanges : [ {
56
56
span : { start : startPos , length : 0 } ,
57
- newText : `${ isStatic ? "static " : "" } ${ token . getFullText ( sourceFile ) } : ${ typeString } ;`
57
+ newText : `${ isStatic ? "static " : "" } ${ token . getText ( sourceFile ) } : ${ typeString } ;`
58
58
} ]
59
59
} ]
60
60
} ] ;
You can’t perform that action at this time.
0 commit comments