Get just the name of the symbol (instead of qualified path) as symbolName of the definition info.

Fixes #652
This commit is contained in:
Sheetal Nandi
2014-10-03 14:58:11 -07:00
parent 71b77106a8
commit 8a650bf7ed
2 changed files with 2 additions and 3 deletions

View File

@@ -2599,7 +2599,7 @@ module ts {
var result: DefinitionInfo[] = [];
var declarations = symbol.getDeclarations();
var symbolName = typeInfoResolver.symbolToString(symbol, node);
var symbolName = typeInfoResolver.symbolToString(symbol); // Do not get scoped name, just the name of the symbol
var symbolKind = getSymbolKind(symbol);
var containerSymbol = symbol.parent;
var containerName = containerSymbol ? typeInfoResolver.symbolToString(containerSymbol, node) : "";