earmark 1.2.2 (Hex package) (mix)
locked at 1.2.2 (earmark) f718159d
ok
ex_doc 0.16.2 (Hex package) (mix)
locked at 0.16.2 (ex_doc) 3b3e210e
ok
There are no updates for ex_docs for now, I already tried removing _build and deps directories and I can reproduce it also in new project with exactly same results.
For me it looks like a bug, but maybe there is something that I don’t know? What do you think about it?
@NobbZ: So you want to say that documenting macro by @spec is not expected and therefore not supported?
btw. AST (as Macro.t) is not only quoted expression (as Macro.expr), but also some literals like atoms or integers.
I wanted to document only few of all my macros and at least one of them accepts literals, so I would like to document it also it, but if it’s not supported then I do not need to force it.
I haven’t seen any macro in the :elixir package @speced, therefore I always assumed that it is not supported.
Also remember, that defmacro basically creates a function internally, which is prefixed MACRO- (or was it suffixed?), also it gets some arguments extra, that’s actually why you get __CALLER__/0 inside of an macro…
The macro specs include a first argument of type term(), I’m not sure if it’s best for that to be stripped out of the displayed spec or not. So I just left it be.