Share via


SymbolFinder Class

Definition

public ref class SymbolFinder abstract sealed
public static class SymbolFinder
type SymbolFinder = class
Public Class SymbolFinder
Inheritance
SymbolFinder

Methods

FindCallersAsync(ISymbol, Solution, CancellationToken)

Finds all the callers of a specified symbol.

FindCallersAsync(ISymbol, Solution, IImmutableSet<Document>, CancellationToken)

Finds all the callers of a specified symbol.

FindDeclarationsAsync(Project, String, Boolean, CancellationToken)

Find the declared symbols from either source, referenced projects or metadata assemblies with the specified name.

FindDeclarationsAsync(Project, String, Boolean, SymbolFilter, CancellationToken)

Find the declared symbols from either source, referenced projects or metadata assemblies with the specified name.

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)

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).

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

Finds the derived interfaces of the given interfaces.

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)

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

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

Find symbols for declarations that implement members of the specified interface symbol

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

Find symbols for members that override the specified member symbol.

FindReferencesAsync(ISymbol, Solution, CancellationToken)

Finds all references to a symbol throughout a solution

FindReferencesAsync(ISymbol, Solution, IFindReferencesProgress, IImmutableSet<Document>, CancellationToken)

Finds all references to a symbol throughout a solution

FindReferencesAsync(ISymbol, Solution, IImmutableSet<Document>, CancellationToken)

Finds all references to a symbol throughout a solution

FindSimilarSymbols<TSymbol>(TSymbol, Compilation, CancellationToken)

Finds symbols in the given compilation that are similar to the specified symbol.

A found symbol may be the exact same symbol instance if the compilation is the origin of the specified symbol, or it may be a different symbol instance if the compilation is not the originating compilation.

Multiple symbols may be returned if there are ambiguous matches. No symbols may be returned if the compilation does not define or have access to a similar symbol.

FindSourceDeclarationsAsync(Project, Func<String,Boolean>, CancellationToken)

Find the symbols for declarations made in source with a matching name.

FindSourceDeclarationsAsync(Project, Func<String,Boolean>, SymbolFilter, CancellationToken)

Find the symbols for declarations made in source with a matching name.

FindSourceDeclarationsAsync(Project, String, Boolean, CancellationToken)

Find the symbols for declarations made in source with the specified name.

FindSourceDeclarationsAsync(Project, String, Boolean, SymbolFilter, CancellationToken)

Find the symbols for declarations made in source with the specified name.

FindSourceDeclarationsAsync(Solution, Func<String,Boolean>, CancellationToken)

Find the symbols for declarations made in source with a matching name.

FindSourceDeclarationsAsync(Solution, Func<String,Boolean>, SymbolFilter, CancellationToken)

Find the symbols for declarations made in source with a matching name.

FindSourceDeclarationsAsync(Solution, String, Boolean, CancellationToken)

Find the symbols for declarations made in source with the specified name.

FindSourceDeclarationsAsync(Solution, String, Boolean, SymbolFilter, CancellationToken)

Find the symbols for declarations made in source with the specified name.

FindSourceDeclarationsWithPatternAsync(Project, String, CancellationToken)

Find the symbols for declarations made in source with the specified pattern. This pattern is matched using heuristics that may change from release to release. So, the set of symbols matched by a given pattern may change between releases. For example, new symbols may be matched by a pattern and/or symbols previously matched by a pattern no longer are. However, the set of symbols matched by a specific release will be consistent for a specific pattern.

FindSourceDeclarationsWithPatternAsync(Project, String, SymbolFilter, CancellationToken)

Find the symbols for declarations made in source with the specified pattern. This pattern is matched using heuristics that may change from release to release. So, the set of symbols matched by a given pattern may change between releases. For example, new symbols may be matched by a pattern and/or symbols previously matched by a pattern no longer are. However, the set of symbols matched by a specific release will be consistent for a specific pattern.

FindSourceDeclarationsWithPatternAsync(Solution, String, CancellationToken)

Find the symbols for declarations made in source with the specified pattern. This pattern is matched using heuristics that may change from release to release. So, the set of symbols matched by a given pattern may change between releases. For example, new symbols may be matched by a pattern and/or symbols previously matched by a pattern no longer are. However, the set of symbols matched by a specific release will be consistent for a specific pattern.

FindSourceDeclarationsWithPatternAsync(Solution, String, SymbolFilter, CancellationToken)

Find the symbols for declarations made in source with the specified pattern. This pattern is matched using heuristics that may change from release to release. So, the set of symbols matched by a given pattern may change between releases. For example, new symbols may be matched by a pattern and/or symbols previously matched by a pattern no longer are. However, the set of symbols matched by a specific release will be consistent for a specific pattern.

FindSourceDefinitionAsync(ISymbol, Solution, CancellationToken)

Finds the definition symbol declared in source code for a corresponding reference symbol. Returns null if no such symbol can be found in the specified solution.

FindSymbolAtPosition(SemanticModel, Int32, Workspace, CancellationToken)
Obsolete.

Obsolete. Use FindSymbolAtPositionAsync(SemanticModel, Int32, Workspace, CancellationToken).

FindSymbolAtPositionAsync(Document, Int32, CancellationToken)
FindSymbolAtPositionAsync(SemanticModel, Int32, Workspace, CancellationToken)

Finds the symbol that is associated with a position in the text of a document.

Applies to