/// <summary> /// This property signs if an expression is ready to be evaluated, /// namely, all subexpression values are known /// </summary> public override bool ReadyToEvaluate(IEvaluationContext evalContext) { // --- Note: We intentionally avoid short-circuit evaluation! var leftResult = LeftOperand.ReadyToEvaluate(evalContext); var rightResult = RightOperand.ReadyToEvaluate(evalContext); return(leftResult && rightResult); }
/// <summary> /// This property signs if an expression is ready to be evaluated, /// namely, all subexpression values are known /// </summary> public override bool ReadyToEvaluate(IEvaluationContext evalContext) => LeftOperand.ReadyToEvaluate(evalContext) && RightOperand.ReadyToEvaluate(evalContext);