visitSequenceMiddleResult<E> method

  1. @override
Expression visitSequenceMiddleResult<E>(
  1. SequenceMiddleResultExpression<E> node
)
override

Implementation

@override
Expression visitSequenceMiddleResult<E>(
    SequenceMiddleResultExpression<E> node) {
  final before = <Expression>[];
  for (final expression in node.before) {
    final result = expression.accept(this);
    before.add(result);
  }

  final expression = node.expression.accept(this) as Expression<E>;
  final after = <Expression>[];
  for (final expression in node.after) {
    final result = expression.accept(this);
    after.add(result);
  }

  return SequenceMiddleResultExpression<E>(before, expression, after);
}