Moving platformStatic annotation to kotlin.platform package

This commit is contained in:
Michael Bogdanov
2014-09-10 13:35:43 +04:00
parent b8b0316d97
commit 08e02f4176
17 changed files with 33 additions and 19 deletions
-2
View File
@@ -23,5 +23,3 @@ public annotation class deprecated(val value: String)
public annotation class suppress(vararg val names: String)
public annotation class tailRecursive
public annotation class platformStatic
@@ -333,11 +333,6 @@ public class KotlinBuiltIns {
return getBuiltInClassByName("tailRecursive");
}
@NotNull
public ClassDescriptor getPlatformStaticAnnotationClass() {
return getBuiltInClassByName("platformStatic");
}
@NotNull
public ClassDescriptor getDeprecatedAnnotation() {
return getBuiltInClassByName("deprecated");
@@ -867,10 +862,6 @@ public class KotlinBuiltIns {
return containsAnnotation(declarationDescriptor, getTailRecursiveAnnotationClass());
}
public boolean isPlatformStatic(@NotNull CallableDescriptor callableDescriptor) {
return containsAnnotation(callableDescriptor, getPlatformStaticAnnotationClass());
}
public boolean isSuppressAnnotation(@NotNull AnnotationDescriptor annotationDescriptor) {
ClassifierDescriptor classifier = annotationDescriptor.getType().getConstructor().getDeclarationDescriptor();
return classifier != null && fqNames.suppress.equals(DescriptorUtils.getFqName(classifier));