Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@vmishenev
Copy link
Contributor

Fixes #3688

* @see ParameterName
* @see getPresentableName
*/
if(annotation.classId == parameterNameAnnotation && annotation.isNoExistedInKotlinSource()) return false
Copy link
Contributor 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 requested a review from IgnatBeresnev July 30, 2024 10:25
@vmishenev vmishenev merged commit dfbaf4a into master Aug 6, 2024
@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

3 participants