You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a module that generates functions from a list at compile time, but doctor does not recognize the doc and spec that exist, reporting my module has having a function that is missing both doc and spec.
Here's an example that should replicate the issue:
defmoduleMyModuledolist=[:foo,:bar,:baz]Enum.each(list,fnname->@doc""" Returns a string representation for #{name}. iex> Foo.#{name}()#{Atom.to_string(name)} """@specunquote(name)()::binary()defunquote(name),do: unquote(Atom.to_string(name))end)end
Technically it's 3 functions, but if doctor could simply report this as 1 function with doc and spec that would be adequate.
The text was updated successfully, but these errors were encountered:
ackerdev
changed the title
Issues with unquote function definitionsunquote functions report no docs/specs
Mar 11, 2022
I have a module that generates functions from a list at compile time, but doctor does not recognize the doc and spec that exist, reporting my module has having a function that is missing both doc and spec.
Here's an example that should replicate the issue:
Technically it's 3 functions, but if doctor could simply report this as 1 function with doc and spec that would be adequate.
The text was updated successfully, but these errors were encountered: