开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜