Make annotations on deserialized descriptors truly lazy

This commit is contained in:
Alexander Udalov
2014-11-21 03:19:15 +03:00
parent 954678ab2b
commit 149a90d7bf
6 changed files with 79 additions and 44 deletions
@@ -95,9 +95,8 @@ public class DeserializerForDecompiler(val packageDirectory: VirtualFile, val di
loadersStorage.setErrorReporter(LOGGING_REPORTER)
}
private val annotationLoader = AnnotationDescriptorLoader();
private val annotationLoader = AnnotationDescriptorLoader(moduleDescriptor, storageManager);
{
annotationLoader.setModule(moduleDescriptor)
annotationLoader.setKotlinClassFinder(localClassFinder)
annotationLoader.setErrorReporter(LOGGING_REPORTER)
annotationLoader.setStorage(loadersStorage)