Minor: Undeprecate JetClassOrObject.isAnnotation() function
This commit is contained in:
@@ -108,7 +108,6 @@ abstract public class JetClassOrObject :
|
||||
|
||||
public fun getSecondaryConstructors(): List<JetSecondaryConstructor> = getBody()?.getSecondaryConstructors().orEmpty()
|
||||
|
||||
@Deprecated("It's no more possible to determine it exactly using AST. Use ClassDescriptor.getKind() instead")
|
||||
public fun isAnnotation(): Boolean =
|
||||
getAnnotation(KotlinBuiltIns.FQ_NAMES.annotation.shortName().asString()) != null || hasModifier(JetTokens.ANNOTATION_KEYWORD)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user