diff --git a/lib/contexted/module_analyzer.ex b/lib/contexted/module_analyzer.ex index 81ae3f9..e73a6ee 100644 --- a/lib/contexted/module_analyzer.ex +++ b/lib/contexted/module_analyzer.ex @@ -118,6 +118,9 @@ defmodule Contexted.ModuleAnalyzer do defp format_type({:type, _, :range, [{:integer, _, from}, {:integer, _, to}]}, _module), do: "#{from}..#{to}" + defp format_type({:type, _, :binary, [{:integer, _, 0}, {:integer, _, 0}]}, _module), + do: "<<>>" + defp format_type({:type, _, :binary, [{:integer, _, size}, {:integer, _, 0}]}, _module), do: "<<_::#{size}>>" @@ -126,6 +129,8 @@ defmodule Contexted.ModuleAnalyzer do defp format_type({:type, _, type_name, _}, _module), do: "#{type_name}()" + defp format_type({:op, _, operator, type}, module), do: "#{operator}#{format_type(type, module)}" + defp format_type({:integer, _, integer}, _module), do: "#{integer}" defp format_type({:user_type, _, atom, _}, module) do