Interface ISemanticContextContributor<TContext, TFlags>
A service that can contribute all elements of a semantic context, but not build it.
public interface ISemanticContextContributor<TContext, TFlags> : ISemanticFlagsAccumulator<TFlags> where TContext : SemanticContext<TFlags>, new() where TFlags : struct, Enum
Type Parameters
TContextThe specific type of
SemanticContextto build.TFlagsThe type of semantic flags being accumulated.
- Inherited Members
Methods
AddFlags(TFlags)
Adds the specified semantic flag(s) to the context.
ISemanticContextContributor<TContext, TFlags> AddFlags(TFlags flags)
Parameters
flagsTFlagsThe semantic flag values.
Returns
- ISemanticContextContributor<TContext, TFlags>
AddOnError<TError>(TError?)
Adds the specified error to the semantic context if it isn't null.
ISemanticContextContributor<TContext, TFlags> AddOnError<TError>(TError? error) where TError : VBErrorInfo
Parameters
errorTErrorHolds information about an error.
Returns
- ISemanticContextContributor<TContext, TFlags>
Type Parameters
TErrorThe specific type of VBErrorInfo encapsulating the error metadata.