visitZeroOrMore<E> method

  1. @override
Parser visitZeroOrMore<E>(
  1. ZeroOrMoreExpression<E> node
)
override

Implementation

@override
Parser visitZeroOrMore<E>(ZeroOrMoreExpression<E> node) {
  final child = node.expression;
  final parser = child.accept(this) as Parser<E>;
  return parser.getRepeater(0, RepeaterParser.maxValue, source: '$node');
}