use Identifiers list from the parser to filter getReferences instead of bloomFilters

This commit is contained in:
Mohamed Hegazy committed 2014-08-22 22:27:05 -07:00
1 parent 695379404a
commit 892baf0d6c
3 files changed
+20 -7

No files matched your search

+3 -2
View File
@@ -322,6 +322,7 @@ module ts {
public version: number;
public isOpen: boolean;
public languageVersion: ScriptTarget;
public identifiers: Map<string>;
private syntaxTree: TypeScript.SyntaxTree;
private scriptSnapshot: TypeScript.IScriptSnapshot;
@@ -2155,10 +2156,10 @@ module ts {
forEach(program.getSourceFiles(), sourceFile => {
cancellationToken.throwIfCancellationRequested();
//if (sourceFile.getBloomFilter().probablyContains(symbolName)) {
if (lookUp(sourceFile.identifiers, symbolName)) {
result = result || [];
getReferencesInNode(sourceFile, symbol, symbolName, node, searchMeaning, result);
//}
}
});
}