Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

declaration locations do not span the entire declaration #40

Open
jurgenvinju opened this issue Dec 19, 2022 · 3 comments
Open

declaration locations do not span the entire declaration #40

jurgenvinju opened this issue Dec 19, 2022 · 3 comments
Labels

Comments

@jurgenvinju
Copy link
Member

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

@rodinaarssen
Copy link
Member

Isn't that the declaration site proper?

@jurgenvinju
Copy link
Member Author

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
Copy link
Member Author

jurgenvinju commented Jun 1, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants