visitOptional<E> method

  1. @override
Parser visitOptional<E>(
  1. OptionalExpression<E> node
)
override

Implementation

@override
Parser visitOptional<E>(OptionalExpression<E> node) {
  final child = node.expression;
  final parser = child.accept(this) as Parser<E>;
  return OptionalParser<E>(parser, source: '$node');
}