def adapt(parsed_ast)
      parsed_data = {}

      # No data exists stored above feature level
      parsed_data['cuke_modeler_parsing_data'] = nil

      # Comments are stored on the feature in gherkin 3.x
      parsed_data['comments'] = []
      parsed_ast[:comments].each do |comment|
        adapt_comment!(comment)
      end
      parsed_data['comments'].concat(parsed_ast.delete(:comments))

      # An AST is just one feature
      adapt_feature!(parsed_ast)

      parsed_data['feature'] = parsed_ast

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

      # No data exists stored above feature level
      parsed_data['cuke_modeler_parsing_data'] = nil

      # Comments are stored on the feature in gherkin 3.x
      parsed_data['comments'] = []
      parsed_ast[:comments].each do |comment|
        adapt_comment!(comment)
      end
      parsed_data['comments'].concat(parsed_ast.delete(:comments))

      # An AST is just one feature
      adapt_feature!(parsed_ast)

      parsed_data['feature'] = parsed_ast

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