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

Function bindFunctionDeclaration

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

Source from the content-addressed store, hash-verified

47604 }
47605 }
47606 function bindFunctionDeclaration(node) {
47607 if (!file.isDeclarationFile && !(node.flags & 16777216 /* NodeFlags.Ambient */)) {
47608 if (ts.isAsyncFunction(node)) {
47609 emitFlags |= 2048 /* NodeFlags.HasAsyncFunctions */;
47610 }
47611 }
47612 checkStrictModeFunctionName(node);
47613 if (inStrictMode) {
47614 checkStrictModeFunctionDeclaration(node);
47615 bindBlockScopedDeclaration(node, 16 /* SymbolFlags.Function */, 110991 /* SymbolFlags.FunctionExcludes */);
47616 }
47617 else {
47618 declareSymbolAndAddToSymbolTable(node, 16 /* SymbolFlags.Function */, 110991 /* SymbolFlags.FunctionExcludes */);
47619 }
47620 }
47621 function bindFunctionExpression(node) {
47622 if (!file.isDeclarationFile && !(node.flags & 16777216 /* NodeFlags.Ambient */)) {
47623 if (ts.isAsyncFunction(node)) {

Callers 1

bindWorkerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…