On 2015-06-11 14:33, Steven Schveighoffer wrote:

OK, I see the problem. When you type 'a.' then if you put up the list of
members and UFCS functions available, then that list may be huge (and
possibly filled with useless calls). That definitely is an issue.
However, I think DCD should still support that option. A UI for an ide
could be:

1. Lookup members, add to the list a "UFCS..." button at the bottom.
2. When user clicks on that button, re-query DCD for all functions that
take the object as the first parameter, then fill in that list.
3. If user continues to type in a UFCS method, and that doesn't match
any members, the autocomplete should start looking for functions that
start with that text.

The context of where the user is typing can also help to narrow the result, i.e.

int a = b.fo

Here it could filter out anything that doesn't return something that is convertible to an int. Or at least sort those to the bottom of the list.

--
/Jacob Carlborg

Reply via email to