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

Function bindFunctionExpression

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

Source from the content-addressed store, hash-verified

47619 }
47620 }
47621 function bindFunctionExpression(node) {
47622 if (!file.isDeclarationFile && !(node.flags & 16777216 /* NodeFlags.Ambient */)) {
47623 if (ts.isAsyncFunction(node)) {
47624 emitFlags |= 2048 /* NodeFlags.HasAsyncFunctions */;
47625 }
47626 }
47627 if (currentFlow) {
47628 node.flowNode = currentFlow;
47629 }
47630 checkStrictModeFunctionName(node);
47631 var bindingName = node.name ? node.name.escapedText : "__function" /* InternalSymbolName.Function */;
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 */;

Callers 1

bindWorkerFunction · 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…