Rename isImpl to isActual in descriptors
This commit is contained in:
committed by
Mikhail Glukhikh
parent
c8ee424f67
commit
e86d2f00ff
@@ -72,7 +72,7 @@ internal fun DeclarationDescriptor.liftToHeader(): DeclarationDescriptor? {
|
||||
if (this is MemberDescriptor) {
|
||||
return when {
|
||||
isExpect -> this
|
||||
isImpl -> headerDescriptor()
|
||||
isActual -> headerDescriptor()
|
||||
else -> null
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -165,7 +165,7 @@ class KotlinChangeSignatureHandler : ChangeSignatureHandler {
|
||||
if (!CommonRefactoringUtil.checkReadOnlyStatus(project, element)) return null
|
||||
|
||||
var descriptor = getDescriptor(bindingContext, element)
|
||||
if (descriptor is MemberDescriptor && descriptor.isImpl) {
|
||||
if (descriptor is MemberDescriptor && descriptor.isActual) {
|
||||
descriptor = descriptor.headerDescriptor() ?: descriptor
|
||||
}
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ private fun KtNamedFunction.getOverloads(): Collection<FunctionDescriptor> {
|
||||
val scope = getResolutionScope(context, resolutionFacade)
|
||||
val extensionReceiverClass = descriptor.extensionReceiverParameter?.type?.constructor?.declarationDescriptor as? ClassDescriptor
|
||||
|
||||
if (descriptor.isImpl && descriptor.headerDescriptor() != null) return emptyList()
|
||||
if (descriptor.isActual && descriptor.headerDescriptor() != null) return emptyList()
|
||||
|
||||
val result = LinkedHashSet<FunctionDescriptor>()
|
||||
result += scope.getAllAccessibleFunctions(name)
|
||||
|
||||
Reference in New Issue
Block a user