开发者

How can I code for calculating a CompilationUnit lines of code in

I would like to calcualate开发者_StackOverflow a compilation unit lines of code intuitively. How can I use the method of CompilationUnit: CompilationUnit.getLineNumber([THELASTLINE].getPosition()) to get the lines of code of this compilationUnit. How can I get the ast node which contains "the last line" then?

Many thanks,

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜