mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
use Identifiers list from the parser to filter getReferences instead of bloomFilters
This commit is contained in:
1 parent
695379404a
commit
892baf0d6c
3 files changed
+20
-7
No files matched your search
@@ -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);
|
||||
//}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user