How to get line number?
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
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.
精彩评论