def adapt(parsed_ast)
      # Saving off the original data
      parsed_ast['cuke_modeler_parsing_data'] = Marshal::load(Marshal.dump(parsed_ast))

      # Removing parsed data for child elements in order to avoid duplicating data
      parsed_ast['cuke_modeler_parsing_data'][:feature] = nil
      parsed_ast['cuke_modeler_parsing_data'][:comments] = nil

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

      adapt_feature!(parsed_ast[:feature]) if parsed_ast[:feature]
      parsed_ast['feature'] = parsed_ast.delete(:feature)

      [parsed_ast]
    end
def adapt(parsed_ast)
      # Saving off the original data
      parsed_ast['cuke_modeler_parsing_data'] = Marshal::load(Marshal.dump(parsed_ast))

      # Removing parsed data for child elements in order to avoid duplicating data
      parsed_ast['cuke_modeler_parsing_data'][:feature] = nil
      parsed_ast['cuke_modeler_parsing_data'][:comments] = nil

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

      adapt_feature!(parsed_ast[:feature]) if parsed_ast[:feature]
      parsed_ast['feature'] = parsed_ast.delete(:feature)

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