Refactor API of NotFoundClasses

Move deserialization-related stuff to TypeDeserializer, because it's
going to be used in other places besides deserialization
This commit is contained in:
Alexander Udalov
2017-02-22 14:12:55 +03:00
parent 86994f81c3
commit 794cc1e3be
4 changed files with 26 additions and 29 deletions
@@ -140,7 +140,7 @@ class JavaTypeResolver(
// Note that this makes MISSING_DEPENDENCY_CLASS diagnostic messages not as precise as they could be in some corner cases.
private fun createNotFoundClass(javaType: JavaClassifierType): TypeConstructor {
val classId = parseCanonicalFqNameIgnoringTypeArguments(javaType.canonicalText)
return c.components.deserializedDescriptorResolver.components.notFoundClasses.getClass(classId, listOf(0))
return c.components.deserializedDescriptorResolver.components.notFoundClasses.getClass(classId, listOf(0)).typeConstructor
}
private fun mapKotlinClass(javaType: JavaClassifierType, attr: JavaTypeAttributes, fqName: FqName): ClassDescriptor? {