SymbolFinder.FindDerivedClassesAsync Method

Definition

Overloads

FindDerivedClassesAsync(INamedTypeSymbol, Solution, IImmutableSet<Project>, CancellationToken)

Finds all the derived classes of the given type. Implementations of an interface are not considered "derived", but can be found with FindImplementationsAsync(ISymbol, Solution, IImmutableSet<Project>, CancellationToken).

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

Finds the derived classes of the given type. Implementations of an interface are not considered "derived", but can be found with FindImplementationsAsync(ISymbol, Solution, IImmutableSet<Project>, CancellationToken).

FindDerivedClassesAsync(INamedTypeSymbol, Solution, IImmutableSet<Project>, CancellationToken)

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

Finds all the derived classes of the given type. Implementations of an interface are not considered "derived", but can be found with FindImplementationsAsync(ISymbol, Solution, IImmutableSet<Project>, CancellationToken).

public static System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.INamedTypeSymbol>> FindDerivedClassesAsync (Microsoft.CodeAnalysis.INamedTypeSymbol type, Microsoft.CodeAnalysis.Solution solution, System.Collections.Immutable.IImmutableSet<Microsoft.CodeAnalysis.Project> projects = default, System.Threading.CancellationToken cancellationToken = default);
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public static System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.INamedTypeSymbol>> FindDerivedClassesAsync (Microsoft.CodeAnalysis.INamedTypeSymbol type, Microsoft.CodeAnalysis.Solution solution, System.Collections.Immutable.IImmutableSet<Microsoft.CodeAnalysis.Project> projects, System.Threading.CancellationToken cancellationToken);
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public static System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.INamedTypeSymbol>> FindDerivedClassesAsync (Microsoft.CodeAnalysis.INamedTypeSymbol type, Microsoft.CodeAnalysis.Solution solution, System.Collections.Immutable.IImmutableSet<Microsoft.CodeAnalysis.Project>? projects, System.Threading.CancellationToken cancellationToken);
static member FindDerivedClassesAsync : Microsoft.CodeAnalysis.INamedTypeSymbol * Microsoft.CodeAnalysis.Solution * System.Collections.Immutable.IImmutableSet<Microsoft.CodeAnalysis.Project> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.CodeAnalysis.INamedTypeSymbol>>
[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]
static member FindDerivedClassesAsync : Microsoft.CodeAnalysis.INamedTypeSymbol * Microsoft.CodeAnalysis.Solution * System.Collections.Immutable.IImmutableSet<Microsoft.CodeAnalysis.Project> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.CodeAnalysis.INamedTypeSymbol>>
Public Shared Function FindDerivedClassesAsync (type As INamedTypeSymbol, solution As Solution, Optional projects As IImmutableSet(Of Project) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IEnumerable(Of INamedTypeSymbol))
Public Shared Function FindDerivedClassesAsync (type As INamedTypeSymbol, solution As Solution, projects As IImmutableSet(Of Project), cancellationToken As CancellationToken) As Task(Of IEnumerable(Of INamedTypeSymbol))

Parameters

type
INamedTypeSymbol

The symbol to find derived types of.

solution
Solution

The solution to search in.

projects
IImmutableSet<Project>

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

cancellationToken
CancellationToken

Returns

The derived types of the symbol. The symbol passed in is not included in this list.

Attributes

Applies to

FindDerivedClassesAsync(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 derived classes of the given type. Implementations of an interface are not considered "derived", but can be found with FindImplementationsAsync(ISymbol, Solution, IImmutableSet<Project>, CancellationToken).

public static System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.INamedTypeSymbol>> FindDerivedClassesAsync (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>> FindDerivedClassesAsync (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 FindDerivedClassesAsync : 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 FindDerivedClassesAsync (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 classes, or should continue past that.

projects
IImmutableSet<Project>

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

cancellationToken
CancellationToken

Returns

The derived types of the symbol. The symbol passed in is not included in this list.

Applies to