goto icon indicating copy to clipboard operation
goto copied to clipboard

Goto with arity

Open alexfilatov opened this issue 7 years ago • 0 comments

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!

alexfilatov avatar Jul 24 '16 14:07 alexfilatov