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

Function getDefinitionInfoForIndexSignatures

test/fixtures/snapshot/typescript.js:139928–139930  ·  view source on GitHub ↗
(node, checker)

Source from the content-addressed store, hash-verified

139926 GoToDefinition.getDefinitionAndBoundSpan = getDefinitionAndBoundSpan;
139927 // At 'x.foo', see if the type of 'x' has an index signature, and if so find its declarations.
139928 function getDefinitionInfoForIndexSignatures(node, checker) {
139929 return ts.mapDefined(checker.getIndexInfosAtLocation(node), function (info) { return info.declaration && createDefinitionFromSignatureDeclaration(checker, info.declaration); });
139930 }
139931 function getSymbol(node, checker, stopAtAlias) {
139932 var symbol = checker.getSymbolAtLocation(node);
139933 // If this is an alias, and the request came at the declaration location

Callers 1

getDefinitionAtPositionFunction · 0.85

Tested by

no test coverage detected