Interface ISemanticContextFlagsBuilder<TContext, TFlags>
Builds a SemanticContext<TFlags> containing semantic flags but no diagnostics.
public interface ISemanticContextFlagsBuilder<TContext, TFlags> : ISemanticFlagsAccumulator<TFlags> where TContext : SemanticContext<TFlags>, new() where TFlags : struct, Enum
Type Parameters
TContextThe type of
SemanticContextto build.TFlagsThe type of semantic flags being accumulated.
- Inherited Members
Methods
AddOnError<TError>(TError)
Adds the specified error to the semantic context if it isn't null.
ISemanticContextFlagsBuilder<TContext, TFlags> AddOnError<TError>(TError error) where TError : VBErrorInfo
Parameters
errorTErrorHolds information about an error.
Returns
- ISemanticContextFlagsBuilder<TContext, TFlags>
Type Parameters
TErrorThe specific type of VBErrorInfo encapsulating the error metadata.
Build()
Builds and returns an immutable SemanticContext from the current builder state.
TContext Build()
Returns
- TContext