Table of Contents

Class ComparisonOperatorFact

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

An operation of a relational operator (MS-VBAL 5.6.9.5).

public sealed record ComparisonOperatorFact : OperatorFact, IEquatable<OperatorFact>, IEquatable<ComparisonOperatorFact>
Inheritance
ComparisonOperatorFact
Implements
Inherited Members

Constructors

ComparisonOperatorFact(SyntaxNodeId, SourceLocation, string, VBType?, bool, VBErrorInfo?, ComparisonOperatorSemanticFlags, StringComparisonRules)

An operation of a relational operator (MS-VBAL 5.6.9.5).

public ComparisonOperatorFact(SyntaxNodeId Node, SourceLocation Location, string Operator, VBType? EffectiveType, bool IsValueKnown, VBErrorInfo? Error, ComparisonOperatorSemanticFlags Flags, StringComparisonRules Comparison)

Parameters

Node SyntaxNodeId

The Identity of the syntax node the operation is evaluated for.

Location SourceLocation

Where in the document the operation is: the whole expression, operands included, where a run-time error of the operation is located.

Operator string

The operator: one of the Tokens operators.

EffectiveType VBType

The effective type of the operation, if it has one.

IsValueKnown bool

Whether every operand of the operation is known, as opposed to a value its type merely allows.

Error VBErrorInfo

The run-time error the operation raises. Only stated when the operands are known, or when their types alone guarantee it.

Flags ComparisonOperatorSemanticFlags

What is known of the operation.

Comparison StringComparisonRules

How the operation compares String values where it is evaluated.

Properties

Comparison

How the operation compares String values where it is evaluated.

public StringComparisonRules Comparison { get; init; }

Property Value

StringComparisonRules

Flags

What is known of the operation.

public ComparisonOperatorSemanticFlags Flags { get; init; }

Property Value

ComparisonOperatorSemanticFlags

StringOperand

The String operand of a comparison of a String with a number, Let-coerced both ways (StringOperandFact); null for any other comparison.

public StringOperandFact? StringOperand { get; init; }

Property Value

StringOperandFact