Method-LokupItem vs MethodGroup-LookupItem

2 views
Skip to first unread message

Dennis Albrecht

unread,
Oct 17, 2014, 4:39:15 PM10/17/14
to kave...@googlegroups.com
Hey guys,

here are my results of the task "could we (somehow) detect if some MethodLookupItem in fact represents a whole method-group (and can we access the concrete signatures)":
In short: yes we can.

And now to be more precise:
To convert a LookupItem to an IName we try multiple subtypes of ILookupItem one being IDeclaredElementLookupItem. In this case we just have to make one more check if the IDeclaredElementLookupItem is of type MethodsLookupItem. If so we have access to the property "Methods" containing all concrete signatures (and the conversion from this signatures to INames can be done using the ReSharperDeclaredElementNameFactory; that answers part 2 of the question).

As all methods are represented by such a MethodLookupItem we can either represent all method-LookupItems by some new MethodGroupName (with either one or multiple signatures) or check if we get more than one signature and conditionally either create an IMethodName or some MethodGroupName (Answer to part 1).

Greets Dennis

Sven Amann

unread,
Oct 19, 2014, 5:26:18 AM10/19/14
to Dennis Albrecht, kave...@googlegroups.com
Thank you for sharing this insight.

Best,
Sven
> --
> You received this message because you are subscribed to the Google Groups "kave-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to kave-dev+u...@googlegroups.com.
> To post to this group, send email to kave...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/kave-dev/b465af13-60d0-4d05-a50f-5333d5c3fb17%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

signature.asc
Reply all
Reply to author
Forward
0 new messages