Do not force overridden descriptors computation
Currently 'overriddenDescriptors' of substituted function is lazy and in most cases it's unnecessary to compute it (it's enough to use the same field from 'original')
This commit is contained in:
@@ -99,7 +99,7 @@ private fun deprecationByOverridden(root: CallableMemberDescriptor): Deprecation
|
||||
visited.add(node)
|
||||
|
||||
val deprecatedAnnotation = node.getDeprecationByAnnotation()
|
||||
val overriddenDescriptors = node.overriddenDescriptors
|
||||
val overriddenDescriptors = node.original.overriddenDescriptors
|
||||
when {
|
||||
deprecatedAnnotation != null -> {
|
||||
deprecations.add(deprecatedAnnotation)
|
||||
|
||||
Reference in New Issue
Block a user