This project is read-only.

Develop: LanguageService.getImplementorsAtPosition()

Topics: General
Nov 1, 2013 at 8:18 PM
What is getImplementorsAtPosition() for? I expected it to be useful for building up a type hierarchy for an interface/class but it doesn't seem to be for that purpose.

I'm playing with it on the 'develop' branch and I'm seeing some weird results. If I call it on a class name which is extended by other classes, I get back positions that seem to correspond to the other classes (though the behavior seems somewhat inconsistent based on where the class name occurs). Also, all of the ReferenceEntries are duplicated (I get each result twice). Calling this method on an interface doesn't seem to do anything.

Any hints as to what this is for?
Nov 4, 2013 at 9:26 PM
I believe it is a vestigial/experimental implementation from a previous attempt at some feature work. I don't think it's actually used for anything at the moment nor does it work entirely correctly (which explains your confusion about the returned results).
Nov 4, 2013 at 9:50 PM
Doh, that explains it :) Thanks for the info!