visitOrderedChoice method

  1. @override
void visitOrderedChoice(
  1. OrderedChoiceExpression node
)
override

Implementation

@override
void visitOrderedChoice(OrderedChoiceExpression node) {
  final expressions = node.expressions;
  final length = expressions.length;
  for (var i = 0; i < length; i++) {
    final child = expressions[i];
    child.accept(this);
  }

  final isOptional = expressions.where((e) => e.isOptional).length == length;
  _setIsOptional(node, isOptional);
}