class Cucumber::CucumberExpressions::CucumberExpressionParser

def split_alternatives(start, _end, alternation)

def split_alternatives(start, _end, alternation)
  separators = []
  alternatives = []
  alternative = []
  alternation.each do |n|
    if NodeType::ALTERNATIVE == n.type
      separators.push(n)
      alternatives.push(alternative)
      alternative = []
    else
      alternative.push(n)
    end
  end
  alternatives.push(alternative)
  create_alternative_nodes(start, _end, separators, alternatives)
end