Table of Contents

Class CaseClauseStatementFact

Namespace
RDCore.SDK.Semantics.Facts
Assembly
RDCore.SDK.dll

A range clause of a Case (MS-VBAL 5.4.2.10), stated when its value is compared with the selector in the selector's declared type: that type (ComparedIn), and the effective type of the comparison of the two as an expression (SpecifiedEffectiveType).

public sealed record CaseClauseStatementFact : StatementFact, IEquatable<StatementFact>, IEquatable<CaseClauseStatementFact>
Inheritance
CaseClauseStatementFact
Implements
Inherited Members

Constructors

CaseClauseStatementFact(SyntaxNodeId, SourceLocation, string, CaseClauseSemanticFlags, bool)

A range clause of a Case (MS-VBAL 5.4.2.10), stated when its value is compared with the selector in the selector's declared type: that type (ComparedIn), and the effective type of the comparison of the two as an expression (SpecifiedEffectiveType).

public CaseClauseStatementFact(SyntaxNodeId Node, SourceLocation Location, string Statement, CaseClauseSemanticFlags Flags, bool IsValueKnown)

Parameters

Node SyntaxNodeId

The Identity of the statement.

Location SourceLocation

Where in the document the statement is.

Statement string

The keyword of the statement: one of the Tokens.

Flags CaseClauseSemanticFlags

What is known of the clause: which form it takes, and how its value is compared with the selector.

IsValueKnown bool

Whether the selector and the value of the clause are known, as opposed to values their types merely allow.

Properties

ComparedIn

The type the value of the clause is compared with the selector in: the selector's declared type.

public VBType? ComparedIn { get; init; }

Property Value

VBType

Flags

What is known of the clause: which form it takes, and how its value is compared with the selector.

public CaseClauseSemanticFlags Flags { get; init; }

Property Value

CaseClauseSemanticFlags

IsValueKnown

Whether the selector and the value of the clause are known, as opposed to values their types merely allow.

public bool IsValueKnown { get; init; }

Property Value

bool

SpecifiedEffectiveType

The effective type that the table of MS-VBAL 5.6.9.5 gives the comparison of the selector with the value of the clause as an expression; null when the table gives none.

public VBType? SpecifiedEffectiveType { get; init; }

Property Value

VBType