You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: parser.rb
    path of file: ./repos/mergration/lib/mergration
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require 'kramdown'
require 'kramdown-mermaid/parser'

module Mergration
  class ParseE
    
    def self.parse(path)
      raise Mergration::ParseError, "File does not exist: #{path}" unless File.exist?(path)

      text = File.read(path)

      ast = Kramdown::Document.new(text, input: DOCUMENT_INPUT).to_hash_ast
      ast[:children].select { |k, _| k[:type] == :entity }.map
    end
  end