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

Function bindParameter

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

Source from the content-addressed store, hash-verified

47582 }
47583 }
47584 function bindParameter(node) {
47585 if (node.kind === 340 /* SyntaxKind.JSDocParameterTag */ && container.kind !== 323 /* SyntaxKind.JSDocSignature */) {
47586 return;
47587 }
47588 if (inStrictMode && !(node.flags & 16777216 /* NodeFlags.Ambient */)) {
47589 // It is a SyntaxError if the identifier eval or arguments appears within a FormalParameterList of a
47590 // strict mode FunctionLikeDeclaration or FunctionExpression(13.1)
47591 checkStrictModeEvalOrArguments(node, node.name);
47592 }
47593 if (ts.isBindingPattern(node.name)) {
47594 bindAnonymousDeclaration(node, 1 /* SymbolFlags.FunctionScopedVariable */, "__" + node.parent.parameters.indexOf(node));
47595 }
47596 else {
47597 declareSymbolAndAddToSymbolTable(node, 1 /* SymbolFlags.FunctionScopedVariable */, 111551 /* SymbolFlags.ParameterExcludes */);
47598 }
47599 // If this is a property-parameter, then also declare the property symbol into the
47600 // containing class.
47601 if (ts.isParameterPropertyDeclaration(node, node.parent)) {
47602 var classDeclaration = node.parent.parent;
47603 declareSymbol(classDeclaration.symbol.members, classDeclaration.symbol, node, 4 /* SymbolFlags.Property */ | (node.questionToken ? 16777216 /* SymbolFlags.Optional */ : 0 /* SymbolFlags.None */), 0 /* SymbolFlags.PropertyExcludes */);
47604 }
47605 }
47606 function bindFunctionDeclaration(node) {
47607 if (!file.isDeclarationFile && !(node.flags & 16777216 /* NodeFlags.Ambient */)) {
47608 if (ts.isAsyncFunction(node)) {

Callers 1

bindWorkerFunction · 0.85

Calls 5

bindAnonymousDeclarationFunction · 0.85
declareSymbolFunction · 0.85
indexOfMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…