We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eef251e commit 40f4079Copy full SHA for 40f4079
lib/iex/lib/iex/introspection.ex
@@ -258,10 +258,15 @@ defmodule IEx.Introspection do
258
docs = Code.get_docs(module, :docs)
259
260
exports =
261
- if function_exported?(module, :__info__, 1) do
262
- module.__info__(:functions) ++ module.__info__(:macros)
263
- else
264
- module.module_info(:exports)
+ cond do
+ docs ->
+ Enum.map(docs, &elem(&1, 0))
+
265
+ function_exported?(module, :__info__, 1) ->
266
+ module.__info__(:functions) ++ module.__info__(:macros)
267
268
+ true ->
269
+ module.module_info(:exports)
270
end
271
272
result =
0 commit comments