Do not render declarations from other modules in diagnostic tests
Because PackageViewDescriptor may consist of several package fragments from different modules (see LazyPackageViewDescriptorImpl#fragments), we now filter out fragments from irrelevant modules before rendering them into the .txt
This commit is contained in:
-18
@@ -46,15 +46,7 @@ public fun test2(/*0*/ ab_c: a.b.c): kotlin.Unit
|
||||
|
||||
package a {
|
||||
|
||||
public final class b</*0*/ T> {
|
||||
// -- Module: <m2> --
|
||||
}
|
||||
|
||||
package a.b {
|
||||
|
||||
public final class c {
|
||||
// -- Module: <m1> --
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -100,15 +92,5 @@ package
|
||||
public fun test(/*0*/ a_b: a.b): kotlin.Unit
|
||||
public fun test2(/*0*/ _ab: a.b): kotlin.Unit
|
||||
|
||||
public final class a</*0*/ T> {
|
||||
// -- Module: <top_m2> --
|
||||
}
|
||||
|
||||
package a {
|
||||
|
||||
public final class b {
|
||||
// -- Module: <top_m1> --
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -56,18 +56,8 @@ public fun test(/*0*/ a_b: a.b): kotlin.Unit
|
||||
public fun test2(/*0*/ ab_c: a.b.c): kotlin.Unit
|
||||
|
||||
package a {
|
||||
public fun a_fun(): kotlin.Unit
|
||||
|
||||
public final class b {
|
||||
// -- Module: <_m2> --
|
||||
}
|
||||
|
||||
package a.b {
|
||||
public fun ab_fun(): kotlin.Unit
|
||||
|
||||
public final class c {
|
||||
// -- Module: <_m1> --
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -121,16 +111,7 @@ public fun test(/*0*/ a_b: a.b): kotlin.Unit
|
||||
public fun test2(/*0*/ ab_c: a.b.c): kotlin.Unit
|
||||
|
||||
package a {
|
||||
public fun a_fun(): kotlin.Unit
|
||||
|
||||
public final class b {
|
||||
// -- Module: <m2> --
|
||||
}
|
||||
|
||||
package a.b {
|
||||
|
||||
public final class c {
|
||||
// -- Module: <m1> --
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,14 +31,6 @@ package a {
|
||||
package
|
||||
|
||||
package a {
|
||||
|
||||
public final class a {
|
||||
// -- Module: <m1> --
|
||||
}
|
||||
|
||||
public final class b {
|
||||
// -- Module: <m1> --
|
||||
}
|
||||
}
|
||||
|
||||
package test {
|
||||
@@ -57,18 +49,8 @@ package test {
|
||||
package
|
||||
|
||||
package a {
|
||||
|
||||
public final class a {
|
||||
// -- Module: <m1> --
|
||||
}
|
||||
|
||||
public final class b {
|
||||
// -- Module: <m1> --
|
||||
}
|
||||
}
|
||||
|
||||
package test {
|
||||
public fun foo(/*0*/ i: a.a): kotlin.Unit
|
||||
}
|
||||
|
||||
|
||||
|
||||
-10
@@ -37,20 +37,10 @@ package
|
||||
|
||||
public fun test(/*0*/ _ab: a.b): kotlin.Unit
|
||||
|
||||
public final class a {
|
||||
// -- Module: <m2> --
|
||||
}
|
||||
|
||||
package a {
|
||||
public fun test(/*0*/ a_b: a.b): kotlin.Unit
|
||||
|
||||
public final class b {
|
||||
// -- Module: <m1> --
|
||||
}
|
||||
}
|
||||
|
||||
package some {
|
||||
public fun test(/*0*/ a_b: a.b): kotlin.Unit
|
||||
}
|
||||
|
||||
|
||||
|
||||
-8
@@ -39,10 +39,6 @@ package some {
|
||||
package
|
||||
|
||||
package a {
|
||||
|
||||
public final class b {
|
||||
// -- Module: <m1> --
|
||||
}
|
||||
}
|
||||
|
||||
package other {
|
||||
@@ -77,8 +73,4 @@ package other2 {
|
||||
|
||||
package some {
|
||||
public fun test(/*0*/ _ab: some.a.b): kotlin.Unit
|
||||
|
||||
public final class a {
|
||||
// -- Module: <m2> --
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user