Provides detailed information about a specific occurrence of a reference between declarations, including the exact source location and the kind of reference.
Implements
Namespace: Metalama.Framework.Introspection
Assembly: Metalama.Framework.Introspection.dll
Syntax
public readonly struct IntrospectionReferenceDetail : IDiagnosticLocationRemarks
A single IIntrospectionReference can have multiple details when the same origin declaration references the same destination declaration in multiple locations or in different ways. Access the details through the Details property.
To navigate to reference details from a declaration, use the extension methods
Metalama.Framework.Workspaces.DeclarationExtensions.GetInboundReferences or Metalama.Framework.Workspaces.DeclarationExtensions.GetOutboundReferences
to obtain IIntrospectionReference instances, then access their Details property.
Properties
| Name | Description |
|---|---|
| Kinds | Gets the kinds of reference. |
| Reference | Gets the reference. |
| Source | Gets the source location of the reference. |