260 references to SymbolFinder
IdeCoreBenchmarks (1)
FindReferencesBenchmarks.cs (1)
108var references = await SymbolFinder.FindReferencesAsync(_type, _solution);
Microsoft.CodeAnalysis.CodeStyle.Fixes (13)
src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (1)
150var referencedSymbols = await SymbolFinder.FindReferencesAsync(
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
402var definition = await SymbolFinder.FindSourceDefinitionAsync(original, _document.Project.Solution, cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\GenerateEnumMember\AbstractGenerateEnumMemberService.State.cs (1)
70var sourceType = await SymbolFinder.FindSourceDefinitionAsync(TypeToGenerateIn, document.Project.Solution, cancellationToken).ConfigureAwait(false) as INamedTypeSymbol;
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.State.cs (1)
61TypeToGenerateIn = await SymbolFinder.FindSourceDefinitionAsync(TypeToGenerateIn, document.Project.Solution, cancellationToken).ConfigureAwait(false) as INamedTypeSymbol;
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\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
158TypeToGenerateIn = await SymbolFinder.FindSourceDefinitionAsync(
src\Analyzers\Core\CodeFixes\MakeMethodSynchronous\AbstractMakeMethodSynchronousCodeFixProvider.cs (1)
132var references = await SymbolFinder.FindReferencesAsync(
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (1)
921var referencedSymbols = await SymbolFinder.FindReferencesAsync(local, document.Project.Solution, cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\UnsealClass\AbstractUnsealClassCodeFixProvider.cs (1)
42var definition = await SymbolFinder.FindSourceDefinitionAsync(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (1)
91var findReferencesResult = await SymbolFinder.FindReferencesAsync(LocalSymbol, document.Project.Solution, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
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)
530var 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.Features (9)
ChangeSignature\CSharpChangeSignatureService.cs (1)
874convertedType = await SymbolFinder.FindSourceDefinitionAsync(convertedType, document.Project.Solution, cancellationToken).ConfigureAwait(false)
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider.cs (1)
145var references = await SymbolFinder.FindReferencesAsync(
ImplementInterface\CSharpImplementExplicitlyCodeRefactoringProvider.cs (1)
52var references = await SymbolFinder.FindReferencesAsync(
InitializeParameter\CSharpInitializeMemberFromPrimaryConstructorParameterCodeRefactoringProvider_Update.cs (1)
174var references = await SymbolFinder.FindReferencesAsync(parameter, solution, documents, cancellationToken).ConfigureAwait(false);
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)
530var 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 (2)
Rename\CSharpRenameRewriterLanguageService.cs (2)
365var sourceDefinition = await SymbolFinder.FindSourceDefinitionAsync(symbol, _solution, _cancellationToken).ConfigureAwait(false); 948var originalSourceSymbol = await SymbolFinder.FindSourceDefinitionAsync(symbol.GetOverriddenMember(), solution, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.EditorFeatures (3)
CodeDefinitionWindow\DefinitionContextTracker.cs (1)
168var symbol = await SymbolFinder.FindSymbolAtPositionAsync(
RenameTracking\RenameTrackingTaggerProvider.TrackingSession.cs (2)
220var sourceSymbol = await SymbolFinder.FindSourceDefinitionAsync(symbol, document.Project.Solution, _cancellationToken).ConfigureAwait(false) ?? symbol; 234var sourceSymbol = await SymbolFinder.FindSourceDefinitionAsync(symbol, document.Project.Solution, _cancellationToken).ConfigureAwait(false) ?? 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 = await SymbolFinder.FindSourceDefinitionAsync(symbol, solution, cancellationToken).ConfigureAwait(false) ?? 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.TestAccessor.FindReferencesAsync( 552Dim linkedSymbols = Await SymbolFinder.FindLinkedSymbolsAsync(symbol1, solution, cancellationToken:=Nothing) 580Await 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 (52)
ChangeSignature\AbstractChangeSignatureService.cs (1)
109symbol = await SymbolFinder.FindSourceDefinitionAsync(symbol, document.Project.Solution, cancellationToken).ConfigureAwait(false) ?? 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)
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)
166return SymbolFinder.FindReferencesAsync( 237await SymbolFinder.FindLiteralReferencesAsync(
FindUsages\FindUsagesHelpers.cs (1)
36var symbol = await SymbolFinder.FindSymbolAtPositionAsync(document, position, cancellationToken: cancellationToken).ConfigureAwait(false);
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\AbstractGoToDefinitionSymbolService.cs (1)
29var semanticInfo = await SymbolFinder.GetSemanticInfoAtPositionAsync(semanticModel, position, services, cancellationToken).ConfigureAwait(false);
GoToDefinition\GoToDefinitionFeatureHelpers.cs (1)
43var definition = await SymbolFinder.FindSourceDefinitionAsync(symbol, solution, cancellationToken).ConfigureAwait(false);
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (7)
371var allOverridingSymbols = await SymbolFinder.FindOverridesArrayAsync(memberSymbol, solution, cancellationToken: cancellationToken).ConfigureAwait(false); 554var symbolInSource = await SymbolFinder.FindSourceDefinitionAsync(targetSymbol, solution, cancellationToken).ConfigureAwait(false); 628var implementationSymbols = await SymbolFinder.FindMemberImplementationsArrayAsync( 641builder.AddRange(await SymbolFinder.FindOverridesArrayAsync(implementationSymbol, solution, cancellationToken: cancellationToken).ConfigureAwait(false)); 683var allDerivedInterfaces = await SymbolFinder.FindDerivedInterfacesArrayAsync( 688var allImplementations = await SymbolFinder.FindImplementationsArrayAsync( 697return await SymbolFinder.FindDerivedClassesArrayAsync(
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 (1)
43symbol = await SymbolFinder.FindSourceDefinitionAsync(symbol, solution, cancellationToken).ConfigureAwait(false) ?? symbol;
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)
89var propertyReferences = await SymbolFinder.FindReferencesAsync(propertySymbol, originalSolution, cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (1)
150var referencedSymbols = await SymbolFinder.FindReferencesAsync(
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
402var definition = await SymbolFinder.FindSourceDefinitionAsync(original, _document.Project.Solution, cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\GenerateEnumMember\AbstractGenerateEnumMemberService.State.cs (1)
70var sourceType = await SymbolFinder.FindSourceDefinitionAsync(TypeToGenerateIn, document.Project.Solution, cancellationToken).ConfigureAwait(false) as INamedTypeSymbol;
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.State.cs (1)
61TypeToGenerateIn = await SymbolFinder.FindSourceDefinitionAsync(TypeToGenerateIn, document.Project.Solution, cancellationToken).ConfigureAwait(false) as INamedTypeSymbol;
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\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
158TypeToGenerateIn = await SymbolFinder.FindSourceDefinitionAsync(
src\Analyzers\Core\CodeFixes\MakeMethodSynchronous\AbstractMakeMethodSynchronousCodeFixProvider.cs (1)
137var references = await SymbolFinder.FindRenamableReferencesAsync(
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (1)
921var referencedSymbols = await SymbolFinder.FindReferencesAsync(local, document.Project.Solution, cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\UnsealClass\AbstractUnsealClassCodeFixProvider.cs (1)
42var definition = await SymbolFinder.FindSourceDefinitionAsync(
ValueTracking\ValueTracker.cs (2)
167await SymbolFinder.FindReferencesAsync( 181await SymbolFinder.FindReferencesAsync(
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Handler\Definitions\AbstractGoToDefinitionHandler.cs (1)
78var symbol = await SymbolFinder.FindSymbolAtPositionAsync(document, position, cancellationToken).ConfigureAwait(false);
Handler\References\FindUsagesLSPContext.cs (1)
209var 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)
704convertedType = If(Await SymbolFinder.FindSourceDefinitionAsync(convertedType, document.Project.Solution, cancellationToken).ConfigureAwait(False), convertedType) 723nodeType = 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) 259Dim targetType = TryCast(Await SymbolFinder.FindSourceDefinitionAsync(semanticModel.GetSymbolInfo(node.Left, cancellationToken).Symbol, document.Project.Solution, cancellationToken).ConfigureAwait(False), INamedTypeSymbol) 350targetType = TryCast(Await SymbolFinder.FindSourceDefinitionAsync(withEventsProperty.Type, document.Project.Solution, cancellationToken).ConfigureAwait(False), INamedTypeSymbol) 354targetType = TryCast(Await SymbolFinder.FindSourceDefinitionAsync(targetType, document.Project.Solution, cancellationToken).ConfigureAwait(False), INamedTypeSymbol)
Microsoft.CodeAnalysis.Workspaces (25)
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)
33if (SymbolFinder.IsOverride(solution, symbol, member))
FindSymbols\FindReferences\Finders\AbstractReferenceFinder.cs (2)
63if (SymbolFinder.OriginalSymbolsMatch(state.Solution, searchSymbol, symbolInfo.Symbol)) 68if (SymbolFinder.OriginalSymbolsMatch(state.Solution, searchSymbol, candidate))
FindSymbols\FindReferences\FindReferencesSearchEngine.cs (1)
187var linkedSymbols = await SymbolFinder.FindLinkedSymbolsAsync(symbol, _solution, cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\FindReferencesSearchEngine.SymbolSet.cs (5)
136var sourceSymbol = await SymbolFinder.FindSourceDefinitionAsync(searchSymbol, solution, cancellationToken).ConfigureAwait(false); 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(
FindSymbols\LinkedFileReferenceLocationEqualityComparer.cs (1)
12/// Helper comparer to enable consumers of <see cref="SymbolFinder.FindReferencesAsync(ISymbol, Solution,
FindSymbols\SymbolFinder_FindReferences_Legacy.cs (1)
123return SymbolFinder.FindReferencesAsync(symbol, solution, progress, documents, options, cancellationToken);
Rename\ConflictEngine\ConflictResolver.cs (2)
363overriddenSymbol = await SymbolFinder.FindSourceDefinitionAsync(overriddenSymbol, solution, cancellationToken).ConfigureAwait(false); 405var originalsourcesymbol = await SymbolFinder.FindSourceDefinitionAsync(symbol, solution, cancellationToken).ConfigureAwait(false);
Rename\ConflictEngine\ConflictResolver.Session.cs (2)
605var overridingSymbol = await SymbolFinder.FindSymbolAtPositionAsync(solution.GetRequiredDocument(newLocation.SourceTree), newLocation.SourceSpan.Start, cancellationToken: _cancellationToken).ConfigureAwait(false); 687var 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)
131var referenceSymbols = await SymbolFinder.FindRenamableReferencesAsync(
Shared\Extensions\ITypeSymbolExtensions.cs (1)
98typeSymbol => SymbolFinder.OriginalSymbolsMatch(solution, typeSymbol, interfaceMember));
Shared\Extensions\SyntaxGeneratorExtensions.cs (1)
86&& await SymbolFinder.FindSourceDefinitionAsync(overriddenProperty, document.Project.Solution, cancellationToken).ConfigureAwait(false) is { Language: LanguageNames.VisualBasic })
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (1)
91var findReferencesResult = await SymbolFinder.FindReferencesAsync(LocalSymbol, document.Project.Solution, cancellationToken).ConfigureAwait(false);
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 = 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)
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)