[FIR] Add JVM_RECORD_EXTENDS_CLASS diagnostic
This commit is contained in:
+7
@@ -3598,4 +3598,11 @@ internal val KT_DIAGNOSTIC_CONVERTER = KtDiagnosticConverterBuilder.buildConvert
|
||||
token,
|
||||
)
|
||||
}
|
||||
add(FirJvmErrors.JVM_RECORD_EXTENDS_CLASS) { firDiagnostic ->
|
||||
JvmRecordExtendsClassImpl(
|
||||
firSymbolBuilder.typeBuilder.buildKtType(firDiagnostic.a),
|
||||
firDiagnostic as FirPsiDiagnostic,
|
||||
token,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
+5
@@ -2505,4 +2505,9 @@ sealed class KtFirDiagnostic<PSI : PsiElement> : KtDiagnosticWithPsi<PSI> {
|
||||
override val diagnosticClass get() = DelegationByInJvmRecord::class
|
||||
}
|
||||
|
||||
abstract class JvmRecordExtendsClass : KtFirDiagnostic<PsiElement>() {
|
||||
override val diagnosticClass get() = JvmRecordExtendsClass::class
|
||||
abstract val superType: KtType
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+8
@@ -4063,3 +4063,11 @@ internal class DelegationByInJvmRecordImpl(
|
||||
override val firDiagnostic: FirPsiDiagnostic by weakRef(firDiagnostic)
|
||||
}
|
||||
|
||||
internal class JvmRecordExtendsClassImpl(
|
||||
override val superType: KtType,
|
||||
firDiagnostic: FirPsiDiagnostic,
|
||||
override val token: ValidityToken,
|
||||
) : KtFirDiagnostic.JvmRecordExtendsClass(), KtAbstractFirDiagnostic<PsiElement> {
|
||||
override val firDiagnostic: FirPsiDiagnostic by weakRef(firDiagnostic)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user