(node, checkMode)
| 79623 | return checkExpressionForMutableLocation(node.initializer, checkMode); |
| 79624 | } |
| 79625 | function checkObjectLiteralMethod(node, checkMode) { |
| 79626 | // Grammar checking |
| 79627 | checkGrammarMethod(node); |
| 79628 | // Do not use hasDynamicName here, because that returns false for well known symbols. |
| 79629 | // We want to perform checkComputedPropertyName for all computed properties, including |
| 79630 | // well known symbols. |
| 79631 | if (node.name.kind === 162 /* SyntaxKind.ComputedPropertyName */) { |
| 79632 | checkComputedPropertyName(node.name); |
| 79633 | } |
| 79634 | var uninstantiatedType = checkFunctionExpressionOrObjectLiteralMethod(node, checkMode); |
| 79635 | return instantiateTypeWithSingleGenericCallSignature(node, uninstantiatedType, checkMode); |
| 79636 | } |
| 79637 | function instantiateTypeWithSingleGenericCallSignature(node, type, checkMode) { |
| 79638 | if (checkMode && checkMode & (2 /* CheckMode.Inferential */ | 8 /* CheckMode.SkipGenericFunctions */)) { |
| 79639 | var callSignature = getSingleSignature(type, 0 /* SignatureKind.Call */, /*allowMembers*/ true); |
no test coverage detected
searching dependent graphs…