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