Open sandboxFocus

Struct DeclarationValidationContext

The context object passed to the single parameter of validators added using Validate(ValidatorDelegate<DeclarationValidationContext>).

Namespace: Metalama.Framework.Validation
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public readonly struct DeclarationValidationContext

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.

Declaration

Gets the declaration that should be validated.

Diagnostics

Gets a service that allows to report or suppress diagnostics.

See Also