 
   def def_names_with_op({:defmodule, _, _arguments} = ast, arity) do
     ast
-    |> Code.postwalk(&collect_defs/2)
+    |> Credo.Code.postwalk(&collect_defs/2)
     |> Enum.map(&def_name_with_op(&1, arity))
     |> Enum.reject(&is_nil/1)
     |> Enum.uniq()

  functions or module attributes.
  """

  alias Credo.Code
  alias Credo.Code.Block
  alias Credo.Code.Name



  def def_names({:defmodule, _, _arguments} = ast) do
    ast
    |> Credo.Code.postwalk(&collect_defs/2)
    |> Enum.map(&def_name/1)
    |> Enum.uniq()
  end
