[LL FIR] do not create lazy bodies during on-air resolve in scripts

We assume that on-air resolve already has normal bodies,
so depending on this fact, we can omit some redundant work

^KT-61026 Fixed
This commit is contained in:
Dmitrii Gridin
2023-08-07 16:10:49 +02:00
committed by Space Team
parent 601ffb2db4
commit 734a3e5716
10 changed files with 79 additions and 8 deletions
@@ -0,0 +1,16 @@
package one
class A
class B
fun foo(a: () -> Unit) {
}
foo {
<expr>one.A</expr>
}
foo {
one.B
}
@@ -0,0 +1,7 @@
Before shortening: one.A
with DO_NOT_SHORTEN:
with SHORTEN_IF_ALREADY_IMPORTED:
with SHORTEN_AND_IMPORT:
[qualifier] one.A
with SHORTEN_AND_STAR_IMPORT:
[qualifier] one.A
@@ -0,0 +1,16 @@
package one
class A
class B
fun foo(a: () -> Unit) {
}
foo {
one.A
}
foo {
one.B
}
@@ -0,0 +1,8 @@
with DO_NOT_SHORTEN:
with SHORTEN_IF_ALREADY_IMPORTED:
with SHORTEN_AND_IMPORT:
[qualifier] one.A
[qualifier] one.B
with SHORTEN_AND_STAR_IMPORT:
[qualifier] one.A
[qualifier] one.B