class Cucumber::CucumberExpressions::OptionalIsNotAllowedInOptional

def initialize(node, expression)

def initialize(node, expression)
  super(
    build_message(
      node.start,
      expression,
      point_at_located(node),
      'An optional may not contain an other optional',
      "If you did not mean to use an optional type you can use '\\(' to escape the '('. For more complicated expressions consider using a regular expression instead."
    )
  )
end