开发者

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

开发者 https://www.devze.com 2023-02-27 02:41 出处:网络
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

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

精彩评论

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