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:
-44
@@ -28,14 +28,6 @@ package p {
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public interface G1</*0*/ T> {
|
||||
// -- Module: <m0> --
|
||||
}
|
||||
|
||||
public interface G2</*0*/ A, /*1*/ B> {
|
||||
// -- Module: <m0> --
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -44,24 +36,12 @@ package
|
||||
|
||||
package p {
|
||||
|
||||
public interface B {
|
||||
// -- Module: <m1> --
|
||||
}
|
||||
|
||||
public interface C : p.B {
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public abstract override /*1*/ fun foo(/*0*/ a: p.G1<kotlin.Int>, /*1*/ b: p.G2<p.B, kotlin.String>): p.B?
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public interface G1</*0*/ T> {
|
||||
// -- Module: <m0> --
|
||||
}
|
||||
|
||||
public interface G2</*0*/ A, /*1*/ B> {
|
||||
// -- Module: <m0> --
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -76,14 +56,6 @@ package p {
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public interface G1</*0*/ T> {
|
||||
// -- Module: <m0> --
|
||||
}
|
||||
|
||||
public interface G2</*0*/ A, /*1*/ B> {
|
||||
// -- Module: <m0> --
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -93,20 +65,4 @@ package
|
||||
public fun test(/*0*/ b: p.B?, /*1*/ a: p.G1<kotlin.Int>, /*2*/ b1: p.G2<p.B, kotlin.String>): kotlin.Unit
|
||||
|
||||
package p {
|
||||
|
||||
public interface B {
|
||||
// -- Module: <m3> --
|
||||
}
|
||||
|
||||
public interface C : p.B {
|
||||
// -- Module: <m2> --
|
||||
}
|
||||
|
||||
public interface G1</*0*/ T> {
|
||||
// -- Module: <m0> --
|
||||
}
|
||||
|
||||
public interface G2</*0*/ A, /*1*/ B> {
|
||||
// -- Module: <m0> --
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user