Browse Source

Readded additional lookups for search term before searching for references in CSharpSymbolSearch.

pull/507/head
Andreas Weizel 11 years ago
parent
commit
11dcc20cc4
  1. 20
      src/AddIns/BackendBindings/CSharpBinding/Project/Src/Parser/CSharpSymbolSearch.cs

20
src/AddIns/BackendBindings/CSharpBinding/Project/Src/Parser/CSharpSymbolSearch.cs

@ -133,11 +133,11 @@ namespace CSharpBinding @@ -133,11 +133,11 @@ namespace CSharpBinding
ITextSource textSource = args.ParseableFileContentFinder.Create(fileName);
if (textSource == null)
return;
// TODO Reactivate somehow!
// if (searchScope.SearchTerm != null) {
// if (textSource.IndexOf(searchScope.SearchTerm, 0, textSource.TextLength, StringComparison.Ordinal) < 0)
// return;
// }
if (searchScopeList != null) {
if (!searchScopeList.Any(
scope => (scope.SearchTerm == null) || (textSource.IndexOf(scope.SearchTerm, 0, textSource.TextLength, StringComparison.Ordinal) >= 0)))
return;
}
var parseInfo = SD.ParserService.Parse(fileName, textSource) as CSharpFullParseInformation;
if (parseInfo == null)
@ -218,11 +218,11 @@ namespace CSharpBinding @@ -218,11 +218,11 @@ namespace CSharpBinding
ITextSource textSource = args.ParseableFileContentFinder.Create(fileName);
if (textSource == null)
return;
// TODO Reactivate somehow!
// if (searchScope.SearchTerm != null) {
// if (textSource.IndexOf(searchScope.SearchTerm, 0, textSource.TextLength, StringComparison.Ordinal) < 0)
// return;
// }
if (searchScopeList != null) {
if (!searchScopeList.Any(
scope => (scope.SearchTerm == null) || (textSource.IndexOf(scope.SearchTerm, 0, textSource.TextLength, StringComparison.Ordinal) >= 0)))
return;
}
var parseInfo = SD.ParserService.Parse(fileName, textSource) as CSharpFullParseInformation;
if (parseInfo == null)

Loading…
Cancel
Save