257 references to SymbolFinder
IdeCoreBenchmarks (1)
FindReferencesBenchmarks.cs (1)
108
var references = await
SymbolFinder
.FindReferencesAsync(_type, _solution);
Microsoft.CodeAnalysis.CodeStyle.Fixes (10)
src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (1)
218
var referencedSymbols = await
SymbolFinder
.FindReferencesAsync(
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\TypeParameterSubstitution.cs (4)
117
var similarTypes =
SymbolFinder
.FindSimilarSymbols(substitutedType, _compilation, _cancellationToken);
121
similarTypes =
SymbolFinder
.FindSimilarSymbols(commonType, _compilation, _cancellationToken);
131
var derivedClasses = await
SymbolFinder
.FindDerivedClassesAsync(
134
var implementedTypes = await
SymbolFinder
.FindImplementationsAsync(
src\Analyzers\Core\CodeFixes\MakeMethodSynchronous\AbstractMakeMethodSynchronousCodeFixProvider.cs (1)
132
var references = await
SymbolFinder
.FindReferencesAsync(
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (1)
924
var 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)
91
var 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)
476
var symbolReferences = await
SymbolFinder
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (2)
53
var referencedSymbols = await
SymbolFinder
.FindReferencesAsync(
125
var referencedCaptureSymbols = await
SymbolFinder
.FindReferencesAsync(
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (1)
573
var references = await
SymbolFinder
.FindReferencesAsync(
src\Analyzers\CSharp\CodeFixes\UseSystemThreadingLock\CSharpUseSystemThreadingLockCodeFixProvider.cs (1)
116
var fieldReferences = await
SymbolFinder
.FindReferencesAsync(field, solution, cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\InitializeParameter\InitializeParameterHelpers.cs (1)
108
var references = await
SymbolFinder
.FindReferencesAsync(parameter, solution, documents, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.Features (8)
ChangeSignature\CSharpChangeSignatureService.cs (1)
873
convertedType =
SymbolFinder
.FindSourceDefinition(convertedType, document.Project.Solution, cancellationToken)
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider.cs (1)
145
var references = await
SymbolFinder
.FindReferencesAsync(
ImplementInterface\CSharpImplementExplicitlyCodeRefactoringProvider.cs (1)
52
var references = await
SymbolFinder
.FindReferencesAsync(
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
476
var symbolReferences = await
SymbolFinder
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (2)
53
var referencedSymbols = await
SymbolFinder
.FindReferencesAsync(
125
var referencedCaptureSymbols = await
SymbolFinder
.FindReferencesAsync(
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (1)
573
var references = await
SymbolFinder
.FindReferencesAsync(
src\Analyzers\CSharp\CodeFixes\UseSystemThreadingLock\CSharpUseSystemThreadingLockCodeFixProvider.cs (1)
116
var fieldReferences = await
SymbolFinder
.FindReferencesAsync(field, solution, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Rename\CSharpRenameRewriterLanguageService.cs (2)
364
var sourceDefinition =
SymbolFinder
.FindSourceDefinition(symbol, _solution, _cancellationToken);
943
var originalSourceSymbol =
SymbolFinder
.FindSourceDefinition(symbol.GetOverriddenMember(), solution, cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\InitializeParameter\InitializeParameterHelpers.cs (1)
108
var references = await
SymbolFinder
.FindReferencesAsync(parameter, solution, documents, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.EditorFeatures (3)
CodeDefinitionWindow\DefinitionContextTracker.cs (1)
168
var symbol = await
SymbolFinder
.FindSymbolAtPositionAsync(
RenameTracking\RenameTrackingTaggerProvider.TrackingSession.cs (2)
224
var sourceSymbol =
SymbolFinder
.FindSourceDefinition(symbol, document.Project.Solution, _cancellationToken) ?? symbol;
238
var sourceSymbol =
SymbolFinder
.FindSourceDefinition(symbol, document.Project.Solution, _cancellationToken) ?? symbol;
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (25)
SymbolFinder\DependentTypeFinderTests.cs (24)
85
var derivedFromBase = await
SymbolFinder
.FindDerivedClassesAsync(baseClassSymbol, solution, transitive: false);
126
var derivedFromBase = await
SymbolFinder
.FindDerivedInterfacesAsync(baseClassSymbol, solution, transitive: false);
177
var derivedFromBase = await
SymbolFinder
.FindDerivedClassesAsync(baseClassSymbol, solution, transitive: false);
218
var derivedFromBase = await
SymbolFinder
.FindDerivedClassesAsync(baseClassSymbol, solution, transitive: false);
260
var derivedFromBase = await
SymbolFinder
.FindDerivedClassesAsync(baseClassSymbol, solution, transitive: false);
302
var derivedFromBase = await
SymbolFinder
.FindDerivedClassesAsync(baseClassSymbol, solution, transitive: false);
343
var typesThatImplementInterface = await
SymbolFinder
.FindImplementationsAsync(baseInterfaceSymbol, solution, transitive: false);
384
var typesThatImplementInterface = await
SymbolFinder
.FindImplementationsAsync(baseInterfaceSymbol, solution, transitive: false);
424
var typesThatImplementInterface = await
SymbolFinder
.FindImplementationsAsync(baseInterfaceSymbol, solution, transitive: false);
443
var immediateDerived = await
SymbolFinder
.FindDerivedClassesAsync(
449
var transitiveDerived = await
SymbolFinder
.FindDerivedClassesAsync(
488
var immediateDerived = await
SymbolFinder
.FindDerivedInterfacesAsync(
496
var transitiveDerived = await
SymbolFinder
.FindDerivedInterfacesAsync(
540
var immediateImpls = await
SymbolFinder
.FindImplementationsAsync(
548
var transitiveImpls = await
SymbolFinder
.FindImplementationsAsync(
577
var transitiveImpls = await
SymbolFinder
.FindImplementationsAsync(
607
var transitiveImpls = await
SymbolFinder
.FindImplementationsAsync(
651
var results = await
SymbolFinder
.FindDerivedClassesArrayAsync(firstType, solution, transitive: true, ImmutableHashSet.Create(csProject), CancellationToken.None);
656
results = await
SymbolFinder
.FindDerivedClassesArrayAsync(firstType, solution, transitive: true, ImmutableHashSet.Create(otherProject), CancellationToken.None);
704
var typesThatDerive = await
SymbolFinder
.FindDerivedClassesArrayAsync(
711
var typesThatDerive = await
SymbolFinder
.FindDerivedClassesArrayAsync(
718
var typesThatDerive = await
SymbolFinder
.FindDerivedClassesArrayAsync(
762
var interfaceMembers = await
SymbolFinder
.FindImplementedInterfaceMembersArrayAsync(methodSymbol, solution, CancellationToken.None);
792
var implementedMembers = await
SymbolFinder
.FindImplementedInterfaceMembersArrayAsync(namespaceSymbol, solution, CancellationToken.None);
SymbolFinder\FindSymbolAtPositionTests.cs (1)
22
return
SymbolFinder
.FindSymbolAtPositionAsync(document, position);
Microsoft.CodeAnalysis.EditorFeatures.Wpf (2)
Peek\PeekableItemFactory.cs (1)
63
symbol =
SymbolFinder
.FindSourceDefinition(symbol, solution, cancellationToken) ?? symbol;
Peek\PeekableItemSource.cs (1)
95
var semanticInfo = await
SymbolFinder
.GetSemanticInfoAtPositionAsync(
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (32)
Extensions\ISymbolExtensionsTests.vb (1)
22
Dim symbol = Await
SymbolFinder
.FindSymbolAtPositionAsync(document, cursorPosition)
FindReferences\FindReferencesTests.LinkedFiles.vb (20)
38
Dim symbol = Await
SymbolFinder
.FindSymbolAtPositionAsync(document, invocationPosition)
39
Dim references = Await
SymbolFinder
.FindReferencesAsync(symbol, document.Project.Solution, progress:=Nothing, documents:=Nothing)
70
Dim symbol = Await
SymbolFinder
.FindSymbolAtPositionAsync(document, invocationPosition)
71
Dim references = Await
SymbolFinder
.FindReferencesAsync(symbol, document.Project.Solution, progress:=Nothing, documents:=Nothing)
113
Dim symbol = Await
SymbolFinder
.FindSymbolAtPositionAsync(document, invocationPosition)
114
Dim references = Await
SymbolFinder
.FindReferencesAsync(symbol, document.Project.Solution, progress:=Nothing, documents:=Nothing)
127
symbol = Await
SymbolFinder
.FindSymbolAtPositionAsync(document, invocationPosition)
128
references = Await
SymbolFinder
.FindReferencesAsync(symbol, document.Project.Solution, progress:=Nothing, documents:=Nothing)
222
Dim symbol = Await
SymbolFinder
.FindSymbolAtPositionAsync(document, invocationPosition)
223
Dim references = Await
SymbolFinder
.FindReferencesAsync(symbol, document.Project.Solution, progress:=Nothing, documents:=Nothing)
259
Dim symbol = Await
SymbolFinder
.FindSymbolAtPositionAsync(document, invocationPosition)
262
Dim references = (Await
SymbolFinder
.FindReferencesAsync(symbol, document.Project.Solution, progress:=Nothing, documents:=Nothing)).ToList()
302
Dim symbol = Await
SymbolFinder
.FindSymbolAtPositionAsync(document, invocationPosition)
303
Dim references = Await
SymbolFinder
.FindReferencesAsync(symbol, document.Project.Solution, progress:=Nothing, documents:=Nothing)
344
Dim symbol = Await
SymbolFinder
.FindSymbolAtPositionAsync(document, invocationPosition)
345
Dim references = Await
SymbolFinder
.FindReferencesAsync(symbol, document.Project.Solution, progress:=Nothing, documents:=Nothing)
386
Dim symbol = Await
SymbolFinder
.FindSymbolAtPositionAsync(document, invocationPosition)
387
Dim references = Await
SymbolFinder
.FindReferencesAsync(symbol, document.Project.Solution, progress:=Nothing, documents:=Nothing)
428
Dim symbol = Await
SymbolFinder
.FindSymbolAtPositionAsync(document, invocationPosition)
429
Dim references = Await
SymbolFinder
.FindReferencesAsync(symbol, document.Project.Solution, progress:=Nothing, documents:=Nothing)
FindReferences\FindReferencesTests.vb (4)
253
Dim symbol = Await
SymbolFinder
.FindSymbolAtPositionAsync(document, cursorPosition)
261
Await
SymbolFinder
.FindReferencesAsync(
553
Dim linkedSymbols = Await
SymbolFinder
.FindLinkedSymbolsAsync(symbol1, solution, cancellationToken:=Nothing)
581
Await
SymbolFinder
.FindReferencesInDocumentsInCurrentProcessAsync(
Workspaces\SymbolDescriptionServiceTests.vb (1)
26
Dim symbol = Await
SymbolFinder
.FindSymbolAtPositionAsync(document, cursorPosition)
Workspaces\TryFindSourceDefinitionTests.vb (6)
66
Dim mappedType = Await
SymbolFinder
.FindSourceDefinitionAsync(fieldType, snapshot, CancellationToken.None)
110
Dim mappedType = Await
SymbolFinder
.FindSourceDefinitionAsync(fieldType, snapshot)
147
Dim mappedMember = Await
SymbolFinder
.FindSourceDefinitionAsync(member, workspace.CurrentSolution)
184
Dim mappedMember = Await
SymbolFinder
.FindSourceDefinitionAsync(member, workspace.CurrentSolution)
221
Dim mappedMember = Await
SymbolFinder
.FindSourceDefinitionAsync(member, workspace.CurrentSolution)
259
Dim mappedMember = Await
SymbolFinder
.FindSourceDefinitionAsync(retargetedClass, workspace.CurrentSolution)
Microsoft.CodeAnalysis.Features (50)
ChangeSignature\AbstractChangeSignatureService.cs (1)
110
symbol =
SymbolFinder
.FindSourceDefinition(symbol, document.Project.Solution, cancellationToken) ?? symbol;
ChangeSignature\DelegateInvokeMethodReferenceFinder.cs (1)
112
convertedType =
SymbolFinder
.FindSourceDefinition(convertedType, state.Solution, cancellationToken) ?? convertedType;
CodeLens\CodeLensReferencesService.cs (1)
65
await
SymbolFinder
.FindReferencesAsync(
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (1)
552
await
SymbolFinder
.FindReferencesAsync(
Completion\Providers\ImportCompletionProvider\ExtensionMethodImportCompletionHelper.SymbolComputer.cs (2)
251
var declaredReceiverTypeInOriginatingCompilation =
SymbolFinder
.FindSimilarSymbols(declaredReceiverType, _originatingSemanticModel.Compilation, cancellationToken).FirstOrDefault();
275
foreach (var methodInOriginatingCompilation in methodSymbols.Select(s =>
SymbolFinder
.FindSimilarSymbols(s, _originatingSemanticModel.Compilation).FirstOrDefault()).WhereNotNull())
DocumentHighlighting\AbstractDocumentHighlightsService.cs (2)
75
var symbol = await
SymbolFinder
.FindSymbolAtPositionAsync(
125
await
SymbolFinder
.FindReferencesInDocumentsInCurrentProcessAsync(
FindUsages\AbstractFindUsagesService_FindImplementations.cs (5)
101
var linkedSymbols = await
SymbolFinder
.FindLinkedSymbolsAsync(
174
var implementations = await
SymbolFinder
.FindImplementationsAsync(
190
var overrides = await
SymbolFinder
.FindOverridesAsync(
200
return ImmutableArray<ISymbol>.CastUp(await
SymbolFinder
.FindDerivedClassesArrayAsync(
205
return await
SymbolFinder
.FindOverridesArrayAsync(
FindUsages\AbstractFindUsagesService_FindReferences.cs (2)
166
return
SymbolFinder
.FindReferencesAsync(
238
await
SymbolFinder
.FindLiteralReferencesAsync(
FindUsages\FindUsagesHelpers.cs (1)
36
var symbol = await
SymbolFinder
.FindSymbolAtPositionAsync(document, position, cancellationToken: cancellationToken).ConfigureAwait(false);
GenerateType\AbstractGenerateTypeService.State.cs (1)
295
var symbol =
SymbolFinder
.FindSourceDefinition(TypeToGenerateInOpt, document.Project.Solution, cancellationToken);
GoToBase\AbstractGoToBaseService.cs (1)
64
var sourceDefinition =
SymbolFinder
.FindSourceDefinition(
GoToDefinition\AbstractGoToDefinitionSymbolService.cs (1)
28
var semanticInfo = await
SymbolFinder
.GetSemanticInfoAtPositionAsync(semanticModel, position, services, cancellationToken).ConfigureAwait(false);
GoToDefinition\GoToDefinitionFeatureHelpers.cs (1)
43
var definition =
SymbolFinder
.FindSourceDefinition(symbol, solution, cancellationToken);
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (7)
372
var allOverridingSymbols = await
SymbolFinder
.FindOverridesArrayAsync(memberSymbol, solution, cancellationToken: cancellationToken).ConfigureAwait(false);
554
var symbolInSource =
SymbolFinder
.FindSourceDefinition(targetSymbol, solution, cancellationToken);
626
var implementationSymbols = await
SymbolFinder
.FindMemberImplementationsArrayAsync(
639
builder.AddRange(await
SymbolFinder
.FindOverridesArrayAsync(implementationSymbol, solution, cancellationToken: cancellationToken).ConfigureAwait(false));
677
var allDerivedInterfaces = await
SymbolFinder
.FindDerivedInterfacesArrayAsync(
682
var allImplementations = await
SymbolFinder
.FindImplementationsArrayAsync(
691
return await
SymbolFinder
.FindDerivedClassesArrayAsync(
InitializeParameter\AbstractInitializeMemberFromParameterCodeRefactoringProviderMemberCreation.cs (2)
449
var finalFieldOrProperty =
SymbolFinder
.FindSimilarSymbols(currentFieldOrProperty, compilation, cancellationToken).FirstOrDefault();
528
var currentParameter =
SymbolFinder
.FindSimilarSymbols(parameter, compilation, cancellationToken).FirstOrDefault();
InlineMethod\AbstractInlineMethodRefactoringProvider.InlineContext.cs (1)
296
var allReferences = await
SymbolFinder
InlineMethod\AbstractInlineMethodRefactoringProvider.MethodParametersInfo.cs (1)
441
var allReferences = await
SymbolFinder
InlineTemporary\AbstractInlineTemporaryCodeRefactoringProvider.cs (1)
37
var findReferencesResult = await
SymbolFinder
.FindReferencesAsync(
IntroduceParameter\AbstractIntroduceParameterCodeRefactoringProvider.cs (1)
275
await
SymbolFinder
.FindReferencesAsync(
MoveStaticMembers\MoveStaticMembersWithDialogCodeAction.cs (1)
362
: await
SymbolFinder
.FindReferencesAsync(resolvedMember, solution, cancellationToken).ConfigureAwait(false);
Navigation\AbstractNavigableItemsService.cs (2)
51
symbol =
SymbolFinder
.FindSourceDefinition(symbol, solution, cancellationToken) ?? symbol;
64
typeSymbol =
SymbolFinder
.FindSourceDefinition(typeSymbol, solution, cancellationToken) ?? typeSymbol;
RemoveUnusedVariable\AbstractRemoveUnusedVariableCodeFixProvider.cs (1)
89
var referencedSymbols = await
SymbolFinder
.FindReferencesAsync(symbol, document.Project.Solution, documentsToBeSearched, cancellationToken).ConfigureAwait(false);
Rename\SymbolicRenameInfo.cs (1)
174
var originalSymbol = await
SymbolFinder
.FindSymbolAtPositionAsync(
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (2)
163
var getMethodReferences = await
SymbolFinder
.FindReferencesAsync(
167
: await
SymbolFinder
.FindReferencesAsync(
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (1)
85
var propertyReferences = await
SymbolFinder
.FindReferencesAsync(propertySymbol, originalSolution, cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (1)
218
var referencedSymbols = await
SymbolFinder
.FindReferencesAsync(
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\TypeParameterSubstitution.cs (4)
117
var similarTypes =
SymbolFinder
.FindSimilarSymbols(substitutedType, _compilation, _cancellationToken);
121
similarTypes =
SymbolFinder
.FindSimilarSymbols(commonType, _compilation, _cancellationToken);
131
var derivedClasses = await
SymbolFinder
.FindDerivedClassesAsync(
134
var implementedTypes = await
SymbolFinder
.FindImplementationsAsync(
src\Analyzers\Core\CodeFixes\MakeMethodSynchronous\AbstractMakeMethodSynchronousCodeFixProvider.cs (1)
137
var references = await
SymbolFinder
.FindRenamableReferencesAsync(
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (1)
924
var referencedSymbols = await
SymbolFinder
.FindReferencesAsync(local, document.Project.Solution, cancellationToken).ConfigureAwait(false);
ValueTracking\ValueTracker.cs (2)
167
await
SymbolFinder
.FindReferencesAsync(
181
await
SymbolFinder
.FindReferencesAsync(
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Handler\Definitions\AbstractGoToDefinitionHandler.cs (1)
79
var symbol = await
SymbolFinder
.FindSymbolAtPositionAsync(semanticModel, position, document.Project.Solution.Services, includeType: true, cancellationToken).ConfigureAwait(false);
Handler\References\FindUsagesLSPContext.cs (1)
254
var symbol = await
SymbolFinder
.FindSymbolAtPositionAsync(_document, _position, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Services\SymbolFinder\RemoteSymbolFinderService.cs (2)
66
await
SymbolFinder
.FindReferencesInCurrentProcessAsync(
79
await
SymbolFinder
.FindLiteralReferencesInCurrentProcessAsync(
Microsoft.CodeAnalysis.VisualBasic.Features (6)
ChangeSignature\VisualBasicChangeSignatureService.vb (2)
705
convertedType = If(
SymbolFinder
.FindSourceDefinition(convertedType, document.Project.Solution, cancellationToken), convertedType)
724
nodeType = If(
SymbolFinder
.FindSourceDefinition(nodeType, document.Project.Solution, cancellationToken), nodeType)
CodeFixes\GenerateEvent\GenerateEventCodeFixProvider.vb (4)
108
Dim sourceDefinition =
SymbolFinder
.FindSourceDefinition(targetType, document.Project.Solution, cancellationToken)
259
Dim targetType = TryCast(
SymbolFinder
.FindSourceDefinition(semanticModel.GetSymbolInfo(node.Left, cancellationToken).Symbol, document.Project.Solution, cancellationToken), INamedTypeSymbol)
350
targetType = TryCast(
SymbolFinder
.FindSourceDefinition(withEventsProperty.Type, document.Project.Solution, cancellationToken), INamedTypeSymbol)
354
targetType = TryCast(
SymbolFinder
.FindSourceDefinition(targetType, document.Project.Solution, cancellationToken), INamedTypeSymbol)
Microsoft.CodeAnalysis.Workspaces (26)
FindSymbols\Declarations\DeclarationFinder_SourceDeclarations.cs (2)
242
query =>
SymbolFinder
.FindSourceDeclarationsWithCustomQueryAsync(solution, query, criteria, cancellationToken));
250
query =>
SymbolFinder
.FindSourceDeclarationsWithCustomQueryAsync(project, query, criteria, cancellationToken));
FindSymbols\FindReferences\BaseTypeFinder.cs (1)
46
if (
SymbolFinder
.IsOverride(solution, symbol, member, allowLooseMatch))
FindSymbols\FindReferences\Finders\AbstractReferenceFinder.cs (2)
63
if (
SymbolFinder
.OriginalSymbolsMatch(state.Solution, searchSymbol, symbolInfo.Symbol))
68
if (
SymbolFinder
.OriginalSymbolsMatch(state.Solution, searchSymbol, candidate))
FindSymbols\FindReferences\Finders\PreprocessingSymbolReferenceFinder.cs (1)
54
var matched =
SymbolFinder
.OriginalSymbolsMatch(state.Solution, symbol, targetSymbol);
FindSymbols\FindReferences\FindReferencesSearchEngine.cs (1)
187
var linkedSymbols = await
SymbolFinder
.FindLinkedSymbolsAsync(symbol, _solution, cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\FindReferencesSearchEngine.SymbolSet.cs (5)
136
var sourceSymbol =
SymbolFinder
.FindSourceDefinition(searchSymbol, solution, cancellationToken);
218
foreach (var linked in await
SymbolFinder
.FindLinkedSymbolsAsync(symbol, solution, cancellationToken).ConfigureAwait(false))
251
var implementations = await
SymbolFinder
.FindMemberImplementationsArrayAsync(
258
var overrides = await
SymbolFinder
.FindOverridesArrayAsync(
288
var matches = await
SymbolFinder
.FindImplementedInterfaceMembersArrayAsync(
Rename\ConflictEngine\ConflictResolver.cs (2)
363
overriddenSymbol =
SymbolFinder
.FindSourceDefinition(overriddenSymbol, solution, cancellationToken);
405
var originalsourcesymbol =
SymbolFinder
.FindSourceDefinition(symbol, solution, cancellationToken);
Rename\ConflictEngine\ConflictResolver.Session.cs (2)
607
var overridingSymbol = await
SymbolFinder
.FindSymbolAtPositionAsync(solution.GetRequiredDocument(newLocation.SourceTree), newLocation.SourceSpan.Start, cancellationToken: _cancellationToken).ConfigureAwait(false);
689
var newSymbol = await
SymbolFinder
.FindSymbolAtPositionAsync(document, start, cancellationToken: _cancellationToken).ConfigureAwait(false);
Rename\RenameUtilities.cs (4)
218
var originalSourceSymbol =
SymbolFinder
.FindSourceDefinition(
228
var methodImplementors = await
SymbolFinder
.FindImplementationsAsync(
302
var symbol = await
SymbolFinder
.FindSymbolAtPositionAsync(document, position, cancellationToken: cancellationToken).ConfigureAwait(false);
322
var foundSymbol =
SymbolFinder
.FindSourceDefinition(
Rename\SymbolicRenameLocations.cs (1)
131
var referenceSymbols = await
SymbolFinder
.FindRenamableReferencesAsync(
Shared\Extensions\ITypeSymbolExtensions.cs (1)
98
typeSymbol =>
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)
91
var 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)
95
var declarations = await
SymbolFinder
.FindDeclarationsAsync(project, searchTerm, ignoreCase).ConfigureAwait(false);
104
var declarations = await
SymbolFinder
.FindDeclarationsAsync(null, "Test", true);
114
var declarations = await
SymbolFinder
.FindDeclarationsAsync(project, null, true);
124
var declarations = await
SymbolFinder
.FindDeclarationsAsync(project, "Test", true, SymbolFilter.All, new CancellationToken(true));
144
var csharpResult = await
SymbolFinder
.FindDeclarationsAsync(solution.GetProject(csharpId), "Console", ignoreCase: false);
147
var vbResult = await
SymbolFinder
.FindDeclarationsAsync(solution.GetProject(vbId), "Console", ignoreCase: true);
184
var actualSymbol = (await
SymbolFinder
.FindDeclarationsAsync(solution.GetProject(submission1Id), "Inner", ignoreCase: false)).SingleOrDefault();
261
var declarations = await
SymbolFinder
.FindSourceDeclarationsAsync(project, searchTerm, ignoreCase).ConfigureAwait(false);
270
var declarations = await
SymbolFinder
.FindSourceDeclarationsAsync((Project)null, "Test", true);
280
var declarations = await
SymbolFinder
.FindSourceDeclarationsAsync(project, null, true);
290
var declarations = await
SymbolFinder
.FindSourceDeclarationsAsync(project, "Test", true, SymbolFilter.All, new CancellationToken(true));
366
var declarations = await
SymbolFinder
.FindSourceDeclarationsAsync(solution, searchTerm, ignoreCase).ConfigureAwait(false);
375
var declarations = await
SymbolFinder
.FindSourceDeclarationsAsync((Solution)null, "Test", true);
385
var declarations = await
SymbolFinder
.FindSourceDeclarationsAsync(solution, null, true);
395
var declarations = await
SymbolFinder
.FindSourceDeclarationsAsync(solution, "Test", true, SymbolFilter.All, new CancellationToken(true));
417
var declarations = await
SymbolFinder
.FindSourceDeclarationsAsync(project, str => str.Contains("Test")).ConfigureAwait(false);
425
var declarations = await
SymbolFinder
.FindSourceDeclarationsAsync(project, str => true).ConfigureAwait(false);
433
var declarations = await
SymbolFinder
.FindSourceDeclarationsAsync(project, str => false).ConfigureAwait(false);
442
var declarations = await
SymbolFinder
.FindSourceDeclarationsAsync((Project)null, str => str.Contains("Test"));
452
var declarations = await
SymbolFinder
.FindSourceDeclarationsAsync(project, null);
462
var declarations = await
SymbolFinder
.FindSourceDeclarationsAsync(project, str => str.Contains("Test"), SymbolFilter.All, new CancellationToken(true));
484
var declarations = await
SymbolFinder
.FindSourceDeclarationsAsync(solution, str => str.Contains("Test")).ConfigureAwait(false);
492
var declarations = await
SymbolFinder
.FindSourceDeclarationsAsync(solution, str => true).ConfigureAwait(false);
500
var declarations = await
SymbolFinder
.FindSourceDeclarationsAsync(solution, str => false).ConfigureAwait(false);
509
await
SymbolFinder
.FindSourceDeclarationsAsync((Solution)null, str => str.Contains("Test"));
519
await
SymbolFinder
.FindSourceDeclarationsAsync(solution, null);
529
await
SymbolFinder
.FindSourceDeclarationsAsync(solution, str => str.Contains("Test"), SymbolFilter.All, new CancellationToken(true));
551
var declarations = await
SymbolFinder
.FindSourceDeclarationsWithPatternAsync(project, "test").ConfigureAwait(false);
564
var declarations = await
SymbolFinder
.FindSourceDeclarationsWithPatternAsync(project, pattern).ConfigureAwait(false);
573
var declarations = await
SymbolFinder
.FindSourceDeclarationsWithPatternAsync((Project)null, "test");
583
var declarations = await
SymbolFinder
.FindSourceDeclarationsWithPatternAsync(project, null);
593
var declarations = await
SymbolFinder
.FindSourceDeclarationsWithPatternAsync(project, "test", SymbolFilter.All, new CancellationToken(true));
615
var declarations = await
SymbolFinder
.FindSourceDeclarationsWithPatternAsync(solution, "test").ConfigureAwait(false);
628
var declarations = await
SymbolFinder
.FindSourceDeclarationsWithPatternAsync(solution, pattern).ConfigureAwait(false);
637
await
SymbolFinder
.FindSourceDeclarationsWithPatternAsync((Solution)null, "test");
647
await
SymbolFinder
.FindSourceDeclarationsWithPatternAsync(solution, null);
657
await
SymbolFinder
.FindSourceDeclarationsWithPatternAsync(solution, "test", SymbolFilter.All, new CancellationToken(true));
707
var foundDeclarations = await
SymbolFinder
.FindDeclarationsAsync(project, name: "MyEvent", ignoreCase: true);
FindReferencesTests.cs (18)
106
var result = (await
SymbolFinder
.FindReferencesAsync(symbol, solution)).ToList();
131
var result = (await
SymbolFinder
.FindReferencesAsync(symbol.Type, solution)).ToList();
188
var references = await
SymbolFinder
.FindReferencesAsync(symbol, prj.Solution);
193
references = await
SymbolFinder
.FindReferencesAsync(symbol, prj.Solution);
224
var references = await
SymbolFinder
.FindReferencesAsync(symbol, prj.Solution);
292
var references = await
SymbolFinder
.FindReferencesAsync(symbol, prj.Solution);
297
references = await
SymbolFinder
.FindReferencesAsync(symbol, prj.Solution);
329
var result = (await
SymbolFinder
.FindReferencesAsync(boo, solution)).ToList();
340
result = (await
SymbolFinder
.FindReferencesAsync(boo, solution)).ToList();
351
result = (await
SymbolFinder
.FindReferencesAsync(boo, solution)).ToList();
393
var references = (await
SymbolFinder
.FindReferencesAsync(interfaceMethod, solution)).ToList();
439
var references = await
SymbolFinder
.FindReferencesAsync(nameProperty, solution);
488
var refsFromVirtual = await
SymbolFinder
.FindReferencesAsync(baseVirtualMethodSymbol, solution);
492
var refsFromOverride = await
SymbolFinder
.FindReferencesAsync(overriddenMethodSymbol, solution);
517
var result = (await
SymbolFinder
.FindReferencesAsync(constraint, solution)).Single();
544
var result = (await
SymbolFinder
.FindReferencesAsync(symbol, solution)).ToList();
577
var result = (await
SymbolFinder
.FindReferencesAsync(symbol, solution)).ToList();
619
var result = (await
SymbolFinder
.FindReferencesAsync(symbol, solution)).ToList();
Microsoft.Interop.LibraryImportGenerator (1)
Analyzers\ConvertToLibraryImportFixer.cs (1)
274
IEnumerable<ReferencedSymbol>? referencedSymbols = await
SymbolFinder
.FindReferencesAsync(
Microsoft.VisualStudio.LanguageServices (20)
CallHierarchy\CallHierarchyCommandHandler.cs (1)
89
var symbolUnderCaret = await
SymbolFinder
.FindSymbolAtPositionAsync(
CallHierarchy\CallHierarchyProvider.cs (2)
119
var @overrides = await
SymbolFinder
.FindOverridesAsync(symbol, project.Solution, cancellationToken: cancellationToken).ConfigureAwait(false);
130
var implementedInterfaceMembers = await
SymbolFinder
.FindImplementedInterfaceMembersAsync(symbol, project.Solution, cancellationToken: cancellationToken).ConfigureAwait(false);
CallHierarchy\Finders\BaseMemberFinder.cs (1)
31
var calls = await
SymbolFinder
.FindCallersAsync(symbol, project.Solution, documents, cancellationToken).ConfigureAwait(false);
CallHierarchy\Finders\CallToOverrideFinder.cs (2)
27
var overrides = await
SymbolFinder
.FindOverridesAsync(symbol, project.Solution, cancellationToken: cancellationToken).ConfigureAwait(false);
32
var calls = await
SymbolFinder
.FindCallersAsync(@override, project.Solution, documents, cancellationToken).ConfigureAwait(false);
CallHierarchy\Finders\FieldReferenceFinder.cs (1)
34
var callers = await
SymbolFinder
.FindCallersAsync(symbol, project.Solution, documents, cancellationToken).ConfigureAwait(false);
CallHierarchy\Finders\ImplementerFinder.cs (1)
40
var implementations = await
SymbolFinder
.FindImplementationsAsync(symbol, project.Solution, cancellationToken: cancellationToken).ConfigureAwait(false);
CallHierarchy\Finders\InterfaceImplementationCallFinder.cs (1)
34
var calls = await
SymbolFinder
.FindCallersAsync(symbol, project.Solution, documents, cancellationToken).ConfigureAwait(false);
CallHierarchy\Finders\MethodCallFinder.cs (1)
37
var callers = await
SymbolFinder
.FindCallersAsync(symbol, project.Solution, documents, cancellationToken).ConfigureAwait(false);
CallHierarchy\Finders\OverridingMemberFinder.cs (1)
36
var overrides = await
SymbolFinder
.FindOverridesAsync(symbol, project.Solution, cancellationToken: cancellationToken).ConfigureAwait(false);
Progression\GraphBuilder.cs (1)
213
var newSymbol =
SymbolFinder
.FindSourceDefinition(symbol, contextProject.Solution, cancellationToken);
Progression\GraphQueries\ImplementedByGraphQuery.cs (1)
33
var implementations = await
SymbolFinder
.FindImplementationsAsync(symbol, solution, cancellationToken: cancellationToken).ConfigureAwait(false);
Progression\GraphQueries\ImplementsGraphQuery.cs (1)
39
var implements = await
SymbolFinder
.FindImplementedInterfaceMembersArrayAsync(symbol, solution, cancellationToken: cancellationToken).ConfigureAwait(false);
Progression\GraphQueries\InheritedByGraphQuery.cs (3)
31
var derivedTypes = await
SymbolFinder
.FindDerivedClassesArrayAsync(
42
var implementingClassesAndStructs = await
SymbolFinder
.FindImplementationsArrayAsync(
44
var derivedInterfaces = await
SymbolFinder
.FindDerivedInterfacesArrayAsync(
Progression\GraphQueries\IsCalledByGraphQuery.cs (1)
31
var callers = await
SymbolFinder
.FindCallersAsync(symbol, solution, cancellationToken).ConfigureAwait(false);
Progression\GraphQueries\IsUsedByGraphQuery.cs (1)
27
var references = await
SymbolFinder
.FindReferencesAsync(symbol, solution, cancellationToken).ConfigureAwait(false);
Progression\GraphQueries\OverridesGraphQuery.cs (1)
31
var overrides = await
SymbolFinder
.FindOverridesAsync(symbol, solution, cancellationToken: cancellationToken).ConfigureAwait(false);
Microsoft.VisualStudio.LanguageServices.UnitTests (4)
Progression\ProgressionTestState.vb (1)
80
Return
SymbolFinder
.FindSymbolAtPositionAsync(document, hostDocument.CursorPosition.Value)
RQName\RQNameTests.vb (1)
249
Dim symbol = Await
SymbolFinder
.FindSymbolAtPositionAsync(Await workspaceDoc.GetSemanticModelAsync(), token.SpanStart, workspace).ConfigureAwait(False)
VsNavInfo\VsNavInfoTests.vb (2)
832
Dim symbol = Await
SymbolFinder
.FindSymbolAtPositionAsync(semanticModel, position, workspace).ConfigureAwait(False)
870
Dim symbol = Await
SymbolFinder
.FindSymbolAtPositionAsync(semanticModel, position, workspace).ConfigureAwait(False)