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

Function bindSpecialPropertyDeclaration

test/fixtures/snapshot/typescript.js:47282–47294  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

47280 }
47281 }
47282 function bindSpecialPropertyDeclaration(node) {
47283 if (node.expression.kind === 108 /* SyntaxKind.ThisKeyword */) {
47284 bindThisPropertyAssignment(node);
47285 }
47286 else if (ts.isBindableStaticAccessExpression(node) && node.parent.parent.kind === 305 /* SyntaxKind.SourceFile */) {
47287 if (ts.isPrototypeAccess(node.expression)) {
47288 bindPrototypePropertyAssignment(node, node.parent);
47289 }
47290 else {
47291 bindStaticPropertyAssignment(node);
47292 }
47293 }
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);

Callers 1

bindWorkerFunction · 0.85

Tested by

no test coverage detected