asedunov / intellij-crystal-lang

An IntelliJ plugin for Crystal language
Apache License 2.0
39 stars 5 forks source link

When macro call is not resolved exactly, resolve it to possible candidate macros #59

Closed asedunov closed 1 year ago

asedunov commented 1 year ago

For example in the code below neither of two foo definitions matches the call. But IDE can at least help us to navigate to them (because the call might be incomplete and would resolve if we change some of the arguments):

macro foo(x, y, *z, u, v)
  puts {{x}}, {{y}}
end

macro foo(x, y)
  puts {{x}}, {{y}}
end

foo