Interface ISemanticContextAccumulator<TFlags>
An interface that exposes a semantic context builder's accumulator members, but specifically no method to build the context itself.
public interface ISemanticContextAccumulator<TFlags> : ISemanticFlagsAccumulator<TFlags> where TFlags : struct, Enum
Type Parameters
TFlagsThe type of semantic flags being accumulated.
- Inherited Members
Methods
AddDiagnostic(Diagnostic)
Adds the specified Diagnostic to the semantic context.
ISemanticContextAccumulator<TFlags> AddDiagnostic(Diagnostic diagnostic)
Parameters
diagnosticDiagnosticThe LSP
Diagnosticto include in the operation's semantic context.
Returns
- ISemanticContextAccumulator<TFlags>
AddDiagnosticOnError(VBApplicationErrorInfo?)
Creates and adds a new Diagnostic to the context from the specified VBApplicationErrorInfo.
ISemanticContextAccumulator<TFlags> AddDiagnosticOnError(VBApplicationErrorInfo? applicationError)
Parameters
applicationErrorVBApplicationErrorInfo
Returns
- ISemanticContextAccumulator<TFlags>
Remarks
Does nothing given a null reference.
AddDiagnosticOnError(VBCompileErrorInfo?)
Creates and adds a new Diagnostic to the context from the specified VBCompileErrorInfo.
ISemanticContextAccumulator<TFlags> AddDiagnosticOnError(VBCompileErrorInfo? compileError)
Parameters
compileErrorVBCompileErrorInfoThe
VBCompileErrorInfo(static semantics) compile-time error metadata.
Returns
- ISemanticContextAccumulator<TFlags>
Remarks
Does nothing given a null reference.
AddDiagnosticOnError(VBRuntimeErrorInfo?)
Creates and adds a new Diagnostic to the context from the specified VBRuntimeErrorInfo.
ISemanticContextAccumulator<TFlags> AddDiagnosticOnError(VBRuntimeErrorInfo? runtimeError)
Parameters
runtimeErrorVBRuntimeErrorInfoThe
VBRuntimeErrorInfo(runtime semantics) run-time error metadata.
Returns
- ISemanticContextAccumulator<TFlags>
Remarks
Does nothing given a null reference.
AddDiagnosticOnError(VBSyntaxErrorInfo?)
Creates and adds a new Diagnostic to the context from the specified VBSyntaxErrorInfo.
ISemanticContextAccumulator<TFlags> AddDiagnosticOnError(VBSyntaxErrorInfo? syntaxError)
Parameters
syntaxErrorVBSyntaxErrorInfoThe
VBSyntaxErrorInfo(static token semantics) compile-time error metadata.
Returns
- ISemanticContextAccumulator<TFlags>
Remarks
Does nothing given a null reference.
AddDiagnosticsOnError(IEnumerable<VBApplicationErrorInfo?>)
Creates and adds a new Diagnostic to the context for each supplied non-null error info.
ISemanticContextAccumulator<TFlags> AddDiagnosticsOnError(IEnumerable<VBApplicationErrorInfo?> errors)
Parameters
errorsIEnumerable<VBApplicationErrorInfo>The
VBApplicationErrorInfo(application/domain semantics) run-time error metadata.
Returns
- ISemanticContextAccumulator<TFlags>
AddDiagnosticsOnError(IEnumerable<VBCompileErrorInfo?>)
Creates and adds a new Diagnostic to the context for each supplied non-null error info.
ISemanticContextAccumulator<TFlags> AddDiagnosticsOnError(IEnumerable<VBCompileErrorInfo?> errors)
Parameters
errorsIEnumerable<VBCompileErrorInfo>The
VBCompileErrorInfo(symbol static semantics) compile-time error metadata.
Returns
- ISemanticContextAccumulator<TFlags>
AddDiagnosticsOnError(IEnumerable<VBRuntimeErrorInfo?>)
Creates and adds a new Diagnostic to the context for each supplied non-null error info.
ISemanticContextAccumulator<TFlags> AddDiagnosticsOnError(IEnumerable<VBRuntimeErrorInfo?> errors)
Parameters
errorsIEnumerable<VBRuntimeErrorInfo>The
VBRuntimeErrorInfo(symbol runtime semantics) run-time error metadata.
Returns
- ISemanticContextAccumulator<TFlags>
AddDiagnosticsOnError(IEnumerable<VBSyntaxErrorInfo?>)
Creates and adds a new Diagnostic to the context for each supplied non-null error info.
ISemanticContextAccumulator<TFlags> AddDiagnosticsOnError(IEnumerable<VBSyntaxErrorInfo?> errors)
Parameters
errorsIEnumerable<VBSyntaxErrorInfo>The
VBSyntaxErrorInfo(token static semantics) compile-time error metadata.
Returns
- ISemanticContextAccumulator<TFlags>