Class ArithmeticOperatorFact
An operation of an arithmetic operator (MS-VBAL 5.6.9.3).
public sealed record ArithmeticOperatorFact : OperatorFact, IEquatable<OperatorFact>, IEquatable<ArithmeticOperatorFact>
- Inheritance
-
ArithmeticOperatorFact
- Implements
- Inherited Members
Constructors
ArithmeticOperatorFact(SyntaxNodeId, SourceLocation, string, VBType?, bool, VBErrorInfo?, ArithmeticOperatorSemanticFlags)
An operation of an arithmetic operator (MS-VBAL 5.6.9.3).
public ArithmeticOperatorFact(SyntaxNodeId Node, SourceLocation Location, string Operator, VBType? EffectiveType, bool IsValueKnown, VBErrorInfo? Error, ArithmeticOperatorSemanticFlags Flags)
Parameters
NodeSyntaxNodeIdThe
Identityof the syntax node the operation is evaluated for.LocationSourceLocationWhere in the document the operation is: the whole expression, operands included, where a run-time error of the operation is located.
OperatorstringThe operator: one of the
Tokensoperators.EffectiveTypeVBTypeThe effective type of the operation, if it has one.
IsValueKnownboolWhether every operand of the operation is known, as opposed to a value its type merely allows.
ErrorVBErrorInfoThe run-time error the operation raises. Only stated when the operands are known, or when their types alone guarantee it.
FlagsArithmeticOperatorSemanticFlagsWhat is known of the operation.
Properties
Flags
What is known of the operation.
public ArithmeticOperatorSemanticFlags Flags { get; init; }