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

Function bindPrototypeAssignment

test/fixtures/snapshot/typescript.js:47296–47300  ·  view source on GitHub ↗

For `x.prototype = { p, ... }`, declare members p,... if `x` is function/class/{}, or not declared.

(node)

Source from the content-addressed store, hash-verified

47294 }
47295 /** For `x.prototype = { p, ... }`, declare members p,... if `x` is function/class/{}, or not declared. */
47296 function bindPrototypeAssignment(node) {
47297 ts.setParent(node.left, node);
47298 ts.setParent(node.right, node);
47299 bindPropertyAssignment(node.left.expression, node.left, /*isPrototypeProperty*/ false, /*containerIsClass*/ true);
47300 }
47301 function bindObjectDefinePrototypeProperty(node) {
47302 var namespaceSymbol = lookupSymbolForPropertyAccess(node.arguments[0].expression);
47303 if (namespaceSymbol && namespaceSymbol.valueDeclaration) {

Callers 1

bindWorkerFunction · 0.85

Calls 1

bindPropertyAssignmentFunction · 0.85

Tested by

no test coverage detected