 
   def def_count({:defmodule, _, _arguments} = ast) do
     ast
-    |> Code.postwalk(&collect_defs/2)
+    |> Credo.Code.postwalk(&collect_defs/2)
     |> Enum.count()
   end
 
   def defs(nil), do: []
 
   def defs({:defmodule, _, _arguments} = ast) do
-    Code.postwalk(ast, &collect_defs/2)
+    Credo.Code.postwalk(ast, &collect_defs/2)
   end
 
   @doc "Returns the arity of the given function definition `ast`"


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

  functions or module attributes.
  """

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

