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

Loading…
Cancel
Save