Error span moved from constructor to this keyword.

This commit is contained in:
Paul van Brenk
2016-10-05 11:29:38 -07:00
parent cf4e30090a
commit ebcfce4127

View File

@@ -29,7 +29,7 @@ namespace ts.codefix {
const sourceFile = context.sourceFile;
const token = getTokenAtPosition(sourceFile, context.span.start);
if (token.kind !== SyntaxKind.ConstructorKeyword) {
if (token.kind !== SyntaxKind.ThisKeyword) {
return undefined;
}