evaluateObj method

EvaluateOutput evaluateObj(
  1. EvaluateInput input
)

Implementation

EvaluateOutput evaluateObj(EvaluateInput input) {
  final result = <String, Value>{};
  for (final entry in input.expr.obj.obj.entries) {
    final val = evaluateExpr(
        EvaluateInput(defStack: input.defStack, expr: entry.value));
    if (val.status != EvaluateOutput_Status.OK) {
      return val;
    }
    result[entry.key] = val.value;
  }
  return EvaluateOutput(value: objValue(result));
}