Restore binary compatibility for IDE plugins

Caused by 341f7c348a
This commit is contained in:
Denis Zharkov
2018-09-27 10:15:49 +03:00
parent 0c81e30d46
commit c4337f753e
@@ -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) {