visitArrayExpr method

  1. @override
Object visitArrayExpr(
  1. Array expr
)
override

Implementation

@override
Object visitArrayExpr(Expr.Array expr) {
  List<Object?> elements = [];
  for (Expr.Expr element in expr.elements) {
    var result = evaluate(element);
    if (result != null) {
      elements.add(result);
    }
  }
  return elements;
}