Table of Contents

Interface ISemanticContextAccumulator<TFlags>

Namespace
RDCore.SDK.Semantics.Builders
Assembly
RDCore.SDK.dll

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

TFlags

The 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

diagnostic Diagnostic

The LSP Diagnostic to 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

applicationError VBApplicationErrorInfo

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

compileError VBCompileErrorInfo

The 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

runtimeError VBRuntimeErrorInfo

The 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

syntaxError VBSyntaxErrorInfo

The 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

errors IEnumerable<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

errors IEnumerable<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

errors IEnumerable<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

errors IEnumerable<VBSyntaxErrorInfo>

The VBSyntaxErrorInfo (token static semantics) compile-time error metadata.

Returns

ISemanticContextAccumulator<TFlags>