Skip to content

Commit ebcfce4

Browse files
author
Paul van Brenk
committed
Error span moved from constructor to this keyword.
1 parent cf4e300 commit ebcfce4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/services/codefixes/superFixes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ namespace ts.codefix {
2929
const sourceFile = context.sourceFile;
3030

3131
const token = getTokenAtPosition(sourceFile, context.span.start);
32-
if (token.kind !== SyntaxKind.ConstructorKeyword) {
32+
if (token.kind !== SyntaxKind.ThisKeyword) {
3333
return undefined;
3434
}
3535

0 commit comments

Comments
 (0)