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:
Alexander Udalov
2016-11-23 23:35:11 +03:00
parent a8bd82e863
commit c1eebacd55
63 changed files with 40 additions and 850 deletions
@@ -17,10 +17,6 @@ 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 </*0*/ T> foo(/*0*/ a: T): p.B?
@@ -51,12 +47,4 @@ public fun test(/*0*/ b: p.B?): kotlin.Unit
public fun test1(/*0*/ b: p.B?): kotlin.Unit
package p {
public interface B {
// -- Module: <m3> --
}
public interface C : p.B {
// -- Module: <m2> --
}
}