I'm trying to create an analyzer that will find where each method invocation comes from especially the class where the method is defined.
let's assume we have the following code:
Movie myMovie = new Movie(); myMovie.Rent();
my analyzer till now can return the expression
What exactly I want, is where the analyzer found a method invocation using an object in this case
myMovie.Rent(), returns the class where the method is defined and the object is instantiated in this case is
I'm blocked that why I didn't write any code for it if you have any idea or code example, I appreciate it.