diff options
author | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-10-13 19:30:42 +0400 |
---|---|---|
committer | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-10-13 19:30:42 +0400 |
commit | efd1947722587d15bf1c81a0fd7ca722a7bc6fa8 (patch) | |
tree | ab527bff246a58f6951eb6caba39d34a4ee1f8ec /src/Analysis/AnalysisEnvironment.kt | |
parent | 17f023731b9364228998838c4fab7e974cdc47c4 (diff) | |
download | dokka-efd1947722587d15bf1c81a0fd7ca722a7bc6fa8.tar.gz dokka-efd1947722587d15bf1c81a0fd7ca722a7bc6fa8.tar.bz2 dokka-efd1947722587d15bf1c81a0fd7ca722a7bc6fa8.zip |
Migrate to lazy resolve session
Diffstat (limited to 'src/Analysis/AnalysisEnvironment.kt')
-rw-r--r-- | src/Analysis/AnalysisEnvironment.kt | 5 |
1 files changed, 3 insertions, 2 deletions
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<T>(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()) } /** |