Minor. Remove HIDDEN_ANNOTATION_FQ_NAME.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2010-2015 JetBrains s.r.o.
|
* Copyright 2010-2016 JetBrains s.r.o.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -178,11 +178,7 @@ enum class DeprecationLevelValue {
|
|||||||
WARNING, ERROR, HIDDEN
|
WARNING, ERROR, HIDDEN
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated("Should be removed together with kotlin.HiddenDeclaration")
|
|
||||||
private val HIDDEN_ANNOTATION_FQ_NAME = FqName("kotlin.HiddenDeclaration")
|
|
||||||
|
|
||||||
fun DeclarationDescriptor.isHiddenInResolution(): Boolean {
|
fun DeclarationDescriptor.isHiddenInResolution(): Boolean {
|
||||||
if (this is FunctionDescriptor && this.isHiddenToOvercomeSignatureClash) return true
|
if (this is FunctionDescriptor && this.isHiddenToOvercomeSignatureClash) return true
|
||||||
return annotations.findAnnotation(HIDDEN_ANNOTATION_FQ_NAME) != null
|
return getDeprecation()?.deprecationLevel == DeprecationLevelValue.HIDDEN
|
||||||
|| getDeprecation()?.deprecationLevel == DeprecationLevelValue.HIDDEN
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user