Make OPT_IN_USAGE_ERROR an error in FIR

This commit is contained in:
Mikhail Glukhikh
2021-09-22 16:42:32 +03:00
committed by TeamCityServer
parent 056f74a23b
commit 4052befe88
2 changed files with 2 additions and 2 deletions
@@ -276,7 +276,7 @@ object DIAGNOSTICS_LIST : DiagnosticList("FirErrors") {
parameter<FqName>("optInMarkerFqName")
parameter<String>("message")
}
val OPT_IN_USAGE_ERROR by warning<PsiElement>(PositioningStrategy.REFERENCE_BY_QUALIFIED) {
val OPT_IN_USAGE_ERROR by error<PsiElement>(PositioningStrategy.REFERENCE_BY_QUALIFIED) {
parameter<FqName>("optInMarkerFqName")
parameter<String>("message")
}
@@ -241,7 +241,7 @@ object FirErrors {
// OptIn
val OPT_IN_USAGE by warning2<PsiElement, FqName, String>(SourceElementPositioningStrategies.REFERENCE_BY_QUALIFIED)
val OPT_IN_USAGE_ERROR by warning2<PsiElement, FqName, String>(SourceElementPositioningStrategies.REFERENCE_BY_QUALIFIED)
val OPT_IN_USAGE_ERROR by error2<PsiElement, FqName, String>(SourceElementPositioningStrategies.REFERENCE_BY_QUALIFIED)
val OPT_IN_OVERRIDE by warning2<PsiElement, FqName, String>()
val OPT_IN_OVERRIDE_ERROR by error2<PsiElement, FqName, String>()
val OPT_IN_IS_NOT_ENABLED by warning0<KtAnnotationEntry>(SourceElementPositioningStrategies.REFERENCED_NAME_BY_QUALIFIED)