View Call Hierarchy and Interfaces

Is it possible to make the View Call Hierarchy function take in to account interfaces?

In my example, I have:

Curve45 : BasePiece
BasePiece : IPiece

IPiece defines a method "Configure" which is abstract in BasePiece and implemented in Curve45.

If I right click on Configure in Curve45 and ask for the call hiearchy it says it can't find anything, but if I do the same on Configure in IPiece it tells me the correct answer.

Thanks
Matt.

2 comments

Hello Matt,

Do I understand correctly that you'd like to have the same behavior as Find
Usages offers: when one invokes Find Usages on an implementing member, ReSharper
asks whether one wants to look for the usages of the member from the base
interface? Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Is it possible to make the View Call Hierarchy function take in to
account interfaces?

In my example, I have:

Curve45 : BasePiece
BasePiece : IPiece
IPiece defines a method "Configure" which is abstract in BasePiece and
implemented in Curve45.

If I right click on Configure in Curve45 and ask for the call hiearchy
it says it can't find anything, but if I do the same on Configure in
IPiece it tells me the correct answer.

Thanks
Matt.
---
Original message URL:
http://devnet.jetbrains.net/message/5282439#5282439



0

That's basically the job yes except it doesn't have the rest of the benefits of the "view call hiearchy" screen where you can expand the tree and keep digging to find more callers.

It's disconcerting when you do a view call hierarchy on a method that you know must be called from somewhere and have it say it's not called, particularly if you've implicitly implemented interface methods rather than explicitly.  It would be good if View Call Hierarchy could take interfaces and base classes in to account as well so that you can get the call hierarchy for any method in one place.

Thanks
Matt.

0

Please sign in to leave a comment.