Class SemanticContext<TFlags>
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
-
IEquatable<SemanticContext<TFlags>>
- 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
flagsTFlagsThe semantic flags> associated with this context.
errorsImmutableArray<VBErrorInfo>The error info metadata associated with this context.
diagnosticsImmutableArray<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
Errors
public ImmutableArray<VBErrorInfo> Errors { get; init; }
Property Value
Flags
Gets a TFlags (enum) value representing the semantic flags associated with this context.
public TFlags Flags { get; init; }
Property Value
- TFlags