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

[K2] Fix missed annotations #3715

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

vmishenev
Copy link
Member

Fixes #3688

* @see ParameterName
* @see getPresentableName
*/
if(annotation.classId == parameterNameAnnotation && annotation.isNoExistedInKotlinSource()) return false
Copy link
Member Author

Choose a reason for hiding this comment

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

I have not discovered other synthetic annotations added by the compiler.
The PR aims to keep the K1 behaviour that might be reconsidered later.

JIC I have opened https://youtrack.jetbrains.com/issue/KT-70325/Analysis-API-KaAnnotation-returns-only-Kotlin-PSI but it does not affect us now.

@vmishenev vmishenev merged commit dfbaf4a into master Aug 6, 2024
10 of 13 checks passed
@vmishenev vmishenev deleted the vmishenev/3688-k2-fix-missed-annotations branch August 6, 2024 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[K2] Synthetic property misses annotations from getter/setter
2 participants