[FIR] Include generated declarations into FIR dump in tests

Also include non root package directive of FirFile to dump
This commit is contained in:
Dmitriy Novozhilov
2021-10-01 11:15:42 +03:00
committed by TeamCityServer
parent ea93d23dca
commit c60ba51f8f
33 changed files with 189 additions and 5 deletions
@@ -1,4 +1,6 @@
FILE: TestCase1.kt
package testsCase1
public final class Case : R|kotlin/Any| {
public constructor(): R|testsCase1/Case| {
super<R|kotlin/Any|>()
@@ -1,4 +1,6 @@
FILE: User.kt
package test
public final class User : R|BaseClass| {
public constructor(): R|test/User| {
super<R|BaseClass|>()
@@ -1,4 +1,6 @@
FILE: test.kt
package some
public final fun test(jc: R|JavaClass|): R|kotlin/Unit| {
R|<local>/jc|.R|/JavaClass.field|
}
@@ -1,4 +1,6 @@
FILE: test.kt
package jvm
public final fun <K> select(x: R|K|, y: R|K|): R|K| {
^select R|<local>/x|
}
@@ -1,4 +1,6 @@
FILE: k.kt
package k
public final class A : R|kotlin/Any| {
public constructor(): R|k/A| {
super<R|kotlin/Any|>()
@@ -40,6 +42,8 @@ FILE: k.kt
}
FILE: j.kt
package j
public final class C : R|kotlin/Any| {
public constructor(): R|j/C| {
super<R|kotlin/Any|>()
@@ -1,5 +1,7 @@
Module: m1
FILE: base.kt
package hello
public final class Hello : R|kotlin/Any| {
public constructor(msg: R|kotlin/String|): R|hello/Hello| {
super<R|kotlin/Any|>()
@@ -20,6 +22,8 @@ FILE: base.kt
}
Module: m2
FILE: user.kt
package test
public final fun foo(hello: R|hello/Hello|): R|kotlin/String| {
^foo R|<local>/hello|.R|hello/Hello.msg|
}