Skip to content

Commit

Permalink
Do not assume abstract code is available
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Feb 27, 2024
1 parent cdf1bcc commit 182dd24
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ex_doc/language/elixir.ex
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,8 @@ defmodule ExDoc.Language.Elixir do

def get_impls(module) do
for behaviour <- behaviours_implemented_by(module),
{callback, _} <- Source.get_callbacks(Source.get_abstract_code(behaviour), ""),
abstract_code = Source.get_abstract_code(behaviour),
{callback, _} <- Source.get_callbacks(abstract_code, ""),
do: {callback, behaviour},
into: %{}
end
Expand Down

0 comments on commit 182dd24

Please sign in to comment.