v3ss0n / goto

GOTO using Atom's Symbols
MIT License
46 stars 17 forks source link

Goto with arity #92

Open alexfilatov opened 8 years ago

alexfilatov commented 8 years ago

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!