def adapt(parsed_ast)
      parsed_data = {}

      # The entire AST is just an array with one feature and we don't want to save any child data so...an empty array
      parsed_data['cuke_modeler_parsing_data'] = []

      # Comments are stored on child elements in gherkin 2.x
      comments = []

      # An AST is just one feature
      adapt_feature!(parsed_ast.first, comments) if parsed_ast.first
      parsed_data['feature'] = parsed_ast.first

      # Adapt and store comments once they have all been gathered
      comments.each do |comment|
        adapt_comment!(comment)
      end
      parsed_data['comments'] = comments


      [parsed_data]
    end
def adapt(parsed_ast)
      parsed_data = {}

      # The entire AST is just an array with one feature and we don't want to save any child data so...an empty array
      parsed_data['cuke_modeler_parsing_data'] = []

      # Comments are stored on child elements in gherkin 2.x
      comments = []

      # An AST is just one feature
      adapt_feature!(parsed_ast.first, comments) if parsed_ast.first
      parsed_data['feature'] = parsed_ast.first

      # Adapt and store comments once they have all been gathered
      comments.each do |comment|
        adapt_comment!(comment)
      end
      parsed_data['comments'] = comments


      [parsed_data]
    end
Adapts the given AST into the shape that this gem expects