MCPcopy Index your code
hub / github.com/nodejs/node / checkObjectLiteralMethod

Function checkObjectLiteralMethod

test/fixtures/snapshot/typescript.js:79625–79636  ·  view source on GitHub ↗
(node, checkMode)

Source from the content-addressed store, hash-verified

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);

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…