JS: remove LibrarySourcesConfigWithCaching, introduce LibrarySourceConfig.Builder

This commit is contained in:
Michael Nedzelsky
2015-03-27 20:15:53 +03:00
parent 6d8fc1e035
commit 1c7e1ddf26
10 changed files with 111 additions and 124 deletions
@@ -146,7 +146,11 @@ class NoInternalVisibilityInStdLibTest {
val environment = KotlinCoreEnvironment.createForProduction(disposable!!, configuration, EnvironmentConfigFiles.JS_CONFIG_FILES)
val project = environment.project
val pathToJsStdlibJar = KOTLIN_ROOT_PATH + PathUtil.getKotlinPathsForDistDirectory().getJsStdLibJarPath().path
val config = LibrarySourcesConfig(project, "testModule", listOf(pathToJsStdlibJar), EcmaVersion.defaultVersion(), false, false, null)
val config = LibrarySourcesConfig.Builder(project, "testModule", listOf(pathToJsStdlibJar))
.ecmaVersion(EcmaVersion.defaultVersion())
.sourceMap(false)
.inlineEnabled(false)
.build()
TopDownAnalyzerFacadeForJS.analyzeFiles(listOf(), config).moduleDescriptor
}