evaluateArr method

EvaluateOutput evaluateArr(
  1. EvaluateInput input
)

Implementation

EvaluateOutput evaluateArr(EvaluateInput input) {
  final result = <Value>[];
  for (final expr in input.expr.arr.arr) {
    final val =
        evaluateExpr(EvaluateInput(defStack: input.defStack, expr: expr));
    if (val.status != EvaluateOutput_Status.OK) {
      return val;
    }
    result.add(val.value);
  }
  return EvaluateOutput(value: arrValue(result));
}