diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2016-07-08 12:55:26 +0200 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2016-07-08 12:55:26 +0200 |
commit | 95a606f54604d673a8bda00f19dae81463925475 (patch) | |
tree | 94979d9f7eac102a8254f170a39a860c7df1e2ba /core/src/main/kotlin/Analysis/AnalysisEnvironment.kt | |
parent | 0f65cf0e4ce531715b76ac32a36a3dff488b2d70 (diff) | |
download | dokka-95a606f54604d673a8bda00f19dae81463925475.tar.gz dokka-95a606f54604d673a8bda00f19dae81463925475.tar.bz2 dokka-95a606f54604d673a8bda00f19dae81463925475.zip |
update Kotlin compiler and kotlin-ide-common to 1.0.4-dev-13, fixing the qualified name resolve problem in doc comments
Diffstat (limited to 'core/src/main/kotlin/Analysis/AnalysisEnvironment.kt')
-rw-r--r-- | core/src/main/kotlin/Analysis/AnalysisEnvironment.kt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/src/main/kotlin/Analysis/AnalysisEnvironment.kt b/core/src/main/kotlin/Analysis/AnalysisEnvironment.kt index 791c5380..c6fb0b5c 100644 --- a/core/src/main/kotlin/Analysis/AnalysisEnvironment.kt +++ b/core/src/main/kotlin/Analysis/AnalysisEnvironment.kt @@ -60,7 +60,7 @@ class AnalysisEnvironment(val messageCollector: MessageCollector) : Disposable { val projectComponentManager = environment.project as MockComponentManager val projectFileIndex = CoreProjectFileIndex(environment.project, - environment.configuration.getList(CommonConfigurationKeys.CONTENT_ROOTS)) + environment.configuration.getList(JVMConfigurationKeys.CONTENT_ROOTS)) val moduleManager = object : CoreModuleManager(environment.project, this) { override fun getModules(): Array<out Module> = arrayOf(projectFileIndex.module) @@ -127,7 +127,7 @@ class AnalysisEnvironment(val messageCollector: MessageCollector) : Disposable { * List of source roots for this environment. */ val sources: List<String> - get() = configuration.get(CommonConfigurationKeys.CONTENT_ROOTS) + get() = configuration.get(JVMConfigurationKeys.CONTENT_ROOTS) ?.filterIsInstance<KotlinSourceRoot>() ?.map { it.path } ?: emptyList() @@ -146,7 +146,7 @@ class AnalysisEnvironment(val messageCollector: MessageCollector) : Disposable { } fun addRoots(list: List<ContentRoot>) { - configuration.addAll(CommonConfigurationKeys.CONTENT_ROOTS, list) + configuration.addAll(JVMConfigurationKeys.CONTENT_ROOTS, list) } /** @@ -186,7 +186,7 @@ class DokkaResolutionFacade(override val project: Project, } override fun <T : Any> getFrontendService(moduleDescriptor: ModuleDescriptor, serviceClass: Class<T>): T { - throw UnsupportedOperationException() + return resolverForModule.componentProvider.getService(serviceClass) } override fun <T : Any> getIdeService(serviceClass: Class<T>): T { |