Fix #8162 and #8173: Add root symbols to search in find all referecnes

This commit is contained in:
Mohamed Hegazy
2016-04-19 19:30:11 -07:00
parent d960200dac
commit b85f34ba59
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