Appearance
BinaryOpNode Class
Definition
Represents a binary operator expression such as a + b, a && b, a ?? b, or a * (b + c).
- Namespace:
JASE.Expressions.Models - Assembly:
JASE.Expressions.dll
Properties
| Name | Description |
|---|---|
Kind | Expresses the Kind of AstNode object |
Left | Gets the left operand of the binary expression. |
Operator | Gets the operator token for the expression. |
Right | Gets the right operand of the binary expression. |
Remarks
A BinaryOpNode always contains:
Operator — the syntactic operator token (e.g. +, *, ==, ??). Left — the left operand expression. Right — the right operand expression.
Operator precedence and associativity are resolved in the parser. Evaluation rules (numeric promotion, boolean logic, null-coalescing, comparison, etc.) are implemented in AstEvaluator.