Skip to content

Commit

Permalink
Merge pull request #103 from esl/fix-vars-generated-check
Browse files Browse the repository at this point in the history
Handle not generated one call functions
  • Loading branch information
Premwoik authored Jun 13, 2022
2 parents 822da39 + 8311f7c commit 55b323f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/gradient/elixir_checker.ex
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ defmodule Gradient.ElixirChecker do
end

def all_vars_generated?(vars) do
Enum.all?(vars, fn {:var, anno, _} -> :erl_anno.generated(anno) end)
Enum.all?(vars, fn
{:var, anno, _} -> :erl_anno.generated(anno)
_ -> false
end)
end
end

0 comments on commit 55b323f

Please sign in to comment.