Uast: KotlinUAnnotation.uastAnchor uses nameReferenceElement as javaPsi
because `nameReferenceElement` is not-null in LightAnnotations, but `referenceNameElement` violates `javaPsi` contract
This commit is contained in:
@@ -118,7 +118,7 @@ class KotlinUAnnotation(
|
||||
|
||||
override val uastAnchor by lazy {
|
||||
KotlinUIdentifier(
|
||||
javaPsi?.nameReferenceElement?.referenceNameElement,
|
||||
javaPsi?.nameReferenceElement,
|
||||
annotationEntry.typeReference?.typeElement?.let {
|
||||
(it as? KtUserType)?.referenceExpression?.getReferencedNameElement() ?: it.navigationElement
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user