visitOneOrMore<E> method

  1. @override
Parser visitOneOrMore<E>(
  1. OneOrMoreExpression<E> node
)
override

Implementation

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