[FIR] Add DEPRECATED_JAVA_ANNOTATION diagnostic
This commit is contained in:
committed by
TeamCityServer
parent
f9b601edae
commit
ae558c0290
+7
@@ -3525,4 +3525,11 @@ internal val KT_DIAGNOSTIC_CONVERTER = KtDiagnosticConverterBuilder.buildConvert
|
||||
token,
|
||||
)
|
||||
}
|
||||
add(FirJvmErrors.DEPRECATED_JAVA_ANNOTATION) { firDiagnostic ->
|
||||
DeprecatedJavaAnnotationImpl(
|
||||
firDiagnostic.a,
|
||||
firDiagnostic as FirPsiDiagnostic,
|
||||
token,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
+5
@@ -2456,4 +2456,9 @@ sealed class KtFirDiagnostic<PSI : PsiElement> : KtDiagnosticWithPsi<PSI> {
|
||||
override val diagnosticClass get() = OverloadsPrivate::class
|
||||
}
|
||||
|
||||
abstract class DeprecatedJavaAnnotation : KtFirDiagnostic<KtAnnotationEntry>() {
|
||||
override val diagnosticClass get() = DeprecatedJavaAnnotation::class
|
||||
abstract val kotlinName: FqName
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+8
@@ -3978,3 +3978,11 @@ internal class OverloadsPrivateImpl(
|
||||
override val firDiagnostic: FirPsiDiagnostic by weakRef(firDiagnostic)
|
||||
}
|
||||
|
||||
internal class DeprecatedJavaAnnotationImpl(
|
||||
override val kotlinName: FqName,
|
||||
firDiagnostic: FirPsiDiagnostic,
|
||||
override val token: ValidityToken,
|
||||
) : KtFirDiagnostic.DeprecatedJavaAnnotation(), KtAbstractFirDiagnostic<KtAnnotationEntry> {
|
||||
override val firDiagnostic: FirPsiDiagnostic by weakRef(firDiagnostic)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user