Introduce -Xoutput-imports mode of JVM compiler

In this mode, instead of analyzing files and generating bytecode for
them, compiler just saves imports of each file in JSON map of form

'<path to file> -> [<import1>, <import2>, ...]'

It is needed for some external tools, notably for Google3 toolchain.
This commit is contained in:
Dmitry Savvinov
2018-04-04 14:59:09 +03:00
parent bec1ae3d94
commit 70622ff668
27 changed files with 167 additions and 5 deletions
+1
View File
@@ -20,6 +20,7 @@ dependencies {
compile(project(":js:js.translator"))
compile(project(":js:js.serializer"))
compile(project(":js:js.dce"))
compile(commonDep("org.jetbrains.kotlinx", "kotlinx-serialization-runtime")) { isTransitive = false }
compile(commonDep("org.fusesource.jansi", "jansi"))
compile(commonDep("org.jline", "jline"))
compile(files("${System.getProperty("java.home")}/../lib/tools.jar"))