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

Function createDefinitionInfo

test/fixtures/snapshot/typescript.js:140028–140033  ·  view source on GitHub ↗

Creates a DefinitionInfo from a Declaration, using the declaration's name if possible.

(declaration, checker, symbol, node, unverified, failedAliasResolution)

Source from the content-addressed store, hash-verified

140026 }
140027 /** Creates a DefinitionInfo from a Declaration, using the declaration's name if possible. */
140028 function createDefinitionInfo(declaration, checker, symbol, node, unverified, failedAliasResolution) {
140029 var symbolName = checker.symbolToString(symbol); // Do not get scoped name, just the name of the symbol
140030 var symbolKind = ts.SymbolDisplay.getSymbolKind(checker, symbol, node);
140031 var containerName = symbol.parent ? checker.symbolToString(symbol.parent, node) : "";
140032 return createDefinitionInfoFromName(checker, declaration, symbolKind, symbolName, containerName, unverified, failedAliasResolution);
140033 }
140034 GoToDefinition.createDefinitionInfo = createDefinitionInfo;
140035 /** Creates a DefinitionInfo directly from the name of a declaration. */
140036 function createDefinitionInfoFromName(checker, declaration, symbolKind, symbolName, containerName, unverified, failedAliasResolution, textSpan) {

Callers 4

getDefinitionAtPositionFunction · 0.85
getDefinitionFromSymbolFunction · 0.85
getSignatureDefinitionFunction · 0.85

Calls 1

Tested by

no test coverage detected