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

Function bindPropertyOrMethodOrAccessor

test/fixtures/snapshot/typescript.js:47634–47644  ·  view source on GitHub ↗
(node, symbolFlags, symbolExcludes)

Source from the content-addressed store, hash-verified

47632 return bindAnonymousDeclaration(node, 16 /* SymbolFlags.Function */, bindingName);
47633 }
47634 function bindPropertyOrMethodOrAccessor(node, symbolFlags, symbolExcludes) {
47635 if (!file.isDeclarationFile && !(node.flags & 16777216 /* NodeFlags.Ambient */) && ts.isAsyncFunction(node)) {
47636 emitFlags |= 2048 /* NodeFlags.HasAsyncFunctions */;
47637 }
47638 if (currentFlow && ts.isObjectLiteralOrClassExpressionMethodOrAccessor(node)) {
47639 node.flowNode = currentFlow;
47640 }
47641 return ts.hasDynamicName(node)
47642 ? bindAnonymousDeclaration(node, symbolFlags, "__computed" /* InternalSymbolName.Computed */)
47643 : declareSymbolAndAddToSymbolTable(node, symbolFlags, symbolExcludes);
47644 }
47645 function getInferTypeContainer(node) {
47646 var extendsType = ts.findAncestor(node, function (n) { return n.parent && ts.isConditionalTypeNode(n.parent) && n.parent.extendsType === n; });
47647 return extendsType && extendsType.parent;

Callers 2

bindWorkerFunction · 0.85
bindPropertyWorkerFunction · 0.85

Calls 3

bindAnonymousDeclarationFunction · 0.85
isAsyncFunctionMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…