254 references to SymbolFinder
IdeCoreBenchmarks (1)
FindReferencesBenchmarks.cs (1)
121var references = await SymbolFinder.FindReferencesAsync(_type, _solution);
Microsoft.CodeAnalysis.CodeStyle.Fixes (5)
AbstractMakeMethodSynchronousCodeFixProvider.cs (1)
132var references = await SymbolFinder.FindReferencesAsync(
AbstractMoveDeclarationNearReferenceService.State.cs (1)
91var findReferencesResult = await SymbolFinder.FindReferencesAsync(LocalSymbol, document.Project.Solution, cancellationToken).ConfigureAwait(false);
AbstractRemoveUnusedValuesCodeFixProvider.cs (1)
914var referencedSymbols = await SymbolFinder.FindReferencesAsync(local, document.Project.Solution, cancellationToken).ConfigureAwait(false);
AbstractUnsealClassCodeFixProvider.cs (1)
42var definition = await SymbolFinder.FindSourceDefinitionAsync(
AddParameterService.cs (1)
150var referencedSymbols = await SymbolFinder.FindReferencesAsync(
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
ConvertToRecordEngine.cs (1)
459var symbolReferences = await SymbolFinder
MakeLocalFunctionStaticCodeFixHelper.cs (2)
55var referencedSymbols = await SymbolFinder.FindReferencesAsync( 127var referencedCaptureSymbols = await SymbolFinder.FindReferencesAsync(
Microsoft.CodeAnalysis.CSharp.Features (5)
ChangeSignature\CSharpChangeSignatureService.cs (1)
863convertedType = await SymbolFinder.FindSourceDefinitionAsync(convertedType, document.Project.Solution, cancellationToken).ConfigureAwait(false)
ConvertToRecordEngine.cs (1)
459var symbolReferences = await SymbolFinder
ImplementInterface\CSharpImplementExplicitlyCodeRefactoringProvider.cs (1)
58var references = await SymbolFinder.FindReferencesAsync(
MakeLocalFunctionStaticCodeFixHelper.cs (2)
55var referencedSymbols = await SymbolFinder.FindReferencesAsync( 127var referencedCaptureSymbols = await SymbolFinder.FindReferencesAsync(
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Rename\CSharpRenameRewriterLanguageService.cs (2)
368var sourceDefinition = await SymbolFinder.FindSourceDefinitionAsync(symbol, _solution, _cancellationToken).ConfigureAwait(false); 951var originalSourceSymbol = await SymbolFinder.FindSourceDefinitionAsync(symbol.GetOverriddenMember(), solution, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.EditorFeatures (4)
CodeDefinitionWindow\DefinitionContextTracker.cs (1)
190var symbol = await SymbolFinder.FindSymbolAtPositionAsync(
GoToDefinition\GoToDefinitionHelpers.cs (1)
96var definition = await SymbolFinder.FindSourceDefinitionAsync(symbol, solution, cancellationToken).ConfigureAwait(false);
RenameTracking\RenameTrackingTaggerProvider.TrackingSession.cs (2)
215var sourceSymbol = await SymbolFinder.FindSourceDefinitionAsync(symbol, document.Project.Solution, _cancellationToken).ConfigureAwait(false) ?? symbol; 229var sourceSymbol = await SymbolFinder.FindSourceDefinitionAsync(symbol, document.Project.Solution, _cancellationToken).ConfigureAwait(false) ?? symbol;
Microsoft.CodeAnalysis.EditorFeatures.Cocoa (7)
NavigationCommandHandlers\FindDerivedSymbolsCommandHandler.cs (4)
66return await SymbolFinder.FindImplementationsAsync(namedTypeSymbol, solution, null, cancellationToken).ConfigureAwait(false); 70return await SymbolFinder.FindImplementationsAsync(namedTypeSymbol2, solution, null, cancellationToken).ConfigureAwait(false); 75return await SymbolFinder.FindDerivedClassesAsync(namedTypeSymbol3, solution, null, cancellationToken).ConfigureAwait(false); 80return await SymbolFinder.FindOverridesAsync(symbol, solution, null, cancellationToken).ConfigureAwait(false);
NavigationCommandHandlers\FindExtensionMethodsCommandHandler.cs (1)
109var sourceDefinition = await SymbolFinder.FindSourceDefinitionAsync(reducedMethod, solution, cancellationToken).ConfigureAwait(false);
NavigationCommandHandlers\FindReferencesOfOverloadsCommandHandler.cs (2)
76var implementations = await SymbolFinder.FindImplementationsAsync(symbol, solution, null, token).ConfigureAwait(false); 122foreach (var sym in SymbolFinder.FindSimilarSymbols(curSymbol, compilation, cancellationToken))
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (25)
SymbolFinder\DependentTypeFinderTests.cs (24)
85var derivedFromBase = await SymbolFinder.FindDerivedClassesAsync(baseClassSymbol, solution, transitive: false); 126var derivedFromBase = await SymbolFinder.FindDerivedInterfacesAsync(baseClassSymbol, solution, transitive: false); 177var derivedFromBase = await SymbolFinder.FindDerivedClassesAsync(baseClassSymbol, solution, transitive: false); 218var derivedFromBase = await SymbolFinder.FindDerivedClassesAsync(baseClassSymbol, solution, transitive: false); 260var derivedFromBase = await SymbolFinder.FindDerivedClassesAsync(baseClassSymbol, solution, transitive: false); 302var derivedFromBase = await SymbolFinder.FindDerivedClassesAsync(baseClassSymbol, solution, transitive: false); 343var typesThatImplementInterface = await SymbolFinder.FindImplementationsAsync(baseInterfaceSymbol, solution, transitive: false); 384var typesThatImplementInterface = await SymbolFinder.FindImplementationsAsync(baseInterfaceSymbol, solution, transitive: false); 424var typesThatImplementInterface = await SymbolFinder.FindImplementationsAsync(baseInterfaceSymbol, solution, transitive: false); 443var immediateDerived = await SymbolFinder.FindDerivedClassesAsync( 449var transitiveDerived = await SymbolFinder.FindDerivedClassesAsync( 488var immediateDerived = await SymbolFinder.FindDerivedInterfacesAsync( 496var transitiveDerived = await SymbolFinder.FindDerivedInterfacesAsync( 540var immediateImpls = await SymbolFinder.FindImplementationsAsync( 548var transitiveImpls = await SymbolFinder.FindImplementationsAsync( 577var transitiveImpls = await SymbolFinder.FindImplementationsAsync( 607var transitiveImpls = await SymbolFinder.FindImplementationsAsync( 651var results = await SymbolFinder.FindDerivedClassesArrayAsync(firstType, solution, transitive: true, ImmutableHashSet.Create(csProject), CancellationToken.None); 656results = await SymbolFinder.FindDerivedClassesArrayAsync(firstType, solution, transitive: true, ImmutableHashSet.Create(otherProject), CancellationToken.None); 704var typesThatDerive = await SymbolFinder.FindDerivedClassesArrayAsync( 711var typesThatDerive = await SymbolFinder.FindDerivedClassesArrayAsync( 718var typesThatDerive = await SymbolFinder.FindDerivedClassesArrayAsync( 762var interfaceMembers = await SymbolFinder.FindImplementedInterfaceMembersArrayAsync(methodSymbol, solution, CancellationToken.None); 792var implementedMembers = await SymbolFinder.FindImplementedInterfaceMembersArrayAsync(namespaceSymbol, solution, CancellationToken.None);
SymbolFinder\FindSymbolAtPositionTests.cs (1)
23return SymbolFinder.FindSymbolAtPositionAsync(document, position);
Microsoft.CodeAnalysis.EditorFeatures.Wpf (2)
Peek\PeekableItemFactory.cs (1)
63symbol = await SymbolFinder.FindSourceDefinitionAsync(symbol, solution, cancellationToken).ConfigureAwait(false) ?? symbol;
Peek\PeekableItemSource.cs (1)
98var semanticInfo = await SymbolFinder.GetSemanticInfoAtPositionAsync(
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (32)
Extensions\ISymbolExtensionsTests.vb (1)
22Dim symbol = Await SymbolFinder.FindSymbolAtPositionAsync(document, cursorPosition)
FindReferences\FindReferencesTests.LinkedFiles.vb (20)
38Dim symbol = Await SymbolFinder.FindSymbolAtPositionAsync(document, invocationPosition) 39Dim references = Await SymbolFinder.FindReferencesAsync(symbol, document.Project.Solution, progress:=Nothing, documents:=Nothing) 70Dim symbol = Await SymbolFinder.FindSymbolAtPositionAsync(document, invocationPosition) 71Dim references = Await SymbolFinder.FindReferencesAsync(symbol, document.Project.Solution, progress:=Nothing, documents:=Nothing) 113Dim symbol = Await SymbolFinder.FindSymbolAtPositionAsync(document, invocationPosition) 114Dim references = Await SymbolFinder.FindReferencesAsync(symbol, document.Project.Solution, progress:=Nothing, documents:=Nothing) 127symbol = Await SymbolFinder.FindSymbolAtPositionAsync(document, invocationPosition) 128references = Await SymbolFinder.FindReferencesAsync(symbol, document.Project.Solution, progress:=Nothing, documents:=Nothing) 223Dim symbol = Await SymbolFinder.FindSymbolAtPositionAsync(document, invocationPosition) 224Dim references = Await SymbolFinder.FindReferencesAsync(symbol, document.Project.Solution, progress:=Nothing, documents:=Nothing) 261Dim symbol = Await SymbolFinder.FindSymbolAtPositionAsync(document, invocationPosition) 264Dim references = (Await SymbolFinder.FindReferencesAsync(symbol, document.Project.Solution, progress:=Nothing, documents:=Nothing)).ToList() 305Dim symbol = Await SymbolFinder.FindSymbolAtPositionAsync(document, invocationPosition) 306Dim references = Await SymbolFinder.FindReferencesAsync(symbol, document.Project.Solution, progress:=Nothing, documents:=Nothing) 348Dim symbol = Await SymbolFinder.FindSymbolAtPositionAsync(document, invocationPosition) 349Dim references = Await SymbolFinder.FindReferencesAsync(symbol, document.Project.Solution, progress:=Nothing, documents:=Nothing) 391Dim symbol = Await SymbolFinder.FindSymbolAtPositionAsync(document, invocationPosition) 392Dim references = Await SymbolFinder.FindReferencesAsync(symbol, document.Project.Solution, progress:=Nothing, documents:=Nothing) 434Dim symbol = Await SymbolFinder.FindSymbolAtPositionAsync(document, invocationPosition) 435Dim references = Await SymbolFinder.FindReferencesAsync(symbol, document.Project.Solution, progress:=Nothing, documents:=Nothing)
FindReferences\FindReferencesTests.vb (4)
289Dim symbol = Await SymbolFinder.FindSymbolAtPositionAsync(document, cursorPosition) 297Await SymbolFinder.TestAccessor.FindReferencesAsync( 586Dim linkedSymbols = Await SymbolFinder.FindLinkedSymbolsAsync(symbol1, solution, cancellationToken:=Nothing) 614Await SymbolFinder.FindReferencesInDocumentsInCurrentProcessAsync(
Workspaces\SymbolDescriptionServiceTests.vb (1)
26Dim symbol = Await SymbolFinder.FindSymbolAtPositionAsync(document, cursorPosition)
Workspaces\TryFindSourceDefinitionTests.vb (6)
66Dim mappedType = Await SymbolFinder.FindSourceDefinitionAsync(fieldType, snapshot, CancellationToken.None) 110Dim mappedType = Await SymbolFinder.FindSourceDefinitionAsync(fieldType, snapshot) 147Dim mappedMember = Await SymbolFinder.FindSourceDefinitionAsync(member, workspace.CurrentSolution) 184Dim mappedMember = Await SymbolFinder.FindSourceDefinitionAsync(member, workspace.CurrentSolution) 221Dim mappedMember = Await SymbolFinder.FindSourceDefinitionAsync(member, workspace.CurrentSolution) 259Dim mappedMember = Await SymbolFinder.FindSourceDefinitionAsync(retargetedClass, workspace.CurrentSolution)
Microsoft.CodeAnalysis.Features (51)
AbstractMakeMethodSynchronousCodeFixProvider.cs (1)
137var references = await SymbolFinder.FindRenamableReferencesAsync(
AbstractRemoveUnusedValuesCodeFixProvider.cs (1)
914var referencedSymbols = await SymbolFinder.FindReferencesAsync(local, document.Project.Solution, cancellationToken).ConfigureAwait(false);
AbstractUnsealClassCodeFixProvider.cs (1)
42var definition = await SymbolFinder.FindSourceDefinitionAsync(
AddParameterService.cs (1)
150var referencedSymbols = await SymbolFinder.FindReferencesAsync(
ChangeSignature\AbstractChangeSignatureService.cs (1)
107symbol = await SymbolFinder.FindSourceDefinitionAsync(symbol, document.Project.Solution, cancellationToken).ConfigureAwait(false) ?? symbol;
ChangeSignature\DelegateInvokeMethodReferenceFinder.cs (1)
95convertedType = await SymbolFinder.FindSourceDefinitionAsync(convertedType, state.Solution, cancellationToken).ConfigureAwait(false)
CodeLens\CodeLensReferencesService.cs (1)
66await SymbolFinder.FindReferencesAsync(
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (1)
554await SymbolFinder.FindReferencesAsync(
Completion\Providers\ImportCompletionProvider\ExtensionMethodImportCompletionHelper.SymbolComputer.cs (2)
245var declaredReceiverTypeInOriginatingCompilation = SymbolFinder.FindSimilarSymbols(declaredReceiverType, _originatingSemanticModel.Compilation, cancellationToken).FirstOrDefault(); 269foreach (var methodInOriginatingCompilation in methodSymbols.Select(s => SymbolFinder.FindSimilarSymbols(s, _originatingSemanticModel.Compilation).FirstOrDefault()).WhereNotNull())
DocumentHighlighting\AbstractDocumentHighlightsService.cs (2)
73var symbol = await SymbolFinder.FindSymbolAtPositionAsync( 123await SymbolFinder.FindReferencesInDocumentsInCurrentProcessAsync(
FindUsages\AbstractFindUsagesService_FindImplementations.cs (5)
100var linkedSymbols = await SymbolFinder.FindLinkedSymbolsAsync( 163var implementations = await SymbolFinder.FindImplementationsAsync( 179var overrides = await SymbolFinder.FindOverridesAsync( 195var derivedClasses = await SymbolFinder.FindDerivedClassesAsync( 202var overrides = await SymbolFinder.FindOverridesAsync(
FindUsages\AbstractFindUsagesService_FindReferences.cs (2)
167return SymbolFinder.FindReferencesAsync( 238await SymbolFinder.FindLiteralReferencesAsync(
FindUsages\FindUsagesHelpers.cs (1)
36var symbol = await SymbolFinder.FindSymbolAtPositionAsync(document, position, cancellationToken: cancellationToken).ConfigureAwait(false);
GenerateMember\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
397var definition = await SymbolFinder.FindSourceDefinitionAsync(original, _document.Project.Solution, cancellationToken).ConfigureAwait(false);
GenerateMember\GenerateEnumMember\AbstractGenerateEnumMemberService.State.cs (1)
70var sourceType = await SymbolFinder.FindSourceDefinitionAsync(TypeToGenerateIn, document.Project.Solution, cancellationToken).ConfigureAwait(false) as INamedTypeSymbol;
GenerateMember\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.State.cs (1)
60TypeToGenerateIn = await SymbolFinder.FindSourceDefinitionAsync(TypeToGenerateIn, document.Project.Solution, cancellationToken).ConfigureAwait(false) as INamedTypeSymbol;
GenerateMember\GenerateParameterizedMember\TypeParameterSubstitution.cs (4)
126var similarTypes = SymbolFinder.FindSimilarSymbols(substitutedType, _compilation, _cancellationToken); 130similarTypes = SymbolFinder.FindSimilarSymbols(commonType, _compilation, _cancellationToken); 140var derivedClasses = await SymbolFinder.FindDerivedClassesAsync( 143var implementedTypes = await SymbolFinder.FindImplementationsAsync(
GenerateMember\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
158TypeToGenerateIn = await SymbolFinder.FindSourceDefinitionAsync(
GenerateType\AbstractGenerateTypeService.State.cs (1)
300var symbol = await SymbolFinder.FindSourceDefinitionAsync(TypeToGenerateInOpt, document.Project.Solution, cancellationToken).ConfigureAwait(false);
GoToBase\AbstractGoToBaseService.cs (1)
66var sourceDefinition = await SymbolFinder.FindSourceDefinitionAsync(
GoToDefinition\AbstractFindDefinitionService.cs (1)
23symbol = await SymbolFinder.FindSourceDefinitionAsync(symbol, project.Solution, cancellationToken).ConfigureAwait(false) ?? symbol;
GoToDefinition\AbstractGoToDefinitionSymbolService.cs (1)
29var semanticInfo = await SymbolFinder.GetSemanticInfoAtPositionAsync(semanticModel, position, services, cancellationToken).ConfigureAwait(false);
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (7)
359var allOverridingSymbols = await SymbolFinder.FindOverridesArrayAsync(memberSymbol, solution, cancellationToken: cancellationToken).ConfigureAwait(false); 542var symbolInSource = await SymbolFinder.FindSourceDefinitionAsync(targetSymbol, solution, cancellationToken).ConfigureAwait(false); 616var implementationSymbols = await SymbolFinder.FindMemberImplementationsArrayAsync( 629builder.AddRange(await SymbolFinder.FindOverridesArrayAsync(implementationSymbol, solution, cancellationToken: cancellationToken).ConfigureAwait(false)); 671var allDerivedInterfaces = await SymbolFinder.FindDerivedInterfacesArrayAsync( 676var allImplementations = await SymbolFinder.FindImplementationsArrayAsync( 685return await SymbolFinder.FindDerivedClassesArrayAsync(
InlineMethod\AbstractInlineMethodRefactoringProvider.InlineContext.cs (1)
303var allReferences = await SymbolFinder
InlineMethod\AbstractInlineMethodRefactoringProvider.MethodParametersInfo.cs (1)
449var allReferences = await SymbolFinder
InlineTemporary\AbstractInlineTemporaryCodeRefactoringProvider.cs (1)
37var findReferencesResult = await SymbolFinder.FindReferencesAsync(
IntroduceParameter\AbstractIntroduceParameterCodeRefactoringProvider.cs (1)
260await SymbolFinder.FindReferencesAsync(
MoveStaticMembers\MoveStaticMembersWithDialogCodeAction.cs (1)
344var tasks = members.Select(symbol => SymbolFinder.FindReferencesAsync(symbol, solution, cancellationToken));
RemoveUnusedVariable\AbstractRemoveUnusedVariableCodeFixProvider.cs (1)
89var referencedSymbols = await SymbolFinder.FindReferencesAsync(symbol, document.Project.Solution, documentsToBeSearched, cancellationToken).ConfigureAwait(false);
Rename\SymbolicRenameInfo.cs (1)
174var originalSymbol = await SymbolFinder.FindSymbolAtPositionAsync(
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (2)
171var getMethodReferences = await SymbolFinder.FindReferencesAsync( 175: await SymbolFinder.FindReferencesAsync(
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (1)
90var propertyReferences = await SymbolFinder.FindReferencesAsync(propertySymbol, originalSolution, cancellationToken).ConfigureAwait(false);
ValueTracking\ValueTracker.cs (2)
168await SymbolFinder.FindReferencesAsync( 182await SymbolFinder.FindReferencesAsync(
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Handler\Definitions\AbstractGoToDefinitionHandler.cs (1)
69var symbol = await SymbolFinder.FindSymbolAtPositionAsync(document, position, cancellationToken).ConfigureAwait(false);
Handler\References\FindUsagesLSPContext.cs (1)
213var symbol = await SymbolFinder.FindSymbolAtPositionAsync(_document, _position, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Services\SymbolFinder\RemoteSymbolFinderService.cs (2)
65await SymbolFinder.FindReferencesInCurrentProcessAsync( 78await SymbolFinder.FindLiteralReferencesInCurrentProcessAsync(
Microsoft.CodeAnalysis.VisualBasic.Features (6)
ChangeSignature\VisualBasicChangeSignatureService.vb (2)
705convertedType = If(Await SymbolFinder.FindSourceDefinitionAsync(convertedType, document.Project.Solution, cancellationToken).ConfigureAwait(False), convertedType) 724nodeType = If(Await SymbolFinder.FindSourceDefinitionAsync(nodeType, document.Project.Solution, cancellationToken).ConfigureAwait(False), nodeType)
CodeFixes\GenerateEvent\GenerateEventCodeFixProvider.vb (4)
108Dim sourceDefinition = Await SymbolFinder.FindSourceDefinitionAsync(targetType, document.Project.Solution, cancellationToken).ConfigureAwait(False) 260Dim targetType = TryCast(Await SymbolFinder.FindSourceDefinitionAsync(semanticModel.GetSymbolInfo(node.Left, cancellationToken).Symbol, document.Project.Solution, cancellationToken).ConfigureAwait(False), INamedTypeSymbol) 351targetType = TryCast(Await SymbolFinder.FindSourceDefinitionAsync(withEventsProperty.Type, document.Project.Solution, cancellationToken).ConfigureAwait(False), INamedTypeSymbol) 355targetType = TryCast(Await SymbolFinder.FindSourceDefinitionAsync(targetType, document.Project.Solution, cancellationToken).ConfigureAwait(False), INamedTypeSymbol)
Microsoft.CodeAnalysis.Workspaces (27)
AbstractMoveDeclarationNearReferenceService.State.cs (1)
91var findReferencesResult = await SymbolFinder.FindReferencesAsync(LocalSymbol, document.Project.Solution, cancellationToken).ConfigureAwait(false);
FindSymbols\Declarations\DeclarationFinder_SourceDeclarations.cs (2)
244query => SymbolFinder.FindSourceDeclarationsWithCustomQueryAsync(solution, query, criteria, cancellationToken)); 252query => SymbolFinder.FindSourceDeclarationsWithCustomQueryAsync(project, query, criteria, cancellationToken));
FindSymbols\FindReferences\BaseTypeFinder.cs (1)
34if (await SymbolFinder.IsOverrideAsync(solution, symbol, member, cancellationToken).ConfigureAwait(false))
FindSymbols\FindReferences\Finders\AbstractReferenceFinder.cs (2)
64if (await SymbolFinder.OriginalSymbolsMatchAsync(state.Solution, searchSymbol, symbolInfo.Symbol, cancellationToken).ConfigureAwait(false)) 69if (await SymbolFinder.OriginalSymbolsMatchAsync(state.Solution, searchSymbol, candidate, cancellationToken).ConfigureAwait(false))
FindSymbols\FindReferences\FindReferencesSearchEngine.cs (1)
158var linkedSymbols = await SymbolFinder.FindLinkedSymbolsAsync(symbol, _solution, cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\FindReferencesSearchEngine.SymbolSet.cs (5)
127var sourceSymbol = await SymbolFinder.FindSourceDefinitionAsync(searchSymbol, solution, cancellationToken).ConfigureAwait(false); 205foreach (var linked in await SymbolFinder.FindLinkedSymbolsAsync(symbol, solution, cancellationToken).ConfigureAwait(false)) 238var implementations = await SymbolFinder.FindMemberImplementationsArrayAsync( 245var overrides = await SymbolFinder.FindOverridesArrayAsync( 275var matches = await SymbolFinder.FindImplementedInterfaceMembersArrayAsync(
FindSymbols\FindReferences\FindReferencesSearchEngine_FindReferencesInDocuments.cs (3)
178if (await SymbolFinder.OriginalSymbolsMatchAsync(_solution, searchSymbol, candidate, cancellationToken).ConfigureAwait(false)) 187if (await SymbolFinder.OriginalSymbolsMatchAsync(_solution, symbolUp, candidate, cancellationToken).ConfigureAwait(false)) 197if (await SymbolFinder.OriginalSymbolsMatchAsync(_solution, searchSymbol, candidateUp, cancellationToken).ConfigureAwait(false))
FindSymbols\SymbolFinder_FindReferences_Legacy.cs (1)
123return SymbolFinder.FindReferencesAsync(symbol, solution, progress, documents, options, cancellationToken);
Rename\ConflictEngine\ConflictResolver.cs (2)
365overriddenSymbol = await SymbolFinder.FindSourceDefinitionAsync(overriddenSymbol, solution, cancellationToken).ConfigureAwait(false); 407var originalsourcesymbol = await SymbolFinder.FindSourceDefinitionAsync(symbol, solution, cancellationToken).ConfigureAwait(false);
Rename\ConflictEngine\ConflictResolver.Session.cs (2)
598var overridingSymbol = await SymbolFinder.FindSymbolAtPositionAsync(solution.GetRequiredDocument(newLocation.SourceTree), newLocation.SourceSpan.Start, cancellationToken: _cancellationToken).ConfigureAwait(false); 680var newSymbol = await SymbolFinder.FindSymbolAtPositionAsync(document, start, cancellationToken: _cancellationToken).ConfigureAwait(false);
Rename\RenameUtilities.cs (4)
214var originalSourceSymbol = await SymbolFinder.FindSourceDefinitionAsync( 226var methodImplementors = await SymbolFinder.FindImplementationsAsync( 302var symbol = await SymbolFinder.FindSymbolAtPositionAsync(document, position, cancellationToken: cancellationToken).ConfigureAwait(false); 322var foundSymbol = await SymbolFinder.FindSourceDefinitionAsync(
Rename\SymbolicRenameLocations.cs (1)
138var referenceSymbols = await SymbolFinder.FindRenamableReferencesAsync(
Shared\Extensions\ITypeSymbolExtensions.cs (1)
101typeSymbol => SymbolFinder.OriginalSymbolsMatchAsync(solution, typeSymbol, interfaceMember, cancellationToken)).ConfigureAwait(false);
Shared\Extensions\SyntaxGeneratorExtensions.cs (1)
353&& await SymbolFinder.FindSourceDefinitionAsync(overriddenProperty, document.Project.Solution, cancellationToken).ConfigureAwait(false) is { Language: LanguageNames.VisualBasic })
Microsoft.CodeAnalysis.Workspaces.UnitTests (56)
FindAllDeclarationsTests.cs (38)
95var declarations = await SymbolFinder.FindDeclarationsAsync(project, searchTerm, ignoreCase).ConfigureAwait(false); 104var declarations = await SymbolFinder.FindDeclarationsAsync(null, "Test", true); 114var declarations = await SymbolFinder.FindDeclarationsAsync(project, null, true); 124var declarations = await SymbolFinder.FindDeclarationsAsync(project, "Test", true, SymbolFilter.All, new CancellationToken(true)); 144var csharpResult = await SymbolFinder.FindDeclarationsAsync(solution.GetProject(csharpId), "Console", ignoreCase: false); 147var vbResult = await SymbolFinder.FindDeclarationsAsync(solution.GetProject(vbId), "Console", ignoreCase: true); 184var actualSymbol = (await SymbolFinder.FindDeclarationsAsync(solution.GetProject(submission1Id), "Inner", ignoreCase: false)).SingleOrDefault(); 261var declarations = await SymbolFinder.FindSourceDeclarationsAsync(project, searchTerm, ignoreCase).ConfigureAwait(false); 270var declarations = await SymbolFinder.FindSourceDeclarationsAsync((Project)null, "Test", true); 280var declarations = await SymbolFinder.FindSourceDeclarationsAsync(project, null, true); 290var declarations = await SymbolFinder.FindSourceDeclarationsAsync(project, "Test", true, SymbolFilter.All, new CancellationToken(true)); 366var declarations = await SymbolFinder.FindSourceDeclarationsAsync(solution, searchTerm, ignoreCase).ConfigureAwait(false); 375var declarations = await SymbolFinder.FindSourceDeclarationsAsync((Solution)null, "Test", true); 385var declarations = await SymbolFinder.FindSourceDeclarationsAsync(solution, null, true); 395var declarations = await SymbolFinder.FindSourceDeclarationsAsync(solution, "Test", true, SymbolFilter.All, new CancellationToken(true)); 417var declarations = await SymbolFinder.FindSourceDeclarationsAsync(project, str => str.Contains("Test")).ConfigureAwait(false); 425var declarations = await SymbolFinder.FindSourceDeclarationsAsync(project, str => true).ConfigureAwait(false); 433var declarations = await SymbolFinder.FindSourceDeclarationsAsync(project, str => false).ConfigureAwait(false); 442var declarations = await SymbolFinder.FindSourceDeclarationsAsync((Project)null, str => str.Contains("Test")); 452var declarations = await SymbolFinder.FindSourceDeclarationsAsync(project, null); 462var declarations = await SymbolFinder.FindSourceDeclarationsAsync(project, str => str.Contains("Test"), SymbolFilter.All, new CancellationToken(true)); 484var declarations = await SymbolFinder.FindSourceDeclarationsAsync(solution, str => str.Contains("Test")).ConfigureAwait(false); 492var declarations = await SymbolFinder.FindSourceDeclarationsAsync(solution, str => true).ConfigureAwait(false); 500var declarations = await SymbolFinder.FindSourceDeclarationsAsync(solution, str => false).ConfigureAwait(false); 509await SymbolFinder.FindSourceDeclarationsAsync((Solution)null, str => str.Contains("Test")); 519await SymbolFinder.FindSourceDeclarationsAsync(solution, null); 529await SymbolFinder.FindSourceDeclarationsAsync(solution, str => str.Contains("Test"), SymbolFilter.All, new CancellationToken(true)); 551var declarations = await SymbolFinder.FindSourceDeclarationsWithPatternAsync(project, "test").ConfigureAwait(false); 564var declarations = await SymbolFinder.FindSourceDeclarationsWithPatternAsync(project, pattern).ConfigureAwait(false); 573var declarations = await SymbolFinder.FindSourceDeclarationsWithPatternAsync((Project)null, "test"); 583var declarations = await SymbolFinder.FindSourceDeclarationsWithPatternAsync(project, null); 593var declarations = await SymbolFinder.FindSourceDeclarationsWithPatternAsync(project, "test", SymbolFilter.All, new CancellationToken(true)); 615var declarations = await SymbolFinder.FindSourceDeclarationsWithPatternAsync(solution, "test").ConfigureAwait(false); 628var declarations = await SymbolFinder.FindSourceDeclarationsWithPatternAsync(solution, pattern).ConfigureAwait(false); 637await SymbolFinder.FindSourceDeclarationsWithPatternAsync((Solution)null, "test"); 647await SymbolFinder.FindSourceDeclarationsWithPatternAsync(solution, null); 657await SymbolFinder.FindSourceDeclarationsWithPatternAsync(solution, "test", SymbolFilter.All, new CancellationToken(true)); 707var foundDeclarations = await SymbolFinder.FindDeclarationsAsync(project, name: "MyEvent", ignoreCase: true);
FindReferencesTests.cs (18)
89var result = (await SymbolFinder.FindReferencesAsync(symbol, solution)).ToList(); 114var result = (await SymbolFinder.FindReferencesAsync(symbol.Type, solution)).ToList(); 171var references = await SymbolFinder.FindReferencesAsync(symbol, prj.Solution); 176references = await SymbolFinder.FindReferencesAsync(symbol, prj.Solution); 207var references = await SymbolFinder.FindReferencesAsync(symbol, prj.Solution); 275var references = await SymbolFinder.FindReferencesAsync(symbol, prj.Solution); 280references = await SymbolFinder.FindReferencesAsync(symbol, prj.Solution); 312var result = (await SymbolFinder.FindReferencesAsync(boo, solution)).ToList(); 323result = (await SymbolFinder.FindReferencesAsync(boo, solution)).ToList(); 334result = (await SymbolFinder.FindReferencesAsync(boo, solution)).ToList(); 379var references = (await SymbolFinder.FindReferencesAsync(interfaceMethod, solution)).ToList(); 425var references = await SymbolFinder.FindReferencesAsync(nameProperty, solution); 474var refsFromVirtual = await SymbolFinder.FindReferencesAsync(baseVirtualMethodSymbol, solution); 478var refsFromOverride = await SymbolFinder.FindReferencesAsync(overriddenMethodSymbol, solution); 503var result = (await SymbolFinder.FindReferencesAsync(constraint, solution)).Single(); 530var result = (await SymbolFinder.FindReferencesAsync(symbol, solution)).ToList(); 563var result = (await SymbolFinder.FindReferencesAsync(symbol, solution)).ToList(); 605var result = (await SymbolFinder.FindReferencesAsync(symbol, solution)).ToList();
Microsoft.VisualStudio.LanguageServices (20)
CallHierarchy\CallHierarchyCommandHandler.cs (1)
91var symbolUnderCaret = await SymbolFinder.FindSymbolAtPositionAsync(
CallHierarchy\CallHierarchyProvider.cs (2)
119var @overrides = await SymbolFinder.FindOverridesAsync(symbol, project.Solution, cancellationToken: cancellationToken).ConfigureAwait(false); 130var implementedInterfaceMembers = await SymbolFinder.FindImplementedInterfaceMembersAsync(symbol, project.Solution, cancellationToken: cancellationToken).ConfigureAwait(false);
CallHierarchy\Finders\BaseMemberFinder.cs (1)
31var calls = await SymbolFinder.FindCallersAsync(symbol, project.Solution, documents, cancellationToken).ConfigureAwait(false);
CallHierarchy\Finders\CallToOverrideFinder.cs (2)
27var overrides = await SymbolFinder.FindOverridesAsync(symbol, project.Solution, cancellationToken: cancellationToken).ConfigureAwait(false); 32var calls = await SymbolFinder.FindCallersAsync(@override, project.Solution, documents, cancellationToken).ConfigureAwait(false);
CallHierarchy\Finders\FieldReferenceFinder.cs (1)
34var callers = await SymbolFinder.FindCallersAsync(symbol, project.Solution, documents, cancellationToken).ConfigureAwait(false);
CallHierarchy\Finders\ImplementerFinder.cs (1)
40var implementations = await SymbolFinder.FindImplementationsAsync(symbol, project.Solution, cancellationToken: cancellationToken).ConfigureAwait(false);
CallHierarchy\Finders\InterfaceImplementationCallFinder.cs (1)
34var calls = await SymbolFinder.FindCallersAsync(symbol, project.Solution, documents, cancellationToken).ConfigureAwait(false);
CallHierarchy\Finders\MethodCallFinder.cs (1)
37var callers = await SymbolFinder.FindCallersAsync(symbol, project.Solution, documents, cancellationToken).ConfigureAwait(false);
CallHierarchy\Finders\OverridingMemberFinder.cs (1)
36var overrides = await SymbolFinder.FindOverridesAsync(symbol, project.Solution, cancellationToken: cancellationToken).ConfigureAwait(false);
Progression\GraphBuilder.cs (1)
199var newSymbol = await SymbolFinder.FindSourceDefinitionAsync(symbol, contextProject.Solution, cancellationToken).ConfigureAwait(false);
Progression\GraphQueries\ImplementedByGraphQuery.cs (1)
33var implementations = await SymbolFinder.FindImplementationsAsync(symbol, solution, cancellationToken: cancellationToken).ConfigureAwait(false);
Progression\GraphQueries\ImplementsGraphQuery.cs (1)
40var implements = await SymbolFinder.FindImplementedInterfaceMembersArrayAsync(symbol, solution, cancellationToken: cancellationToken).ConfigureAwait(false);
Progression\GraphQueries\InheritedByGraphQuery.cs (3)
31var derivedTypes = await SymbolFinder.FindDerivedClassesArrayAsync( 42var implementingClassesAndStructs = await SymbolFinder.FindImplementationsArrayAsync( 44var derivedInterfaces = await SymbolFinder.FindDerivedInterfacesArrayAsync(
Progression\GraphQueries\IsCalledByGraphQuery.cs (1)
31var callers = await SymbolFinder.FindCallersAsync(symbol, solution, cancellationToken).ConfigureAwait(false);
Progression\GraphQueries\IsUsedByGraphQuery.cs (1)
27var references = await SymbolFinder.FindReferencesAsync(symbol, solution, cancellationToken).ConfigureAwait(false);
Progression\GraphQueries\OverridesGraphQuery.cs (1)
31var overrides = await SymbolFinder.FindOverridesAsync(symbol, solution, cancellationToken: cancellationToken).ConfigureAwait(false);
Microsoft.VisualStudio.LanguageServices.UnitTests (4)
Progression\ProgressionTestState.vb (1)
80Return SymbolFinder.FindSymbolAtPositionAsync(document, hostDocument.CursorPosition.Value)
RQName\RQNameTests.vb (1)
249Dim symbol = Await SymbolFinder.FindSymbolAtPositionAsync(Await workspaceDoc.GetSemanticModelAsync(), token.SpanStart, workspace).ConfigureAwait(False)
VsNavInfo\VsNavInfoTests.vb (2)
832Dim symbol = Await SymbolFinder.FindSymbolAtPositionAsync(semanticModel, position, workspace).ConfigureAwait(False) 870Dim symbol = Await SymbolFinder.FindSymbolAtPositionAsync(semanticModel, position, workspace).ConfigureAwait(False)