[FIR] Print operator keyword and token to unresolved diagnostic message
#KT-55672 Fixed
This commit is contained in:
committed by
Space Team
parent
85bb7faf10
commit
c30ce4aabe
+1
@@ -296,6 +296,7 @@ internal val KT_DIAGNOSTIC_CONVERTER = KtDiagnosticConverterBuilder.buildConvert
|
||||
add(FirErrors.UNRESOLVED_REFERENCE) { firDiagnostic ->
|
||||
UnresolvedReferenceImpl(
|
||||
firDiagnostic.a,
|
||||
firDiagnostic.b,
|
||||
firDiagnostic as KtPsiDiagnostic,
|
||||
token,
|
||||
)
|
||||
|
||||
+1
@@ -251,6 +251,7 @@ sealed interface KtFirDiagnostic<PSI : PsiElement> : KtDiagnosticWithPsi<PSI> {
|
||||
interface UnresolvedReference : KtFirDiagnostic<PsiElement> {
|
||||
override val diagnosticClass get() = UnresolvedReference::class
|
||||
val reference: String
|
||||
val operator: String?
|
||||
}
|
||||
|
||||
interface UnresolvedLabel : KtFirDiagnostic<PsiElement> {
|
||||
|
||||
+1
@@ -285,6 +285,7 @@ internal class InvisibleReferenceImpl(
|
||||
|
||||
internal class UnresolvedReferenceImpl(
|
||||
override val reference: String,
|
||||
override val operator: String?,
|
||||
firDiagnostic: KtPsiDiagnostic,
|
||||
token: KtLifetimeToken,
|
||||
) : KtAbstractFirDiagnostic<PsiElement>(firDiagnostic, token), KtFirDiagnostic.UnresolvedReference
|
||||
|
||||
Reference in New Issue
Block a user