From efd1947722587d15bf1c81a0fd7ca722a7bc6fa8 Mon Sep 17 00:00:00 2001 From: Ilya Ryzhenkov Date: Mon, 13 Oct 2014 19:30:42 +0400 Subject: Migrate to lazy resolve session --- src/Analysis/AnalysisEnvironment.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/Analysis/AnalysisEnvironment.kt') diff --git a/src/Analysis/AnalysisEnvironment.kt b/src/Analysis/AnalysisEnvironment.kt index 1d51b8a2..90231b84 100644 --- a/src/Analysis/AnalysisEnvironment.kt +++ b/src/Analysis/AnalysisEnvironment.kt @@ -32,8 +32,9 @@ public class AnalysisEnvironment(val messageCollector: MessageCollector, body: A */ public fun withContext(processor: (JetCoreEnvironment, ModuleDescriptor, BindingContext) -> T): T { val environment = JetCoreEnvironment.createForProduction(this, configuration) - val exhaust = environment.analyze() - return processor(environment, exhaust.getModuleDescriptor(), exhaust.getBindingContext()) + val resolveSession = environment.analyze() + resolveSession.forceResolveAll() + return processor(environment, resolveSession.getModuleDescriptor(), resolveSession.getBindingContext()) } /** -- cgit