Context for the IHierarchicalOptionsProvider.GetOptions(in OptionsProviderContext) method.
Namespace: Metalama.Framework.Options
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public readonly struct OptionsProviderContextRemarks
This context is provided when Metalama calls GetOptions(in OptionsProviderContext) on an aspect or custom attribute to retrieve the options it provides. The context gives access to the target declaration and allows reporting diagnostics if the aspect's configuration properties are invalid.
Properties
| Name | Description |
|---|---|
| Diagnostics | Gets a service allowing to report diagnostics. |
| TargetDeclaration | Gets the declaration for which options are being provided. |