Skip to content

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 ​

NameDescription
KindExpresses the Kind of AstNode object
LeftGets the left operand of the binary expression.
OperatorGets the operator token for the expression.
RightGets 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.