Open sandboxFocus

Class DeclarationExtensions

Extension methods for IDeclaration that provide introspection capabilities within a workspace.

Inheritance
DeclarationExtensions
Namespace: Metalama.Framework.Workspaces
Assembly: Metalama.Framework.Workspaces.dll
Syntax
public static class DeclarationExtensions

Methods

Name Description
GetDerivedTypes(INamedType, bool)

Get all types derived from a given type within the projects loaded in the current Workspace.

GetInboundReferences(IDeclaration, IntrospectionChildKinds, CancellationToken)

Gets inbound declaration references, i.e. the list of declarations that use the given declaration, in the projects loaded in the current Workspace.

GetOutboundReferences(IDeclaration, CancellationToken)

Gets outbound declaration references, i.e. the list of declarations that the given declaration uses, in the projects loaded in the current Workspace.

See Also