Interface ILetCoercionSemanticContextBuilder
Append-only interface that builds a ConversionOperationSemanticContext containing ConversionSemanticFlags and VBErrorInfo, but no diagnostics.
public interface ILetCoercionSemanticContextBuilder : ISemanticContextContributor<ConversionOperationSemanticContext, ConversionSemanticFlags>, ISemanticFlagsAccumulator<ConversionSemanticFlags>
- Inherited Members
Remarks
🧩 This interface does not expose the builder's Build method but still allows for pluggable contributions.
Methods
AddFlags(ConversionSemanticFlags)
Adds the specified semantic flag(s) to the context.
ILetCoercionSemanticContextBuilder AddFlags(ConversionSemanticFlags flags)
Parameters
flagsConversionSemanticFlagsThe semantic flag values.
Returns
AddOnError<TError>(TError?)
Adds the specified error to the semantic context if it isn't null.
ILetCoercionSemanticContextBuilder AddOnError<TError>(TError? error) where TError : VBErrorInfo
Parameters
errorTErrorHolds information about an error.
Returns
Type Parameters
TErrorThe specific type of VBErrorInfo encapsulating the error metadata.