Use DefaultAnalyzerFacade for common code in diagnostic tests

Because of incomplete infrastructure, introduce a few dirty hacks to make
diagnostic tests analyze the common code via DefaultAnalyzerFacade, and also
add common module sources to analysis of platform-specific modules.

Also do not render 'platform' declarations from platform-specific modules to
the .txt file, since they are very likely to be exact copies of the same
declaration in the common module (see RecursiveDescriptorComparator)
This commit is contained in:
Alexander Udalov
2016-11-07 14:26:05 +03:00
parent a4169416ad
commit 926b81fb35
4 changed files with 108 additions and 18 deletions
@@ -46,6 +46,9 @@ class ModuleDescriptorImpl @JvmOverloads constructor(
fqName: FqName -> LazyPackageViewDescriptorImpl(this, fqName, storageManager)
}
@Deprecated("This method is not going to be supported. Please do not use it")
val testOnly_AllDependentModules: List<ModuleDescriptorImpl> get() = this.dependencies!!.allDependencies
override val allDependentModules: List<ModuleDescriptor>
get() = this.dependencies.sure { "Dependencies of module $id were not set" }.allDependencies.filter { it != this }