Skip to content

Commit

Permalink
Fix type formatting for []
Browse files Browse the repository at this point in the history
  • Loading branch information
Blatts12 committed Oct 9, 2023
1 parent d6c11f7 commit bbdb725
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/contexted/module_analyzer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ defmodule Contexted.ModuleAnalyzer do
Enum.map_join(types, " | ", &format_type(&1, module))
end

defp format_type({:type, 0, nil, []}, _module), do: "[]"

defp format_type({:type, _, type_name, _}, _module), do: "#{type_name}()"

defp format_type({:user_type, _, atom, _}, module) do
Expand Down

0 comments on commit bbdb725

Please sign in to comment.