In the R# plugin I'm trying to build, I need to find all references to a particular accessor/property. I have tried numerous way to get this info out of the API with no luck. When I instead trying to do the same with a plain method instead, I have no problem finding the references.
If I have a IAccessorDeclaration, how can I get all references in the solution pointing to this property (getter or setter doesn't matter)?
I've tried "all the ways" I've found in your API, like...
solution.GetPsiServices().Finder.FindReferences(accessorDeclaration.DeclaredElement, searchDomain, myProgress);
...but whatever I try, no references can be found.
How can I find all references pointing to property?