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

Function bindStaticPropertyAssignment

test/fixtures/snapshot/typescript.js:47363–47367  ·  view source on GitHub ↗

* For nodes like `x.y = z`, declare a member 'y' on 'x' if x is a function (or IIFE) or class or {}, or not declared. * Also works for expression statements preceded by JSDoc, like / ** @type number * / x.y;

(node)

Source from the content-addressed store, hash-verified

47361 * Also works for expression statements preceded by JSDoc, like / ** @type number * / x.y;
47362 */
47363 function bindStaticPropertyAssignment(node) {
47364 ts.Debug.assert(!ts.isIdentifier(node));
47365 ts.setParent(node.expression, node);
47366 bindPropertyAssignment(node.expression, node, /*isPrototypeProperty*/ false, /*containerIsClass*/ false);
47367 }
47368 function bindPotentiallyMissingNamespaces(namespaceSymbol, entityName, isToplevel, isPrototypeProperty, containerIsClass) {
47369 if ((namespaceSymbol === null || namespaceSymbol === void 0 ? void 0 : namespaceSymbol.flags) & 2097152 /* SymbolFlags.Alias */) {
47370 return namespaceSymbol;

Callers 2

Calls 2

bindPropertyAssignmentFunction · 0.85
assertMethod · 0.80

Tested by

no test coverage detected