Let’s see:

    ~/src/elixir[master]% rg delegate_to
    lib/elixir/lib/kernel.ex
    4909:        @doc delegate_to: {target, as, :erlang.length(as_args)}

    lib/elixir/lib/module.ex
    2047:  defp validate_doc_meta(:delegate_to, value) do
    2054:              ":delegate_to is a built-in documentation metadata key. 
It should be a three-element " <>

    lib/iex/test/iex/helpers_test.exs
    549:                 "* def func1()\n\ndelegate_to: Delegated.func1/0\n\n\n"
    552:                 "* def func2()\n\ndelegate_to: 
Delegated.func2/0\n\nDelegator func2 doc\n"

    lib/elixir/lib/io/ansi/docs.ex
    59:  Prints documentation metadata (only `delegate_to`, `deprecated`, 
`guard`, and `since` for now).
    81:      {:delegate_to, {m, f, a}}, _printed ->
    82:        label = metadata_label(:delegate_to, options)

    lib/elixir/test/elixir/io/ansi/docs_test.exs
    32:        delegate_to: {Foo, :bar, 3}
    36:           \e[33mdelegate_to:\e[0m Foo.bar/3

Looks like the first hit, lib/elixir/lib/kernel.ex:4909, is relevant.

> On 22 Nov 2019, at 19:55, Rich Morin <[email protected]> wrote:
> 
>> On Nov 22, 2019, at 10:29, Wojtek Mach <[email protected]> wrote:
>> 
>> defdelegate already adds a `@doc delegate_to: …` on master!
> 
> Cool.  I'd like to examine the relevant code.  Can you provide a link?
> -r
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "elixir-lang-core" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/elixir-lang-core/5F0B6BF5-DFB5-456E-AA52-004E1C36BFEB%40gmail.com.

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/5B03AE27-D8C4-4E7F-9D2A-B99DDC29A8A8%40wojtekmach.pl.

Reply via email to