257 references to SymbolFinder
IdeCoreBenchmarks (1)
FindReferencesBenchmarks.cs (1)
108var references = await SymbolFinder.FindReferencesAsync(_type, _solution);
Microsoft.CodeAnalysis.CodeStyle.Fixes (10)
src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (1)
218var referencedSymbols = await SymbolFinder.FindReferencesAsync(
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\TypeParameterSubstitution.cs (4)
117var similarTypes = SymbolFinder.FindSimilarSymbols(substitutedType, _compilation, _cancellationToken); 121similarTypes = SymbolFinder.FindSimilarSymbols(commonType, _compilation, _cancellationToken); 131var derivedClasses = await SymbolFinder.FindDerivedClassesAsync( 134var implementedTypes = await SymbolFinder.FindImplementationsAsync(
src\Analyzers\Core\CodeFixes\MakeMethodSynchronous\AbstractMakeMethodSynchronousCodeFixProvider.cs (1)
132var references = await SymbolFinder.FindReferencesAsync(
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (1)
924var referencedSymbols = await SymbolFinder.FindReferencesAsync(local, document.Project.Solution, cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\FindSymbols\LinkedFileReferenceLocationEqualityComparer.cs (1)
12/// Helper comparer to enable consumers of <see cref="SymbolFinder.FindReferencesAsync(ISymbol, Solution,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (1)
91var findReferencesResult = await SymbolFinder.FindReferencesAsync(LocalSymbol, document.Project.Solution, cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SymbolFinder\SymbolFinderInternal.cs (1)
16/// <inheritdoc cref="SymbolFinder.FindSourceDefinitionAsync"/>
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (6)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
476var symbolReferences = await SymbolFinder
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (2)
53var referencedSymbols = await SymbolFinder.FindReferencesAsync( 125var referencedCaptureSymbols = await SymbolFinder.FindReferencesAsync(
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (1)
573var references = await SymbolFinder.FindReferencesAsync(
src\Analyzers\CSharp\CodeFixes\UseSystemThreadingLock\CSharpUseSystemThreadingLockCodeFixProvider.cs (1)
116var fieldReferences = await SymbolFinder.FindReferencesAsync(field, solution, cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\InitializeParameter\InitializeParameterHelpers.cs (1)
108var references = await SymbolFinder.FindReferencesAsync(parameter, solution, documents, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.Features (8)
ChangeSignature\CSharpChangeSignatureService.cs (1)
873convertedType = SymbolFinder.FindSourceDefinition(convertedType, document.Project.Solution, cancellationToken)
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider.cs (1)
145var references = await SymbolFinder.FindReferencesAsync(
ImplementInterface\CSharpImplementExplicitlyCodeRefactoringProvider.cs (1)
52var references = await SymbolFinder.FindReferencesAsync(
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
476var symbolReferences = await SymbolFinder
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (2)
53var referencedSymbols = await SymbolFinder.FindReferencesAsync( 125var referencedCaptureSymbols = await SymbolFinder.FindReferencesAsync(
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (1)
573var references = await SymbolFinder.FindReferencesAsync(
src\Analyzers\CSharp\CodeFixes\UseSystemThreadingLock\CSharpUseSystemThreadingLockCodeFixProvider.cs (1)
116var fieldReferences = await SymbolFinder.FindReferencesAsync(field, solution, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Rename\CSharpRenameRewriterLanguageService.cs (2)
364var sourceDefinition = SymbolFinder.FindSourceDefinition(symbol, _solution, _cancellationToken); 943var originalSourceSymbol = SymbolFinder.FindSourceDefinition(symbol.GetOverriddenMember(), solution, cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\InitializeParameter\InitializeParameterHelpers.cs (1)
108var references = await SymbolFinder.FindReferencesAsync(parameter, solution, documents, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.EditorFeatures (3)
CodeDefinitionWindow\DefinitionContextTracker.cs (1)
168var symbol = await SymbolFinder.FindSymbolAtPositionAsync(
RenameTracking\RenameTrackingTaggerProvider.TrackingSession.cs (2)
224var sourceSymbol = SymbolFinder.FindSourceDefinition(symbol, document.Project.Solution, _cancellationToken) ?? symbol; 238var sourceSymbol = SymbolFinder.FindSourceDefinition(symbol, document.Project.Solution, _cancellationToken) ?? symbol;
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)
22return SymbolFinder.FindSymbolAtPositionAsync(document, position);
Microsoft.CodeAnalysis.EditorFeatures.Wpf (2)
Peek\PeekableItemFactory.cs (1)
63symbol = SymbolFinder.FindSourceDefinition(symbol, solution, cancellationToken) ?? symbol;
Peek\PeekableItemSource.cs (1)
95var 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) 222Dim symbol = Await SymbolFinder.FindSymbolAtPositionAsync(document, invocationPosition) 223Dim references = Await SymbolFinder.FindReferencesAsync(symbol, document.Project.Solution, progress:=Nothing, documents:=Nothing) 259Dim symbol = Await SymbolFinder.FindSymbolAtPositionAsync(document, invocationPosition) 262Dim references = (Await SymbolFinder.FindReferencesAsync(symbol, document.Project.Solution, progress:=Nothing, documents:=Nothing)).ToList() 302Dim symbol = Await SymbolFinder.FindSymbolAtPositionAsync(document, invocationPosition) 303Dim references = Await SymbolFinder.FindReferencesAsync(symbol, document.Project.Solution, progress:=Nothing, documents:=Nothing) 344Dim symbol = Await SymbolFinder.FindSymbolAtPositionAsync(document, invocationPosition) 345Dim references = Await SymbolFinder.FindReferencesAsync(symbol, document.Project.Solution, progress:=Nothing, documents:=Nothing) 386Dim symbol = Await SymbolFinder.FindSymbolAtPositionAsync(document, invocationPosition) 387Dim references = Await SymbolFinder.FindReferencesAsync(symbol, document.Project.Solution, progress:=Nothing, documents:=Nothing) 428Dim symbol = Await SymbolFinder.FindSymbolAtPositionAsync(document, invocationPosition) 429Dim references = Await SymbolFinder.FindReferencesAsync(symbol, document.Project.Solution, progress:=Nothing, documents:=Nothing)
FindReferences\FindReferencesTests.vb (4)
253Dim symbol = Await SymbolFinder.FindSymbolAtPositionAsync(document, cursorPosition) 261Await SymbolFinder.FindReferencesAsync( 553Dim linkedSymbols = Await SymbolFinder.FindLinkedSymbolsAsync(symbol1, solution, cancellationToken:=Nothing) 581Await 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 (50)
ChangeSignature\AbstractChangeSignatureService.cs (1)
110symbol = SymbolFinder.FindSourceDefinition(symbol, document.Project.Solution, cancellationToken) ?? symbol;
ChangeSignature\DelegateInvokeMethodReferenceFinder.cs (1)
112convertedType = SymbolFinder.FindSourceDefinition(convertedType, state.Solution, cancellationToken) ?? convertedType;
CodeLens\CodeLensReferencesService.cs (1)
65await SymbolFinder.FindReferencesAsync(
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (1)
552await SymbolFinder.FindReferencesAsync(
Completion\Providers\ImportCompletionProvider\ExtensionMethodImportCompletionHelper.SymbolComputer.cs (2)
251var declaredReceiverTypeInOriginatingCompilation = SymbolFinder.FindSimilarSymbols(declaredReceiverType, _originatingSemanticModel.Compilation, cancellationToken).FirstOrDefault(); 275foreach (var methodInOriginatingCompilation in methodSymbols.Select(s => SymbolFinder.FindSimilarSymbols(s, _originatingSemanticModel.Compilation).FirstOrDefault()).WhereNotNull())
DocumentHighlighting\AbstractDocumentHighlightsService.cs (2)
75var symbol = await SymbolFinder.FindSymbolAtPositionAsync( 125await SymbolFinder.FindReferencesInDocumentsInCurrentProcessAsync(
FindUsages\AbstractFindUsagesService_FindImplementations.cs (5)
101var linkedSymbols = await SymbolFinder.FindLinkedSymbolsAsync( 174var implementations = await SymbolFinder.FindImplementationsAsync( 190var overrides = await SymbolFinder.FindOverridesAsync( 200return ImmutableArray<ISymbol>.CastUp(await SymbolFinder.FindDerivedClassesArrayAsync( 205return await SymbolFinder.FindOverridesArrayAsync(
FindUsages\AbstractFindUsagesService_FindReferences.cs (2)
166return SymbolFinder.FindReferencesAsync( 238await SymbolFinder.FindLiteralReferencesAsync(
FindUsages\FindUsagesHelpers.cs (1)
36var symbol = await SymbolFinder.FindSymbolAtPositionAsync(document, position, cancellationToken: cancellationToken).ConfigureAwait(false);
GenerateType\AbstractGenerateTypeService.State.cs (1)
295var symbol = SymbolFinder.FindSourceDefinition(TypeToGenerateInOpt, document.Project.Solution, cancellationToken);
GoToBase\AbstractGoToBaseService.cs (1)
64var sourceDefinition = SymbolFinder.FindSourceDefinition(
GoToDefinition\AbstractGoToDefinitionSymbolService.cs (1)
28var semanticInfo = await SymbolFinder.GetSemanticInfoAtPositionAsync(semanticModel, position, services, cancellationToken).ConfigureAwait(false);
GoToDefinition\GoToDefinitionFeatureHelpers.cs (1)
43var definition = SymbolFinder.FindSourceDefinition(symbol, solution, cancellationToken);
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (7)
372var allOverridingSymbols = await SymbolFinder.FindOverridesArrayAsync(memberSymbol, solution, cancellationToken: cancellationToken).ConfigureAwait(false); 554var symbolInSource = SymbolFinder.FindSourceDefinition(targetSymbol, solution, cancellationToken); 626var implementationSymbols = await SymbolFinder.FindMemberImplementationsArrayAsync( 639builder.AddRange(await SymbolFinder.FindOverridesArrayAsync(implementationSymbol, solution, cancellationToken: cancellationToken).ConfigureAwait(false)); 677var allDerivedInterfaces = await SymbolFinder.FindDerivedInterfacesArrayAsync( 682var allImplementations = await SymbolFinder.FindImplementationsArrayAsync( 691return await SymbolFinder.FindDerivedClassesArrayAsync(
InitializeParameter\AbstractInitializeMemberFromParameterCodeRefactoringProviderMemberCreation.cs (2)
449var finalFieldOrProperty = SymbolFinder.FindSimilarSymbols(currentFieldOrProperty, compilation, cancellationToken).FirstOrDefault(); 528var currentParameter = SymbolFinder.FindSimilarSymbols(parameter, compilation, cancellationToken).FirstOrDefault();
InlineMethod\AbstractInlineMethodRefactoringProvider.InlineContext.cs (1)
296var allReferences = await SymbolFinder
InlineMethod\AbstractInlineMethodRefactoringProvider.MethodParametersInfo.cs (1)
441var allReferences = await SymbolFinder
InlineTemporary\AbstractInlineTemporaryCodeRefactoringProvider.cs (1)
37var findReferencesResult = await SymbolFinder.FindReferencesAsync(
IntroduceParameter\AbstractIntroduceParameterCodeRefactoringProvider.cs (1)
275await SymbolFinder.FindReferencesAsync(
MoveStaticMembers\MoveStaticMembersWithDialogCodeAction.cs (1)
362: await SymbolFinder.FindReferencesAsync(resolvedMember, solution, cancellationToken).ConfigureAwait(false);
Navigation\AbstractNavigableItemsService.cs (2)
51symbol = SymbolFinder.FindSourceDefinition(symbol, solution, cancellationToken) ?? symbol; 64typeSymbol = SymbolFinder.FindSourceDefinition(typeSymbol, solution, cancellationToken) ?? typeSymbol;
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)
163var getMethodReferences = await SymbolFinder.FindReferencesAsync( 167: await SymbolFinder.FindReferencesAsync(
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (1)
85var propertyReferences = await SymbolFinder.FindReferencesAsync(propertySymbol, originalSolution, cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (1)
218var referencedSymbols = await SymbolFinder.FindReferencesAsync(
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\TypeParameterSubstitution.cs (4)
117var similarTypes = SymbolFinder.FindSimilarSymbols(substitutedType, _compilation, _cancellationToken); 121similarTypes = SymbolFinder.FindSimilarSymbols(commonType, _compilation, _cancellationToken); 131var derivedClasses = await SymbolFinder.FindDerivedClassesAsync( 134var implementedTypes = await SymbolFinder.FindImplementationsAsync(
src\Analyzers\Core\CodeFixes\MakeMethodSynchronous\AbstractMakeMethodSynchronousCodeFixProvider.cs (1)
137var references = await SymbolFinder.FindRenamableReferencesAsync(
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (1)
924var referencedSymbols = await SymbolFinder.FindReferencesAsync(local, document.Project.Solution, cancellationToken).ConfigureAwait(false);
ValueTracking\ValueTracker.cs (2)
167await SymbolFinder.FindReferencesAsync( 181await SymbolFinder.FindReferencesAsync(
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Handler\Definitions\AbstractGoToDefinitionHandler.cs (1)
79var symbol = await SymbolFinder.FindSymbolAtPositionAsync(semanticModel, position, document.Project.Solution.Services, includeType: true, cancellationToken).ConfigureAwait(false);
Handler\References\FindUsagesLSPContext.cs (1)
254var symbol = await SymbolFinder.FindSymbolAtPositionAsync(_document, _position, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Services\SymbolFinder\RemoteSymbolFinderService.cs (2)
66await SymbolFinder.FindReferencesInCurrentProcessAsync( 79await SymbolFinder.FindLiteralReferencesInCurrentProcessAsync(
Microsoft.CodeAnalysis.VisualBasic.Features (6)
ChangeSignature\VisualBasicChangeSignatureService.vb (2)
705convertedType = If(SymbolFinder.FindSourceDefinition(convertedType, document.Project.Solution, cancellationToken), convertedType) 724nodeType = If(SymbolFinder.FindSourceDefinition(nodeType, document.Project.Solution, cancellationToken), nodeType)
CodeFixes\GenerateEvent\GenerateEventCodeFixProvider.vb (4)
108Dim sourceDefinition = SymbolFinder.FindSourceDefinition(targetType, document.Project.Solution, cancellationToken) 259Dim targetType = TryCast(SymbolFinder.FindSourceDefinition(semanticModel.GetSymbolInfo(node.Left, cancellationToken).Symbol, document.Project.Solution, cancellationToken), INamedTypeSymbol) 350targetType = TryCast(SymbolFinder.FindSourceDefinition(withEventsProperty.Type, document.Project.Solution, cancellationToken), INamedTypeSymbol) 354targetType = TryCast(SymbolFinder.FindSourceDefinition(targetType, document.Project.Solution, cancellationToken), INamedTypeSymbol)
Microsoft.CodeAnalysis.Workspaces (26)
FindSymbols\Declarations\DeclarationFinder_SourceDeclarations.cs (2)
242query => SymbolFinder.FindSourceDeclarationsWithCustomQueryAsync(solution, query, criteria, cancellationToken)); 250query => SymbolFinder.FindSourceDeclarationsWithCustomQueryAsync(project, query, criteria, cancellationToken));
FindSymbols\FindReferences\BaseTypeFinder.cs (1)
46if (SymbolFinder.IsOverride(solution, symbol, member, allowLooseMatch))
FindSymbols\FindReferences\Finders\AbstractReferenceFinder.cs (2)
63if (SymbolFinder.OriginalSymbolsMatch(state.Solution, searchSymbol, symbolInfo.Symbol)) 68if (SymbolFinder.OriginalSymbolsMatch(state.Solution, searchSymbol, candidate))
FindSymbols\FindReferences\Finders\PreprocessingSymbolReferenceFinder.cs (1)
54var matched = SymbolFinder.OriginalSymbolsMatch(state.Solution, symbol, targetSymbol);
FindSymbols\FindReferences\FindReferencesSearchEngine.cs (1)
187var linkedSymbols = await SymbolFinder.FindLinkedSymbolsAsync(symbol, _solution, cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\FindReferencesSearchEngine.SymbolSet.cs (5)
136var sourceSymbol = SymbolFinder.FindSourceDefinition(searchSymbol, solution, cancellationToken); 218foreach (var linked in await SymbolFinder.FindLinkedSymbolsAsync(symbol, solution, cancellationToken).ConfigureAwait(false)) 251var implementations = await SymbolFinder.FindMemberImplementationsArrayAsync( 258var overrides = await SymbolFinder.FindOverridesArrayAsync( 288var matches = await SymbolFinder.FindImplementedInterfaceMembersArrayAsync(
Rename\ConflictEngine\ConflictResolver.cs (2)
363overriddenSymbol = SymbolFinder.FindSourceDefinition(overriddenSymbol, solution, cancellationToken); 405var originalsourcesymbol = SymbolFinder.FindSourceDefinition(symbol, solution, cancellationToken);
Rename\ConflictEngine\ConflictResolver.Session.cs (2)
607var overridingSymbol = await SymbolFinder.FindSymbolAtPositionAsync(solution.GetRequiredDocument(newLocation.SourceTree), newLocation.SourceSpan.Start, cancellationToken: _cancellationToken).ConfigureAwait(false); 689var newSymbol = await SymbolFinder.FindSymbolAtPositionAsync(document, start, cancellationToken: _cancellationToken).ConfigureAwait(false);
Rename\RenameUtilities.cs (4)
218var originalSourceSymbol = SymbolFinder.FindSourceDefinition( 228var methodImplementors = await SymbolFinder.FindImplementationsAsync( 302var symbol = await SymbolFinder.FindSymbolAtPositionAsync(document, position, cancellationToken: cancellationToken).ConfigureAwait(false); 322var foundSymbol = SymbolFinder.FindSourceDefinition(
Rename\SymbolicRenameLocations.cs (1)
131var referenceSymbols = await SymbolFinder.FindRenamableReferencesAsync(
Shared\Extensions\ITypeSymbolExtensions.cs (1)
98typeSymbol => SymbolFinder.OriginalSymbolsMatch(solution, typeSymbol, interfaceMember));
Shared\Extensions\SyntaxGeneratorExtensions.cs (1)
80&& SymbolFinder.FindSourceDefinition(overriddenProperty, document.Project.Solution, cancellationToken) is { Language: LanguageNames.VisualBasic })
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\FindSymbols\LinkedFileReferenceLocationEqualityComparer.cs (1)
12/// Helper comparer to enable consumers of <see cref="SymbolFinder.FindReferencesAsync(ISymbol, Solution,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (1)
91var findReferencesResult = await SymbolFinder.FindReferencesAsync(LocalSymbol, document.Project.Solution, cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SymbolFinder\SymbolFinderInternal.cs (1)
16/// <inheritdoc cref="SymbolFinder.FindSourceDefinitionAsync"/>
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)
106var result = (await SymbolFinder.FindReferencesAsync(symbol, solution)).ToList(); 131var result = (await SymbolFinder.FindReferencesAsync(symbol.Type, solution)).ToList(); 188var references = await SymbolFinder.FindReferencesAsync(symbol, prj.Solution); 193references = await SymbolFinder.FindReferencesAsync(symbol, prj.Solution); 224var references = await SymbolFinder.FindReferencesAsync(symbol, prj.Solution); 292var references = await SymbolFinder.FindReferencesAsync(symbol, prj.Solution); 297references = await SymbolFinder.FindReferencesAsync(symbol, prj.Solution); 329var result = (await SymbolFinder.FindReferencesAsync(boo, solution)).ToList(); 340result = (await SymbolFinder.FindReferencesAsync(boo, solution)).ToList(); 351result = (await SymbolFinder.FindReferencesAsync(boo, solution)).ToList(); 393var references = (await SymbolFinder.FindReferencesAsync(interfaceMethod, solution)).ToList(); 439var references = await SymbolFinder.FindReferencesAsync(nameProperty, solution); 488var refsFromVirtual = await SymbolFinder.FindReferencesAsync(baseVirtualMethodSymbol, solution); 492var refsFromOverride = await SymbolFinder.FindReferencesAsync(overriddenMethodSymbol, solution); 517var result = (await SymbolFinder.FindReferencesAsync(constraint, solution)).Single(); 544var result = (await SymbolFinder.FindReferencesAsync(symbol, solution)).ToList(); 577var result = (await SymbolFinder.FindReferencesAsync(symbol, solution)).ToList(); 619var result = (await SymbolFinder.FindReferencesAsync(symbol, solution)).ToList();
Microsoft.Interop.LibraryImportGenerator (1)
Analyzers\ConvertToLibraryImportFixer.cs (1)
274IEnumerable<ReferencedSymbol>? referencedSymbols = await SymbolFinder.FindReferencesAsync(
Microsoft.VisualStudio.LanguageServices (20)
CallHierarchy\CallHierarchyCommandHandler.cs (1)
89var 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)
213var newSymbol = SymbolFinder.FindSourceDefinition(symbol, contextProject.Solution, cancellationToken);
Progression\GraphQueries\ImplementedByGraphQuery.cs (1)
33var implementations = await SymbolFinder.FindImplementationsAsync(symbol, solution, cancellationToken: cancellationToken).ConfigureAwait(false);
Progression\GraphQueries\ImplementsGraphQuery.cs (1)
39var 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)