MCPcopy Create free account
hub / github.com/nodejs/node / isParameterName

Function isParameterName

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

Source from the content-addressed store, hash-verified

138580 return [{ definition: { type: 0 /* DefinitionKind.Symbol */, symbol: searchSpaceNode.symbol }, references: references }];
138581 }
138582 function isParameterName(node) {
138583 return node.kind === 79 /* SyntaxKind.Identifier */ && node.parent.kind === 164 /* SyntaxKind.Parameter */ && node.parent.name === node;
138584 }
138585 function getReferencesForThisKeyword(thisOrSuperKeyword, sourceFiles, cancellationToken) {
138586 var searchSpaceNode = ts.getThisContainer(thisOrSuperKeyword, /* includeArrowFunctions */ false);
138587 // Whether 'this' occurs in a static context within a class.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected