[FIR] Fixed invalid real psi source fir fir annotation name reference

This commit is contained in:
Igor Yakovlev
2021-04-22 19:53:29 +02:00
committed by TeamCityServer
parent aaefe94763
commit 38242bee75
@@ -1472,7 +1472,7 @@ open class RawFirBuilder(
annotationEntry.extractArgumentsTo(this)
val name = (annotationTypeRef as? FirUserTypeRef)?.qualifier?.last()?.name ?: Name.special("<no-annotation-name>")
calleeReference = buildSimpleNamedReference {
source = this@buildAnnotationCall.source
source = (annotationEntry.typeReference?.typeElement as? KtUserType)?.referenceExpression?.toFirSourceElement()
this.name = name
}
}