Skip to content

Commit 182dd24

Browse files
committed
Do not assume abstract code is available
1 parent cdf1bcc commit 182dd24

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/ex_doc/language/elixir.ex

+2-1
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,8 @@ defmodule ExDoc.Language.Elixir do
453453

454454
def get_impls(module) do
455455
for behaviour <- behaviours_implemented_by(module),
456-
{callback, _} <- Source.get_callbacks(Source.get_abstract_code(behaviour), ""),
456+
abstract_code = Source.get_abstract_code(behaviour),
457+
{callback, _} <- Source.get_callbacks(abstract_code, ""),
457458
do: {callback, behaviour},
458459
into: %{}
459460
end

0 commit comments

Comments
 (0)