Rewritten PackageFragmentDescriptor to Kotlin.

This commit is contained in:
Evgeny Gerashchenko
2014-03-26 00:41:54 +04:00
parent 00c0c1acd1
commit 9ecd680fd4
7 changed files with 15 additions and 22 deletions
@@ -52,7 +52,7 @@ public object ClassSerializationUtil {
public fun getClassId(classDescriptor: ClassDescriptor): ClassId {
val owner = classDescriptor.getContainingDeclaration()
if (owner is PackageFragmentDescriptor) {
return ClassId(owner.getFqName(), FqNameUnsafe.topLevel(classDescriptor.getName()))
return ClassId(owner.fqName, FqNameUnsafe.topLevel(classDescriptor.getName()))
}
return getClassId(owner as ClassDescriptor).createNestedClassId(classDescriptor.getName())
}