Avoid using FQNAME_TO_CLASS_DESCRIPTOR slice where module exists
This commit is contained in:
+6
-1
@@ -75,6 +75,11 @@ public class DeserializedResolverUtils {
|
||||
if (owner instanceof PackageFragmentDescriptor) {
|
||||
return new ClassId(((PackageFragmentDescriptor) owner).getFqName(), descriptor.getName());
|
||||
}
|
||||
return getClassId((ClassDescriptor) owner).createNestedClassId(descriptor.getName());
|
||||
else if (owner instanceof ClassDescriptor) {
|
||||
return getClassId((ClassDescriptor) owner).createNestedClassId(descriptor.getName());
|
||||
}
|
||||
else {
|
||||
throw new IllegalStateException("Illegal container: " + descriptor);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user