goto
goto copied to clipboard
Goto with arity
When module has same named functions with different arity goto goes only for the first function. Would be great if it comes to the specific function with correct arity.
Example:
defmodule MyApp.Factory do
# with Ecto
use ExMachina.Ecto, repo: MyApp.Repo
def user_factory do
%MyApp.User{
name: "User Name",
email: sequence(:email, &"email-#{&1}@example.com"),
}
end
end
If I press Alt + Down arrow
on sequence
I'll go to the ex_machina's module's function:
def sequence(name), do: ExMachina.Sequence.next(name)
but not to the correct function:
def sequence(name, formatter), do: ExMachina.Sequence.next(name, formatter)
Using goto v.1.7.1
Thank you!