diff --git a/core/descriptors/src/org/jetbrains/kotlin/resolve/DescriptorUtils.kt b/core/descriptors/src/org/jetbrains/kotlin/resolve/DescriptorUtils.kt index 3e9af7a91a9..340074cd780 100644 --- a/core/descriptors/src/org/jetbrains/kotlin/resolve/DescriptorUtils.kt +++ b/core/descriptors/src/org/jetbrains/kotlin/resolve/DescriptorUtils.kt @@ -72,6 +72,11 @@ val ClassifierDescriptorWithTypeParameters.denotedClassDescriptor: ClassDescript else -> throw UnsupportedOperationException("Unexpected descriptor kind: $this") } +// Used in https://plugins.jetbrains.com/plugin/10346-extsee +@Deprecated("The one below with receiver type ClassifierDescriptor? should be used", level = DeprecationLevel.HIDDEN) +val ClassifierDescriptorWithTypeParameters.classId: ClassId? + get() = (this as ClassifierDescriptor?).classId + val ClassifierDescriptor?.classId: ClassId? get() = this?.containingDeclaration?.let { owner -> when (owner) {