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

SONARPY-1803 Store type definition location in the new type model #1780

Conversation

guillaume-dequenne-sonarsource
Copy link
Contributor

To be honest I'm not entirely convinced of the proposed solution and I think you made good points in our discussion, so my goal here is to make sure we have a first baby step that can be used in the NonCallableCalledCheck and can be revisited later.

One thing to note is that both ObjectType and ClassType will point to the definition of the class. To be consistent with the displayName implementation, ClassType#definitionLocation should probably refer to the definition of type, however, I didn't think that makes sense (no such definition could be found anyway) so they both return the location of the class definition instead.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

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