Address CR feedback

This commit is contained in:
Anders Hejlsberg 2016-10-17 15:34:03 -07:00
parent 8aa56c1cce
commit af52b6314c

View File

@ -6114,7 +6114,7 @@ namespace ts {
// know that all parameters (including 'this') have type annotations and nothing is
// subject to contextual typing.
const parameter = firstOrUndefined(node.parameters);
return !(parameter && parameter.name.kind === SyntaxKind.Identifier && (<Identifier>parameter.name).text === "this");
return !(parameter && parameterIsThisKeyword(parameter));
}
function isContextSensitiveFunctionOrObjectLiteralMethod(func: Node): func is FunctionExpression | ArrowFunction | MethodDeclaration {