Table of Contents

Class SemanticContext<TFlags>

Namespace
RDCore.SDK.Semantics.Context.Abstract
Assembly
RDCore.SDK.dll

Represents and encapsulates the immutable context of a semantic operation.

public record SemanticContext<TFlags> : IEquatable<SemanticContext<TFlags>> where TFlags : struct, Enum

Type Parameters

TFlags
Inheritance
SemanticContext<TFlags>
Implements
Derived
Inherited Members

Constructors

SemanticContext()

Creates an object that represents and encapsulates the immutable context of a semantic operation.

public SemanticContext()

SemanticContext(TFlags, ImmutableArray<VBErrorInfo>, ImmutableArray<Diagnostic>)

Creates an object that represents and encapsulates the immutable context of a semantic operation.

public SemanticContext(TFlags flags, ImmutableArray<VBErrorInfo> errors, ImmutableArray<Diagnostic> diagnostics)

Parameters

flags TFlags

The semantic flags> associated with this context.

errors ImmutableArray<VBErrorInfo>

The error info metadata associated with this context.

diagnostics ImmutableArray<Diagnostic>

The diagnostics associated with this context.

Remarks

🧩 This overload should be used in RDCore.Diagnostics or any other semantic plug-in.

Properties

Diagnostics

Gets an immutable array containing all the diagnostics in this context.

public ImmutableArray<Diagnostic> Diagnostics { get; init; }

Property Value

ImmutableArray<Diagnostic>

Errors

public ImmutableArray<VBErrorInfo> Errors { get; init; }

Property Value

ImmutableArray<VBErrorInfo>

Flags

Gets a TFlags (enum) value representing the semantic flags associated with this context.

public TFlags Flags { get; init; }

Property Value

TFlags