support goto def on object literal properties

This commit is contained in:
Mohamed Hegazy
2014-08-01 15:09:12 -07:00
parent 205974d453
commit e6f930b53a
2 changed files with 31 additions and 2 deletions

View File

@@ -2080,8 +2080,8 @@ module ts {
}
// Could not find a symbol e.g. node is string or number keyword,
// or the symbol was an internal symbol (transient) e.g. undefined symbol
if (!symbol || symbol.flags & SymbolFlags.Transient) {
// or the symbol was an internal symbol and does not have a declaration e.g. undefined symbol
if (!symbol || !(symbol.getDeclarations())) {
return undefined;
}