Don't expose interface nested types as Swift nested types
Since this turns out to be unsupported by Swift. Also don't do this for nested interfaces as its status is unclear.
This commit is contained in:
committed by
SvyatoslavScherbina
parent
b5793c156b
commit
39c3ff556e
+6
-1
@@ -167,7 +167,12 @@ internal class ObjCExportNamerImpl(
|
||||
val containingDeclaration = descriptor.containingDeclaration
|
||||
if (containingDeclaration is ClassDescriptor) {
|
||||
append(getClassOrProtocolSwiftName(containingDeclaration))
|
||||
.append(".").append(descriptor.name.asString())
|
||||
|
||||
if (!descriptor.isInterface && !containingDeclaration.isInterface) {
|
||||
append(".").append(descriptor.name.asString())
|
||||
} else {
|
||||
append(descriptor.name.asString().capitalize())
|
||||
}
|
||||
} else {
|
||||
appendTopLevelClassBaseName(descriptor)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user