private void DoSearch(IStructuralPatternHolder pattern, IFindResultConsumer <IStructuralMatchResult> consumer, ISearchDomain searchDomain) { var searcher = new StructuralSearcher(documentManager, pattern.Language, pattern.Matcher); var searchDomainSearcher = new StructuralSearchDomainSearcher <IStructuralMatchResult>( searchDomain, searcher, consumer, NullProgressIndicator.Instance, true); searchDomainSearcher.Run(); }
private void DoSearch(IStructuralMatcher matcher, IFindResultConsumer<IStructuralMatchResult> consumer, ISearchDomain searchDomain) { // todo add support for VB (eventually) var searcher = new StructuralSearcher(documentManager, CSharpLanguage.Instance, matcher); var searchDomainSearcher = new StructuralSearchDomainSearcher<IStructuralMatchResult>( searchDomain, searcher, consumer, NullProgressIndicator.Instance, true); //NarrowSearchDomain(matcher.Words, matcher.GetExtendedWords(solution), searchDomain, searchDomainFactory), //searcher, consumer, NullProgressIndicator.Instance, true); searchDomainSearcher.Run(); }
private void DoSearch(IStructuralMatcher matcher, IFindResultConsumer <IStructuralMatchResult> consumer, ISearchDomain searchDomain) { // todo add support for VB (eventually) var searcher = new StructuralSearcher(documentManager, CSharpLanguage.Instance, matcher); var searchDomainSearcher = new StructuralSearchDomainSearcher <IStructuralMatchResult>( searchDomain, searcher, consumer, NullProgressIndicator.Instance, true); //NarrowSearchDomain(matcher.Words, matcher.GetExtendedWords(solution), searchDomain, searchDomainFactory), //searcher, consumer, NullProgressIndicator.Instance, true); searchDomainSearcher.Run(); }
private void DoSearch(IStructuralMatcher matcher, FindResultConsumer<IStructuralMatchResult> consumer) { ISolution solution = Shell.Instance.GetComponent<ISolutionManager>().CurrentSolution; var searchDomain = searchDomainFactory.CreateSearchDomain(solution, false); var documentManager = solution.GetComponent<DocumentManager>(); // todo add support for VB (eventually) var structuralSearcher = new StructuralSearcher(documentManager, CSharpLanguage.Instance, matcher); var searchDomainSearcher = new StructuralSearchDomainSearcher<IStructuralMatchResult>( NarrowSearchDomain(solution, matcher.Words, matcher.GetExtendedWords(solution), searchDomain), structuralSearcher, consumer, NullProgressIndicator.Instance, true); searchDomainSearcher.Run(); }
private void DoSearch(IStructuralMatcher matcher, FindResultConsumer <IStructuralMatchResult> consumer) { #if SDK70 ISolution solution = Shell.Instance.GetComponent <SolutionsManager>().Solution; #else ISolution solution = Shell.Instance.GetComponent <ISolutionManager>().CurrentSolution; #endif var searchDomain = searchDomainFactory.CreateSearchDomain(solution, false); var documentManager = solution.GetComponent <DocumentManager>(); // todo add support for VB (eventually) var structuralSearcher = new StructuralSearcher(documentManager, CSharpLanguage.Instance, matcher); var searchDomainSearcher = new StructuralSearchDomainSearcher <IStructuralMatchResult>( NarrowSearchDomain(solution, matcher.Words, matcher.GetExtendedWords(solution), searchDomain), structuralSearcher, consumer, NullProgressIndicator.Instance, true); searchDomainSearcher.Run(); }