ReferenceValidationContext Class
The context object passed to the single parameter of validators added using ValidateReferences<TValidator>(Func<TDeclaration, TValidator>).
Namespace: Metalama.Framework.Validation
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public abstract class ReferenceValidationContext
Properties
Name | Description |
---|---|
AspectState | Gets the optional opaque object defined by the aspect for the specific target declaration using the AspectState property of the IAspectBuilder interface. |
Destination | Gets information about the referenced declaration. |
Details | Gets the list of individual references that are being collectively analyzed and grouped by granularity. |
DiagnosticLocation | |
Diagnostics | Gets an object that allows to report diagnostics to all reference instances at one. |
Origin | Gets information about the referencing declaration, i.e. the declaration containing the reference. |
ReferenceKinds | |
ReferencedDeclaration | |
ReferencedType | |
ReferencingDeclaration | |
ReferencingType | |
Source | |
Syntax |
Methods
Name | Description |
---|---|
GetReferenceEnd(ReferenceEndRole) | Gets the ReferenceEnd according to a ReferenceEndRole. |