clair icon indicating copy to clipboard operation
clair copied to clipboard

declaration locations do not span the entire declaration

Open jurgenvinju opened this issue 3 years ago • 3 comments

for example function declarations in m3.declarations point only to the header

jurgenvinju avatar Dec 19 '22 11:12 jurgenvinju

Isn't that the declaration site proper?

rodinaarssen avatar Dec 19 '22 12:12 rodinaarssen

well the expectation of users of the JDT, for example, is that if you readFile(declLoc) you get the declaration including the body, unless it is an abstract declaration of course.

jurgenvinju avatar Dec 20 '22 10:12 jurgenvinju

This is becoming problematic for people who want to count the SLOC of a function of a method.

jurgenvinju avatar Jun 01 '23 08:06 jurgenvinju