module RBS::Environment::ContextUtil

def calculate_context(decls)

def calculate_context(decls)
  decls.each.with_object([Namespace.root]) do |decl, array|
    first = array.first or raise
    array.unshift(first + decl.name.to_namespace)
  end
end