From 4810d07256c86825b85807dd93448279bde5b3b9 Mon Sep 17 00:00:00 2001 From: Simon Ogorodnik Date: Mon, 26 Jun 2017 15:25:09 +0300 Subject: Update bundled kotlin compiler to 1.1.3 --- core/src/main/kotlin/Analysis/AnalysisEnvironment.kt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'core/src/main/kotlin/Analysis/AnalysisEnvironment.kt') diff --git a/core/src/main/kotlin/Analysis/AnalysisEnvironment.kt b/core/src/main/kotlin/Analysis/AnalysisEnvironment.kt index 15d0a26b..1a6ccbd0 100644 --- a/core/src/main/kotlin/Analysis/AnalysisEnvironment.kt +++ b/core/src/main/kotlin/Analysis/AnalysisEnvironment.kt @@ -14,10 +14,7 @@ import com.intellij.openapi.roots.ProjectRootManager import com.intellij.openapi.util.Disposer import com.intellij.psi.PsiElement import com.intellij.psi.search.GlobalSearchScope -import org.jetbrains.kotlin.analyzer.AnalysisResult -import org.jetbrains.kotlin.analyzer.ModuleContent -import org.jetbrains.kotlin.analyzer.ModuleInfo -import org.jetbrains.kotlin.analyzer.ResolverForModule +import org.jetbrains.kotlin.analyzer.* import org.jetbrains.kotlin.cli.common.CLIConfigurationKeys import org.jetbrains.kotlin.cli.common.messages.MessageCollector import org.jetbrains.kotlin.cli.jvm.compiler.EnvironmentConfigFiles @@ -111,10 +108,12 @@ class AnalysisEnvironment(val messageCollector: MessageCollector) : Disposable { val sourcesScope = createSourceModuleSearchScope(environment.project, sourceFiles) val builtIns = JvmBuiltIns(projectContext.storageManager) - val resolverForProject = JvmAnalyzerFacade.setupResolverForProject( + + val resolverForProject = AnalyzerFacade.setupResolverForProject( "Dokka", projectContext, listOf(library, module), + { JvmAnalyzerFacade }, { when (it) { library -> ModuleContent(emptyList(), GlobalSearchScope.notScope(sourcesScope)) -- cgit