views:

79

answers:

1

Hi, I have developed a plugin to search the references of a method.I want to print out the line numbers where the method is referenced.I search for method going through IMethod class and check for a particular function reference.Now i want to print the line number.How can i do that?Help

Thanks

+5  A: 

Okay so here's the answer from the comment... vote me up ;)

You can use ISourceReference (documentation). It contains the source range, from which you could derive the line number.

AndiDog