Creates a DefinitionInfo from a Declaration, using the declaration's name if possible.
(declaration, checker, symbol, node, unverified, failedAliasResolution)
| 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) { |
no test coverage detected