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

Function checkPropertyAssignment

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

Source from the content-addressed store, hash-verified

79614 getWidenedLiteralLikeTypeForContextualType(type, instantiateContextualType(arguments.length === 2 ? getContextualType(node) : contextualType, node));
79615 }
79616 function checkPropertyAssignment(node, checkMode) {
79617 // Do not use hasDynamicName here, because that returns false for well known symbols.
79618 // We want to perform checkComputedPropertyName for all computed properties, including
79619 // well known symbols.
79620 if (node.name.kind === 162 /* SyntaxKind.ComputedPropertyName */) {
79621 checkComputedPropertyName(node.name);
79622 }
79623 return checkExpressionForMutableLocation(node.initializer, checkMode);
79624 }
79625 function checkObjectLiteralMethod(node, checkMode) {
79626 // Grammar checking
79627 checkGrammarMethod(node);

Calls 2

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…