Hi Simon,
This is an ambitious ticket, and I don't have a clear path on how to best approach it. I can list a few things that could help you.
- the information you need (parameter names) is in the `Symbol` of the unapply method. You can access them by `sym.paramss` (a list of parameter lists), where each symbol has a name
- you must find a way to get from the completion position to the unapply symbol. Since most of the times you will have erroneous code (for instance, not enough arguments), the compiler may not be able to resolve it for you. You'll have to fiddle with positions and find what works.
- it may make sense to make completions insert parameter names for constructors as well (and apply methods):
#1001272. This might alleviate problem 2 above
Don't hesitate to ask more questions, or post code that does not behave as expected. We'll try to help.
Thanks for all the great work you're doing!
iulian
--
« Je déteste la montagne, ça cache le paysage »
Alphonse Allais