File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -8367,7 +8367,8 @@ namespace ts {
8367
8367
switch (node.kind) {
8368
8368
case SyntaxKind.FunctionExpression:
8369
8369
case SyntaxKind.ArrowFunction:
8370
- return isContextSensitiveFunctionLikeDeclaration(<FunctionExpression>node);
8370
+ case SyntaxKind.MethodDeclaration:
8371
+ return isContextSensitiveFunctionLikeDeclaration(<FunctionExpression | ArrowFunction | MethodDeclaration>node);
8371
8372
case SyntaxKind.ObjectLiteralExpression:
8372
8373
return forEach((<ObjectLiteralExpression>node).properties, isContextSensitive);
8373
8374
case SyntaxKind.ArrayLiteralExpression:
@@ -8380,9 +8381,6 @@ namespace ts {
8380
8381
(isContextSensitive((<BinaryExpression>node).left) || isContextSensitive((<BinaryExpression>node).right));
8381
8382
case SyntaxKind.PropertyAssignment:
8382
8383
return isContextSensitive((<PropertyAssignment>node).initializer);
8383
- case SyntaxKind.MethodDeclaration:
8384
- case SyntaxKind.MethodSignature:
8385
- return isContextSensitiveFunctionLikeDeclaration(<MethodDeclaration>node);
8386
8384
case SyntaxKind.ParenthesizedExpression:
8387
8385
return isContextSensitive((<ParenthesizedExpression>node).expression);
8388
8386
case SyntaxKind.JsxAttributes:
You can’t perform that action at this time.
0 commit comments