AnnotationTarget.PACKAGE was dropped
This commit is contained in:
@@ -165,7 +165,6 @@ public class AnnotationChecker(private val additionalCheckers: Iterable<Addition
|
||||
TargetLists.T_TOP_LEVEL_FUNCTION
|
||||
}
|
||||
is JetPropertyAccessor -> if (annotated.isGetter) TargetLists.T_PROPERTY_GETTER else TargetLists.T_PROPERTY_SETTER
|
||||
is JetPackageDirective -> TargetLists.T_PACKAGE
|
||||
is JetTypeReference -> TargetLists.T_TYPE_REFERENCE
|
||||
is JetFile -> TargetLists.T_FILE
|
||||
is JetTypeParameter -> TargetLists.T_TYPE_PARAMETER
|
||||
@@ -205,7 +204,6 @@ public class AnnotationChecker(private val additionalCheckers: Iterable<Addition
|
||||
}
|
||||
|
||||
val T_FILE = targetList(FILE)
|
||||
val T_PACKAGE = targetList(PACKAGE)
|
||||
|
||||
val T_CONSTRUCTOR = targetList(CONSTRUCTOR)
|
||||
|
||||
|
||||
@@ -168,7 +168,7 @@ public object ModifierCheckerCore {
|
||||
val actualParents: List<KotlinTarget> = when (parentDescriptor) {
|
||||
is ClassDescriptor -> KotlinTarget.classActualTargets(parentDescriptor)
|
||||
is FunctionDescriptor -> listOf(FUNCTION)
|
||||
else -> listOf(PACKAGE)
|
||||
else -> listOf(FILE)
|
||||
}
|
||||
val possibleParents = possibleParentTargetMap[modifier] ?: return true
|
||||
if (possibleParents == KotlinTarget.ALL_TARGET_SET) return true
|
||||
|
||||
Reference in New Issue
Block a user