[kotlinp] Split :tools:kotlinp into "common" and "jvm" subprojects
The "common" subproject keeps only backend-neutral logic and depends only on :kotlinx-metadata library. It takes the name of the former project - :tools:kotlinp The "jvm" subproject depends on the "common" one and also depends on :kotlinx-metadata-jvm. It gets the new name - :tools:kotlinp-jvm There is a lot of touched files in this commit. The majority of them is just moved files (tests, test data, etc). Only the following files were actually modified: .space/CODEOWNERS build.gradle.kts libraries/tools/abi-comparator/build.gradle.kts libraries/tools/kotlinp/build.gradle.kts libraries/tools/kotlinp/jvm/build.gradle.kts plugins/kapt3/kapt3-compiler/build.gradle.kts settings.gradle ^KT-62340
This commit is contained in:
committed by
Space Team
parent
eec76865a7
commit
d30efdb001
@@ -0,0 +1,3 @@
|
||||
fun test() = object : Runnable {
|
||||
override fun run() { }
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
// AnonymousObjectKt.class
|
||||
// ------------------------------------------
|
||||
package {
|
||||
|
||||
// signature: test()Ljava/lang/Runnable;
|
||||
public final fun test(): java/lang/Runnable
|
||||
|
||||
// module name: test-module
|
||||
}
|
||||
// AnonymousObjectKt$test$1.class
|
||||
// ------------------------------------------
|
||||
local final class .AnonymousObjectKt$test$1 : java/lang/Runnable {
|
||||
|
||||
// signature: run()V
|
||||
public open fun run(): kotlin/Unit
|
||||
|
||||
// module name: test-module
|
||||
}
|
||||
// META-INF/test-module.kotlin_module
|
||||
// ------------------------------------------
|
||||
module {
|
||||
package <root> {
|
||||
AnonymousObjectKt
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
|
||||
fun test() {
|
||||
class Local {
|
||||
inner class Inner {
|
||||
val prop = object {
|
||||
fun foo() {
|
||||
fun bar() {
|
||||
class DeepLocal {
|
||||
inner class Deepest {
|
||||
fun local(): Local = Local()
|
||||
fun inner(): Inner = Inner()
|
||||
fun deep(): DeepLocal = DeepLocal()
|
||||
fun deepest(): Deepest? = Deepest()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
// DeepInnerLocalChainKt.class
|
||||
// ------------------------------------------
|
||||
package {
|
||||
|
||||
// signature: test()V
|
||||
public final fun test(): kotlin/Unit
|
||||
|
||||
// module name: test-module
|
||||
}
|
||||
// DeepInnerLocalChainKt$test$Local.class
|
||||
// ------------------------------------------
|
||||
local final class .DeepInnerLocalChainKt$test$Local : kotlin/Any {
|
||||
|
||||
// signature: <init>()V
|
||||
public constructor()
|
||||
|
||||
// nested class: Inner
|
||||
|
||||
// module name: test-module
|
||||
}
|
||||
// DeepInnerLocalChainKt$test$Local$Inner.class
|
||||
// ------------------------------------------
|
||||
local final inner class .DeepInnerLocalChainKt$test$Local.Inner : kotlin/Any {
|
||||
|
||||
// signature: <init>(LDeepInnerLocalChainKt$test$Local;)V
|
||||
public constructor()
|
||||
|
||||
// field: prop:LDeepInnerLocalChainKt$test$Local$Inner$prop$1;
|
||||
// getter: getProp()LDeepInnerLocalChainKt$test$Local$Inner$prop$1;
|
||||
public final val prop: .DeepInnerLocalChainKt$test$Local$Inner$prop$1
|
||||
public final get
|
||||
|
||||
// module name: test-module
|
||||
}
|
||||
// DeepInnerLocalChainKt$test$Local$Inner$prop$1.class
|
||||
// ------------------------------------------
|
||||
local final class .DeepInnerLocalChainKt$test$Local$Inner$prop$1 : kotlin/Any {
|
||||
|
||||
// signature: foo()V
|
||||
public final fun foo(): kotlin/Unit
|
||||
|
||||
// module name: test-module
|
||||
}
|
||||
// DeepInnerLocalChainKt$test$Local$Inner$prop$1$foo$bar$DeepLocal.class
|
||||
// ------------------------------------------
|
||||
local final class .DeepInnerLocalChainKt$test$Local$Inner$prop$1$foo$bar$DeepLocal : kotlin/Any {
|
||||
|
||||
// signature: <init>(LDeepInnerLocalChainKt$test$Local;)V
|
||||
public constructor()
|
||||
|
||||
// nested class: Deepest
|
||||
|
||||
// module name: test-module
|
||||
}
|
||||
// DeepInnerLocalChainKt$test$Local$Inner$prop$1$foo$bar$DeepLocal$Deepest.class
|
||||
// ------------------------------------------
|
||||
local final inner class .DeepInnerLocalChainKt$test$Local$Inner$prop$1$foo$bar$DeepLocal.Deepest : kotlin/Any {
|
||||
|
||||
// signature: <init>(LDeepInnerLocalChainKt$test$Local$Inner$prop$1$foo$bar$DeepLocal;)V
|
||||
public constructor()
|
||||
|
||||
// signature: deep()LDeepInnerLocalChainKt$test$Local$Inner$prop$1$foo$bar$DeepLocal;
|
||||
public final fun deep(): .DeepInnerLocalChainKt$test$Local$Inner$prop$1$foo$bar$DeepLocal
|
||||
|
||||
// signature: deepest()LDeepInnerLocalChainKt$test$Local$Inner$prop$1$foo$bar$DeepLocal$Deepest;
|
||||
public final fun deepest(): .DeepInnerLocalChainKt$test$Local$Inner$prop$1$foo$bar$DeepLocal.Deepest?
|
||||
|
||||
// signature: inner()LDeepInnerLocalChainKt$test$Local$Inner;
|
||||
public final fun inner(): .DeepInnerLocalChainKt$test$Local.Inner
|
||||
|
||||
// signature: local()LDeepInnerLocalChainKt$test$Local;
|
||||
public final fun local(): .DeepInnerLocalChainKt$test$Local
|
||||
|
||||
// module name: test-module
|
||||
}
|
||||
// META-INF/test-module.kotlin_module
|
||||
// ------------------------------------------
|
||||
module {
|
||||
package <root> {
|
||||
DeepInnerLocalChainKt
|
||||
}
|
||||
}
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
// A.class
|
||||
// ------------------------------------------
|
||||
public final class A : kotlin/Any {
|
||||
|
||||
// signature: <init>()V
|
||||
public constructor()
|
||||
|
||||
// module name: test-module
|
||||
}
|
||||
// A$L.class
|
||||
// ------------------------------------------
|
||||
local final class .A$L<T#0 /* T */> : kotlin/Any {
|
||||
|
||||
// signature: <init>()V
|
||||
public constructor()
|
||||
|
||||
// signature: x(LA$L;)V
|
||||
public final fun x(l: .A$L<.A.L.I>): kotlin/Unit
|
||||
|
||||
// nested class: I
|
||||
|
||||
// module name: test-module
|
||||
}
|
||||
// A$L$I.class
|
||||
// ------------------------------------------
|
||||
local final inner class .A.L.I : kotlin/Any {
|
||||
|
||||
// signature: <init>(LA$L;)V
|
||||
public constructor()
|
||||
|
||||
// module name: test-module
|
||||
}
|
||||
// META-INF/test-module.kotlin_module
|
||||
// ------------------------------------------
|
||||
module {
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
class A {
|
||||
init {
|
||||
class L<T> {
|
||||
inner class I
|
||||
|
||||
fun x(l: L<I>) {}
|
||||
}
|
||||
}
|
||||
}
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
// A.class
|
||||
// ------------------------------------------
|
||||
public final class A : kotlin/Any {
|
||||
|
||||
// signature: <init>()V
|
||||
public constructor()
|
||||
|
||||
// module name: test-module
|
||||
}
|
||||
// A$L.class
|
||||
// ------------------------------------------
|
||||
local final class .A$L<T#0 /* T */> : kotlin/Any {
|
||||
|
||||
// signature: <init>()V
|
||||
public constructor()
|
||||
|
||||
// signature: x(LA$L;)V
|
||||
public final fun x(l: .A$L<.A$L<T#0>.I>): kotlin/Unit
|
||||
|
||||
// nested class: I
|
||||
|
||||
// module name: test-module
|
||||
}
|
||||
// A$L$I.class
|
||||
// ------------------------------------------
|
||||
local final inner class .A$L.I : kotlin/Any {
|
||||
|
||||
// signature: <init>(LA$L;)V
|
||||
public constructor()
|
||||
|
||||
// module name: test-module
|
||||
}
|
||||
// META-INF/test-module.kotlin_module
|
||||
// ------------------------------------------
|
||||
module {
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fun test() {
|
||||
open class Local {
|
||||
fun param(l: Local) {}
|
||||
|
||||
val returnType: Local = this
|
||||
|
||||
fun Local.receiver() = this
|
||||
|
||||
fun <T : Local, U : T> generic(t: T): U = null!!
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
// LocalClassInSignatureKt.class
|
||||
// ------------------------------------------
|
||||
package {
|
||||
|
||||
// signature: test()V
|
||||
public final fun test(): kotlin/Unit
|
||||
|
||||
// module name: test-module
|
||||
}
|
||||
// LocalClassInSignatureKt$test$Local.class
|
||||
// ------------------------------------------
|
||||
local open class .LocalClassInSignatureKt$test$Local : kotlin/Any {
|
||||
|
||||
// signature: <init>()V
|
||||
public constructor()
|
||||
|
||||
// signature: generic(LLocalClassInSignatureKt$test$Local;)LLocalClassInSignatureKt$test$Local;
|
||||
public final fun <T#0 /* T */ : .LocalClassInSignatureKt$test$Local, T#1 /* U */ : T#0> generic(t: T#0): T#1
|
||||
|
||||
// signature: param(LLocalClassInSignatureKt$test$Local;)V
|
||||
public final fun param(l: .LocalClassInSignatureKt$test$Local): kotlin/Unit
|
||||
|
||||
// signature: receiver(LLocalClassInSignatureKt$test$Local;)LLocalClassInSignatureKt$test$Local;
|
||||
public final fun .LocalClassInSignatureKt$test$Local.receiver(): .LocalClassInSignatureKt$test$Local
|
||||
|
||||
// field: returnType:LLocalClassInSignatureKt$test$Local;
|
||||
// getter: getReturnType()LLocalClassInSignatureKt$test$Local;
|
||||
public final val returnType: .LocalClassInSignatureKt$test$Local
|
||||
public final get
|
||||
|
||||
// module name: test-module
|
||||
}
|
||||
// META-INF/test-module.kotlin_module
|
||||
// ------------------------------------------
|
||||
module {
|
||||
package <root> {
|
||||
LocalClassInSignatureKt
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user