Provides methods for querying references between declarations in a compilation. This interface enables static code analysis by exposing both inbound references (declarations that reference a target) and outbound references (declarations that a source declaration references).
Namespace: Metalama.Framework.Introspection
Assembly: Metalama.Framework.Introspection.dll
Syntax
public interface IIntrospectionReferenceGraphMethods
| Name | Description |
|---|---|
| GetInboundReferences(IDeclaration, IntrospectionChildKinds, CancellationToken) | Gets all inbound references to a specified declaration, i.e., all code locations that reference the destination. |
| GetOutboundReferences(IDeclaration, CancellationToken) | Gets all outbound references from a specified declaration, i.e., all declarations that the origin references. |