From 38242bee7518a84da44bbbe1b1d6ca2708251bbc Mon Sep 17 00:00:00 2001 From: Igor Yakovlev Date: Thu, 22 Apr 2021 19:53:29 +0200 Subject: [PATCH] [FIR] Fixed invalid real psi source fir fir annotation name reference --- .../src/org/jetbrains/kotlin/fir/builder/RawFirBuilder.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/fir/raw-fir/psi2fir/src/org/jetbrains/kotlin/fir/builder/RawFirBuilder.kt b/compiler/fir/raw-fir/psi2fir/src/org/jetbrains/kotlin/fir/builder/RawFirBuilder.kt index 0ae8de1e588..78335dfcdbb 100644 --- a/compiler/fir/raw-fir/psi2fir/src/org/jetbrains/kotlin/fir/builder/RawFirBuilder.kt +++ b/compiler/fir/raw-fir/psi2fir/src/org/jetbrains/kotlin/fir/builder/RawFirBuilder.kt @@ -1472,7 +1472,7 @@ open class RawFirBuilder( annotationEntry.extractArgumentsTo(this) val name = (annotationTypeRef as? FirUserTypeRef)?.qualifier?.last()?.name ?: Name.special("") calleeReference = buildSimpleNamedReference { - source = this@buildAnnotationCall.source + source = (annotationEntry.typeReference?.typeElement as? KtUserType)?.referenceExpression?.toFirSourceElement() this.name = name } }