There was an error while loading. Please reload this page.
1 parent b7db018 commit aecbe8cCopy full SHA for aecbe8c
lib/ex_doc/html_formatter/templates.ex
@@ -46,7 +46,14 @@ defmodule ExDoc.HTMLFormatter.Templates do
46
47
# Get the full signature from a function
48
defp signature(ExDoc.FunctionNode[name: name, signature: args]) do
49
- Macro.to_string { name, 0, args }
+ cond do
50
+ name in [:__aliases__, :__block__] ->
51
+ "#{name}(args)"
52
+ name in [:__ENV__, :__MODULE__, :__DIR__, :__CALLER__] ->
53
+ "#{name}"
54
+ true ->
55
+ Macro.to_string { name, 0, args }
56
+ end
57
end
58
59
# Get the first paragraph of the documentation of a node, if any.
0 commit comments