Uast: KotlinUAnnotation.uastAnchor uses nameReferenceElement as javaPsi

because `nameReferenceElement` is not-null in LightAnnotations, but `referenceNameElement` violates `javaPsi` contract
This commit is contained in:
Nicolay Mitropolsky
2018-08-14 12:23:36 +03:00
parent 9a441b9c8d
commit cd047b9605
@@ -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
},