Share via


SymbolFinder.FindImplementationsAsync Method

Definition

Overloads

FindImplementationsAsync(ISymbol, Solution, IImmutableSet<Project>, CancellationToken)

Finds all the accessible symbols that implement an interface or interface member. For an INamedTypeSymbol this will be both immediate and transitive implementations.

FindImplementationsAsync(INamedTypeSymbol, Solution, Boolean, IImmutableSet<Project>, CancellationToken)

Finds the accessible class or struct types that implement the given interface.

FindImplementationsAsync(ISymbol, Solution, IImmutableSet<Project>, CancellationToken)

Source:
SymbolFinder.cs
Source:
SymbolFinder.cs
Source:
SymbolFinder.cs
Source:
SymbolFinder.cs
Source:
SymbolFinder.cs
Source:
SymbolFinder.cs
Source:
SymbolFinder.cs
Source:
SymbolFinder.cs
Source:
SymbolFinder.cs
Source:
SymbolFinder.cs
Source:
SymbolFinder.cs
Source:
SymbolFinder.cs
Source:
SymbolFinder.cs
Source:
SymbolFinder.cs
Source:
SymbolFinder.cs
Source:
SymbolFinder.cs
Source:
SymbolFinder.cs
Source:
SymbolFinder.cs
Source:
SymbolFinder.cs
Source:
SymbolFinder.cs
Source:
SymbolFinder.cs
Source:
SymbolFinder.cs
Source:
SymbolFinder.cs

Finds all the accessible symbols that implement an interface or interface member. For an INamedTypeSymbol this will be both immediate and transitive implementations.

public static System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.ISymbol>> FindImplementationsAsync (Microsoft.CodeAnalysis.ISymbol symbol, Microsoft.CodeAnalysis.Solution solution, System.Collections.Immutable.IImmutableSet<Microsoft.CodeAnalysis.Project> projects = default, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.ISymbol>> FindImplementationsAsync (Microsoft.CodeAnalysis.ISymbol symbol, Microsoft.CodeAnalysis.Solution solution, System.Collections.Immutable.IImmutableSet<Microsoft.CodeAnalysis.Project>? projects = default, System.Threading.CancellationToken cancellationToken = default);
static member FindImplementationsAsync : Microsoft.CodeAnalysis.ISymbol * Microsoft.CodeAnalysis.Solution * System.Collections.Immutable.IImmutableSet<Microsoft.CodeAnalysis.Project> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.CodeAnalysis.ISymbol>>
Public Shared Function FindImplementationsAsync (symbol As ISymbol, solution As Solution, Optional projects As IImmutableSet(Of Project) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IEnumerable(Of ISymbol))

Parameters

symbol
ISymbol
solution
Solution
cancellationToken
CancellationToken

Returns

Applies to

FindImplementationsAsync(INamedTypeSymbol, Solution, Boolean, IImmutableSet<Project>, CancellationToken)

Source:
SymbolFinder.cs
Source:
SymbolFinder.cs
Source:
SymbolFinder.cs
Source:
SymbolFinder.cs
Source:
SymbolFinder.cs
Source:
SymbolFinder.cs
Source:
SymbolFinder.cs
Source:
SymbolFinder.cs
Source:
SymbolFinder.cs
Source:
SymbolFinder.cs
Source:
SymbolFinder.cs
Source:
SymbolFinder.cs
Source:
SymbolFinder.cs
Source:
SymbolFinder.cs
Source:
SymbolFinder.cs

Finds the accessible class or struct types that implement the given interface.

public static System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.INamedTypeSymbol>> FindImplementationsAsync (Microsoft.CodeAnalysis.INamedTypeSymbol type, Microsoft.CodeAnalysis.Solution solution, bool transitive = true, System.Collections.Immutable.IImmutableSet<Microsoft.CodeAnalysis.Project> projects = default, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.INamedTypeSymbol>> FindImplementationsAsync (Microsoft.CodeAnalysis.INamedTypeSymbol type, Microsoft.CodeAnalysis.Solution solution, bool transitive = true, System.Collections.Immutable.IImmutableSet<Microsoft.CodeAnalysis.Project>? projects = default, System.Threading.CancellationToken cancellationToken = default);
static member FindImplementationsAsync : Microsoft.CodeAnalysis.INamedTypeSymbol * Microsoft.CodeAnalysis.Solution * bool * System.Collections.Immutable.IImmutableSet<Microsoft.CodeAnalysis.Project> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.CodeAnalysis.INamedTypeSymbol>>
Public Shared Function FindImplementationsAsync (type As INamedTypeSymbol, solution As Solution, Optional transitive As Boolean = true, Optional projects As IImmutableSet(Of Project) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IEnumerable(Of INamedTypeSymbol))

Parameters

type
INamedTypeSymbol

The symbol to find derived types of.

solution
Solution

The solution to search in.

transitive
Boolean

If the search should stop at immediately derived interfaces, or should continue past that.

projects
IImmutableSet<Project>

The projects to search. Can be null to search the entire solution.

cancellationToken
CancellationToken

Returns

Applies to