[FIR] temporarily remove Retention and Target annotations from COMPILER_REQUIRED_ANNOTATIONS phase
currently AbstractFirSpecificAnnotationResolveTransformer doesn't work well for annotations with arguments ^KT-56046
This commit is contained in:
committed by
Space Team
parent
886c5b7412
commit
16caeafa98
+4
-5
@@ -38,7 +38,6 @@ import org.jetbrains.kotlin.fir.visitors.FirDefaultTransformer
|
||||
import org.jetbrains.kotlin.fir.visitors.transformSingle
|
||||
import org.jetbrains.kotlin.name.ClassId
|
||||
import org.jetbrains.kotlin.name.Name
|
||||
import org.jetbrains.kotlin.name.StandardClassIds.Annotations
|
||||
import org.jetbrains.kotlin.name.StandardClassIds.Annotations.Deprecated
|
||||
import org.jetbrains.kotlin.name.StandardClassIds.Annotations.DeprecatedSinceKotlin
|
||||
import org.jetbrains.kotlin.name.StandardClassIds.Annotations.JvmRecord
|
||||
@@ -48,16 +47,16 @@ import org.jetbrains.kotlin.utils.addToStdlib.shouldNotBeCalled
|
||||
object CompilerRequiredAnnotationsHelper {
|
||||
internal val REQUIRED_ANNOTATIONS_WITH_ARGUMENTS: Set<ClassId> = setOf(
|
||||
Deprecated,
|
||||
Annotations.Retention,
|
||||
Annotations.Target,
|
||||
// Annotations.Retention,
|
||||
// Annotations.Target,
|
||||
)
|
||||
|
||||
val REQUIRED_ANNOTATIONS: Set<ClassId> = REQUIRED_ANNOTATIONS_WITH_ARGUMENTS + setOf(
|
||||
DeprecatedSinceKotlin,
|
||||
WasExperimental,
|
||||
JvmRecord,
|
||||
Annotations.Repeatable,
|
||||
Annotations.Java.Repeatable,
|
||||
// Annotations.Repeatable,
|
||||
// Annotations.Java.Repeatable,
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user