FIR LC: do not ignore useSite target for getting deprecation status

This commit is contained in:
Ilya Kirillov
2021-08-21 14:14:21 +03:00
parent c17a4a5a3b
commit 20f297aaf7
3 changed files with 20 additions and 1 deletions
@@ -41,7 +41,7 @@ internal fun isHiddenByDeprecation(
annotationUseSiteTarget: AnnotationUseSiteTarget? = null
): Boolean {
return project.analyzeWithSymbolAsContext(symbol) {
symbol.deprecationStatus?.level == DeprecationLevelValue.HIDDEN
symbol.getDeprecationStatus(annotationUseSiteTarget)?.level == DeprecationLevelValue.HIDDEN
}
}