Refactoring: store correspondent module info in module content

This commit is contained in:
Nikolay Krasko
2018-03-14 16:20:33 +03:00
parent 3e313509e1
commit 586860e03a
9 changed files with 34 additions and 28 deletions
@@ -330,7 +330,7 @@ abstract class AbstractDiagnosticsTest : BaseDiagnosticsTest() {
MultiTargetPlatform.CAPABILITY to MultiTargetPlatform.Common,
MODULE_FILES to files
)
) { _, _ ->
) { _ ->
// TODO
PackagePartProvider.Empty
}
@@ -40,7 +40,7 @@ fun createResolveSessionForFiles(
"test",
projectContext, listOf(testModule),
{ JvmAnalyzerFacade },
{ ModuleContent(syntheticFiles, GlobalSearchScope.allScope(project)) },
{ ModuleContent(it, syntheticFiles, GlobalSearchScope.allScope(project)) },
JvmPlatformParameters { testModule },
modulePlatforms = { JvmPlatform.multiTargetPlatform }
)