Skip to content

Commit

Permalink
Merge pull request #28 from curiosum-dev/fix/add-missing-function-cla…
Browse files Browse the repository at this point in the history
…use-for-contextedmoduleanalyzerformat_type-function

fix: 🩹 Add missing function clause for `format_type`…
  • Loading branch information
szsoppa authored Jul 25, 2023
2 parents ed5cfe9 + c6e0c00 commit d983ae3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/contexted/module_analyzer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ defmodule Contexted.ModuleAnalyzer do

defp format_type({:atom, _, atom}), do: ":#{Atom.to_string(atom)}"
defp format_type({:type, _, type_name, _}), do: "#{type_name}()"
defp format_type({:user_type, _, atom, _}), do: ":#{Atom.to_string(atom)}"

defp format_type({:remote_type, _, [{:atom, _, module}, {:atom, _, type}, _list]}) do
if module == :elixir do
Expand Down

0 comments on commit d983ae3

Please sign in to comment.