Merge pull request #8210 from Microsoft/Fix8162

Fix #8162 and #8173: Add root symbols to search in find all referecnes
This commit is contained in:
Mohamed Hegazy
2016-04-20 09:27:57 -07:00
6 changed files with 103 additions and 7 deletions

View File

@@ -6286,7 +6286,7 @@ namespace ts {
if (type) {
const propertySymbol = typeChecker.getPropertyOfType(type, propertyName);
if (propertySymbol) {
result.push(propertySymbol);
result.push(...typeChecker.getRootSymbols(propertySymbol));
}
// Visit the typeReference as well to see if it directly or indirectly use that property