Move importsDumper to compiler plugin

This commit is contained in:
Dmitry Savvinov
2018-05-16 16:25:29 +03:00
parent 16ee2df585
commit da7b59984f
32 changed files with 136 additions and 70 deletions
-1
View File
@@ -39,7 +39,6 @@ where advanced options include:
-Xno-optimize Disable optimizations
-Xno-param-assertions Don't generate not-null assertions on parameters of methods accessible from Java
-Xno-receiver-assertions Don't generate not-null assertion for extension receiver arguments of platform types
-Xoutput-imports=<path> Output imports from all compiled files to the specified file in JSON format
-Xscript-resolver-environment=<key=value[,]>
Script resolver environment in key-value pairs (the value could be quoted and escaped)
-Xsingle-module Combine modules for source files and binary dependencies into a single module
-7
View File
@@ -1,7 +0,0 @@
package a
import c.JavaC
class A1 {
val j: JavaC = JavaC()
}
-5
View File
@@ -1,5 +0,0 @@
package a
class A2 {
val a1: A1? = null
}
-10
View File
@@ -1,10 +0,0 @@
package b
import a.*
class B1 {
companion object {
val a1: A1 = A1()
val a2: A2 = A2()
}
}
@@ -1,7 +0,0 @@
package b.nestedB
import a.A1 as AliasedA1
import a.A1
fun foo(x: AliasedA1): Int = TODO()
fun bar(x: A1): Int = TODO()
-16
View File
@@ -1,16 +0,0 @@
package c
import a.A1
import a.A2
import b.B1.Companion.a2
import b.nestedB.bar
import b.nestedB.foo
class C1 {
val x = foo(TODO())
val y = bar(TODO())
val z: A1? = null
val t: A2? = a2
}
@@ -1,13 +0,0 @@
package c;
import a.A1;
import b.B1;
import b.nestedB.B2Kt;
public class JavaC {
private void doStuff() {
C1 c1 = new C1();
B1 b1 = new B1();
B2Kt.bar(new A1());
}
}
@@ -1 +0,0 @@
{"$TESTDATA_DIR$\/a\/A1.kt":["import c.JavaC"],"$TESTDATA_DIR$\/a\/A2.kt":[],"$TESTDATA_DIR$\/b\/B1.kt":["import a.*"],"$TESTDATA_DIR$\/b\/nestedB\/B2.kt":["import a.A1 as AliasedA1","import a.A1"],"$TESTDATA_DIR$\/c\/C1.kt":["import a.A1","import a.A2","import b.B1.Companion.a2","import b.nestedB.bar","import b.nestedB.foo"]}
@@ -1 +0,0 @@
OK