From 9e9b92fd1600cc77c027d277c9f03d98a2acf640 Mon Sep 17 00:00:00 2001 From: Kirill Rakhman Date: Wed, 28 Jun 2023 14:50:42 +0300 Subject: [PATCH] [FIR PSI] Set source of error reference #KT-55835 --- .../src/org/jetbrains/kotlin/fir/builder/PsiRawFirBuilder.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/compiler/fir/raw-fir/psi2fir/src/org/jetbrains/kotlin/fir/builder/PsiRawFirBuilder.kt b/compiler/fir/raw-fir/psi2fir/src/org/jetbrains/kotlin/fir/builder/PsiRawFirBuilder.kt index f7f3e1552bf..06a3526a091 100644 --- a/compiler/fir/raw-fir/psi2fir/src/org/jetbrains/kotlin/fir/builder/PsiRawFirBuilder.kt +++ b/compiler/fir/raw-fir/psi2fir/src/org/jetbrains/kotlin/fir/builder/PsiRawFirBuilder.kt @@ -2718,7 +2718,10 @@ open class PsiRawFirBuilder( null -> { CalleeAndReceiver( - buildErrorNamedReference { diagnostic = ConeSyntaxDiagnostic("Call has no callee") } + buildErrorNamedReference { + source = defaultSource + diagnostic = ConeSyntaxDiagnostic("Call has no callee") + } ) }