Do not run partial body resolve if full body resolve already cached

This commit is contained in:
Valentin Kipyatkov
2015-03-23 19:57:50 +03:00
parent 6aad2b2d65
commit 7a414336c1
5 changed files with 25 additions and 6 deletions
@@ -139,9 +139,8 @@ public class ResolveSession implements KotlinCodeAnalyzer, LazyClassContext {
this.module = rootDescriptor;
this.packages =
storageManager.createMemoizedFunctionWithNullableValues(new MemoizedFunctionToNullable<FqName, LazyPackageDescriptor>() {
storageManager.createMemoizedFunctionWithNullableValues(new Function1<FqName, LazyPackageDescriptor>() {
@Nullable
@Override
public LazyPackageDescriptor invoke(FqName fqName) {
return createPackage(fqName);
}