Retrieve "fully-qualified-name" from ILookupItem

Hey, is there a possibility to get from a ILookupItem a fully qualified name? For example for the isNullOrEmpty method from String informations like: function from String, static modifier, boolean return type, and so on.

Regards Toa

3 comments
Comment actions Permalink

Not really, no. ILookupItem can represent any kind of lookup item - method, property, keyword, live template and so on. So, there is no direct way to get at this information. You could try to downcast, but it would require specific knowledge of what you want - there are a lot of implementations of ILookupItem, and it's not really intended to be used like this.

0
Comment actions Permalink

And without the way with ILookupItem? Just get fully qualified names for each element in the open code completion? regards toa

0
Comment actions Permalink

No, there isn't another way to get the qualified name for each element in the open code completion window, because the items in the window might not have fully qualified names, e.g. keywords or live templates.

0

Please sign in to leave a comment.