Class CaseClauseStatementFact
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
NodeSyntaxNodeIdThe
Identityof the statement.LocationSourceLocationWhere in the document the statement is.
StatementstringThe keyword of the statement: one of the
Tokens.FlagsCaseClauseSemanticFlagsWhat is known of the clause: which form it takes, and how its value is compared with the selector.
IsValueKnownboolWhether 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
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
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
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; }