[LL FIR] allow independent resolve for declarations in scripts

^KT-60728
This commit is contained in:
Dmitrii Gridin
2023-07-28 23:18:27 +02:00
committed by Space Team
parent 61981f6026
commit 3686bf7ff9
308 changed files with 17536 additions and 6396 deletions
@@ -276,12 +276,7 @@ fun FirElementWithResolveState.tryCollectDesignationWithFile(): FirDesignationWi
is FirDeclaration -> {
val path = collectDesignationPath(this) ?: return null
val firFile = path.lastOrNull()?.getContainingFile() ?: getContainingFile() ?: return null
val firScript = firFile.declarations.singleOrNull() as? FirScript
if (firScript != null) {
FirDesignationWithFile(path = emptyList(), firScript, firFile)
} else {
FirDesignationWithFile(path, this, firFile)
}
FirDesignationWithFile(path, this, firFile)
}
else -> unexpectedElementError<FirElementWithResolveState>(this)
@@ -14,7 +14,6 @@ import org.jetbrains.kotlin.analysis.low.level.api.fir.file.structure.FileStruct
import org.jetbrains.kotlin.analysis.low.level.api.fir.file.structure.FirElementsRecorder
import org.jetbrains.kotlin.analysis.low.level.api.fir.lazy.resolve.declarationCanBeLazilyResolved
import org.jetbrains.kotlin.analysis.low.level.api.fir.util.findSourceNonLocalFirDeclaration
import org.jetbrains.kotlin.psi.psiUtil.getElementTextWithContext
import org.jetbrains.kotlin.analysis.utils.printer.parentOfType
import org.jetbrains.kotlin.analysis.utils.printer.parentsOfType
import org.jetbrains.kotlin.fir.FirAnnotationContainer
@@ -263,8 +262,7 @@ internal fun PsiElement.getNonLocalContainingOrThisDeclaration(predicate: (KtDec
!notNullCandidate.isPartOf(parent) ||
parent is KtClassInitializer ||
parent is KtObjectLiteralExpression ||
parent is KtCallElement ||
parent is KtScript
parent is KtCallElement
) {
// Candidate turned out to be local. Let's find another one.
candidate = null
@@ -59,6 +59,7 @@ internal fun declarationCanBeLazilyResolved(declaration: KtDeclaration): Boolean
when (val parent = declaration.parent) {
is KtFile -> true
is KtClassBody -> (parent.parent as? KtClassOrObject)?.isLocal == false
is KtBlockExpression -> parent.parent is KtScript
else -> false
}
}
@@ -1,11 +1,11 @@
/* NonReanalyzableNonClassDeclarationStructureElement */class X {
var x: Int
/* NonReanalyzableNonClassDeclarationStructureElement */class X {/* NonReanalyzableClassDeclarationStructureElement */
var x: Int/* ReanalyzablePropertyStructureElement */
get() = field
set(value) {
field = value
}
val y = 42
val y = 42/* NonReanalyzableNonClassDeclarationStructureElement */
var z: Int = 15
var z: Int = 15/* NonReanalyzableNonClassDeclarationStructureElement */
}
@@ -1,6 +1,6 @@
/* NonReanalyzableNonClassDeclarationStructureElement */class A {
fun x() {
/* NonReanalyzableNonClassDeclarationStructureElement */class A {/* NonReanalyzableClassDeclarationStructureElement */
fun x() {/* ReanalyzableFunctionStructureElement */
}
fun y(): Int = 10
fun y(): Int = 10/* ReanalyzableFunctionStructureElement */
}
@@ -1,9 +1,9 @@
/* NonReanalyzableNonClassDeclarationStructureElement */class A
(val a: Int)
(val a: Int)/* NonReanalyzableNonClassDeclarationStructureElement */
{
constructor() : this(1) {
{/* NonReanalyzableClassDeclarationStructureElement */
constructor() : this(1) {/* NonReanalyzableNonClassDeclarationStructureElement */
}
}
@@ -1,14 +1,14 @@
/* NonReanalyzableNonClassDeclarationStructureElement */class Foo {
/* NonReanalyzableNonClassDeclarationStructureElement */class Foo {/* NonReanalyzableClassDeclarationStructureElement */
@Suppress("") @MustBeDocumented
}
class Bar {
class Bar {/* NonReanalyzableClassDeclarationStructureElement */
@Suppress("") @MustBeDocumented
}
class Outer {
class Inner {
class Outer {/* NonReanalyzableClassDeclarationStructureElement */
class Inner {/* NonReanalyzableClassDeclarationStructureElement */
@Suppress("") @MustBeDocumented
}
fun foo() {
fun foo() {/* ReanalyzableFunctionStructureElement */
class Local {
@Suppress("") @MustBeDocumented
}
@@ -1,11 +1,11 @@
/* NonReanalyzableNonClassDeclarationStructureElement */class A {
/* NonReanalyzableNonClassDeclarationStructureElement */class A {/* NonReanalyzableClassDeclarationStructureElement */
val a = run {
class X()
val y = 10
}
}/* NonReanalyzableNonClassDeclarationStructureElement */
}
inline fun <R> run(block: () -> R): R {
inline fun <R> run(block: () -> R): R {/* ReanalyzableFunctionStructureElement */
return block()
}
@@ -1,13 +1,13 @@
/* NonReanalyzableNonClassDeclarationStructureElement */enum class A {
X,
Y,
/* NonReanalyzableNonClassDeclarationStructureElement */enum class A {/* NonReanalyzableClassDeclarationStructureElement */
X,/* NonReanalyzableNonClassDeclarationStructureElement */
Y,/* NonReanalyzableNonClassDeclarationStructureElement */
Z
;
;/* NonReanalyzableNonClassDeclarationStructureElement */
fun foo(){}
fun foo(){/* ReanalyzableFunctionStructureElement */}
val x = 10
val x = 10/* NonReanalyzableNonClassDeclarationStructureElement */
fun bar() = 10
fun bar() = 10/* NonReanalyzableNonClassDeclarationStructureElement */
}
@@ -1,13 +1,13 @@
/* NonReanalyzableNonClassDeclarationStructureElement */enum class A {
X {
/* NonReanalyzableNonClassDeclarationStructureElement */enum class A {/* NonReanalyzableClassDeclarationStructureElement */
X {/* NonReanalyzableNonClassDeclarationStructureElement */
fun localInX() = 1
},
Y {
Y {/* NonReanalyzableNonClassDeclarationStructureElement */
override fun foo() {}
},
Z,
;
;/* NonReanalyzableNonClassDeclarationStructureElement */
open fun foo() {}
open fun foo() {/* ReanalyzableFunctionStructureElement */}
}
@@ -1,5 +1,5 @@
/* NonReanalyzableNonClassDeclarationStructureElement */class A {
init {
/* NonReanalyzableNonClassDeclarationStructureElement */class A {/* NonReanalyzableClassDeclarationStructureElement */
init {/* NonReanalyzableNonClassDeclarationStructureElement */
val x = 10
class B
}
@@ -1,9 +1,9 @@
/* NonReanalyzableNonClassDeclarationStructureElement */fun a() {
/* NonReanalyzableNonClassDeclarationStructureElement */fun a() {/* ReanalyzableFunctionStructureElement */
class X
}
class Y {
fun b() {
class Y {/* NonReanalyzableClassDeclarationStructureElement */
fun b() {/* ReanalyzableFunctionStructureElement */
class Z
}
}
@@ -1,11 +1,11 @@
/* NonReanalyzableNonClassDeclarationStructureElement */fun x() {
/* NonReanalyzableNonClassDeclarationStructureElement */fun x() {/* ReanalyzableFunctionStructureElement */
fun y() {
}
}
class A {
fun z() {
class A {/* NonReanalyzableClassDeclarationStructureElement */
fun z() {/* ReanalyzableFunctionStructureElement */
fun q() {
}
@@ -1,14 +1,14 @@
/* NonReanalyzableNonClassDeclarationStructureElement */fun foo() {
/* NonReanalyzableNonClassDeclarationStructureElement */fun foo() {/* ReanalyzableFunctionStructureElement */
var x: Int
}
class A {
fun q() {
class A {/* NonReanalyzableClassDeclarationStructureElement */
fun q() {/* ReanalyzableFunctionStructureElement */
val y = 42
}
}
class B {
class C {
fun u() {
class B {/* NonReanalyzableClassDeclarationStructureElement */
class C {/* NonReanalyzableClassDeclarationStructureElement */
fun u() {/* ReanalyzableFunctionStructureElement */
var z: Int = 15
}
}
@@ -1,3 +1,3 @@
/* NonReanalyzableNonClassDeclarationStructureElement */class A {
typealias X = Int
/* NonReanalyzableNonClassDeclarationStructureElement */class A {/* NonReanalyzableClassDeclarationStructureElement */
typealias X = Int/* NonReanalyzableNonClassDeclarationStructureElement */
}
@@ -1,16 +1,16 @@
/* NonReanalyzableNonClassDeclarationStructureElement */class A {
class B {
fun x() {
/* NonReanalyzableNonClassDeclarationStructureElement */class A {/* NonReanalyzableClassDeclarationStructureElement */
class B {/* NonReanalyzableClassDeclarationStructureElement */
fun x() {/* ReanalyzableFunctionStructureElement */
}
class C {
class C {/* NonReanalyzableClassDeclarationStructureElement */
}
}
class E {
class E {/* NonReanalyzableClassDeclarationStructureElement */
}
fun y(): Int = 10
fun y(): Int = 10/* ReanalyzableFunctionStructureElement */
}
@@ -1,11 +1,11 @@
/* NonReanalyzableNonClassDeclarationStructureElement */var x: Int = 10
/* NonReanalyzableNonClassDeclarationStructureElement */var x: Int = 10/* ReanalyzablePropertyStructureElement */
get() = field
set(value) {
field = value
}
class X {
var y: Int = 10
class X {/* NonReanalyzableClassDeclarationStructureElement */
var y: Int = 10/* ReanalyzablePropertyStructureElement */
get() = field
set(value) {
field = value
@@ -1,12 +1,13 @@
/* NonReanalyzableNonClassDeclarationStructureElement */class Builder {
var version: String = ""
/* NonReanalyzableNonClassDeclarationStructureElement */class Builder {/* NonReanalyzableClassDeclarationStructureElement */
var version: String = ""/* NonReanalyzableNonClassDeclarationStructureElement */
fun execute() {
fun execute() {/* ReanalyzableFunctionStructureElement */
println(version)
}
}
fun build(action: Builder.() -> Unit) = Builder().apply(action)
fun build(action: Builder.() -> Unit) = Builder().apply(action)/* NonReanalyzableNonClassDeclarationStructureElement */
fun build2(action: Builder.() -> Unit): Builder = Builder().apply(action)/* ReanalyzableFunctionStructureElement */
build {
version = "123"
@@ -21,6 +22,6 @@ build {
val builder = build {
version = "321"
}
}/* NonReanalyzableNonClassDeclarationStructureElement */
builder.execute()
@@ -22,6 +22,10 @@ FILE: [ResolvedTo(IMPORTS)] script.kts
^build Builder#().apply#(action#)
}
public? final? [ResolvedTo(RAW_FIR)] fun build2([ResolvedTo(RAW_FIR)] action: ( Builder.() -> Unit )): Builder {
^build2 Builder#().apply#(action#)
}
build#(<L> = [ResolvedTo(RAW_FIR)] build@fun <implicit>.<anonymous>(): <implicit> <inline=Unknown> {
version# = String(123)
local final? [ResolvedTo(RAW_FIR)] class A : R|kotlin/Any| {
@@ -1,16 +1,16 @@
/* NonReanalyzableNonClassDeclarationStructureElement */open class A
(init: A.() -> Unit)
{
val prop: String = ""
(init: A.() -> Unit)/* NonReanalyzableNonClassDeclarationStructureElement */
{/* NonReanalyzableClassDeclarationStructureElement */
val prop: String = ""/* NonReanalyzableNonClassDeclarationStructureElement */
}
class B() : A()
class B()/* NonReanalyzableNonClassDeclarationStructureElement */ : A()/* NonReanalyzableClassDeclarationStructureElement */
object C : A(
{
fun foo() = B.prop.toString()
}
) {
) {/* NonReanalyzableClassDeclarationStructureElement */
}
@@ -20,16 +20,16 @@ val f = object : A(
}
) {
}
}/* NonReanalyzableNonClassDeclarationStructureElement */
class D : A(
{
fun foo() = B.prop.toString()
}
) {
) {/* NonReanalyzableClassDeclarationStructureElement */
constructor(): super(
{
fun boo() = prop.toString()
}
)
)/* NonReanalyzableNonClassDeclarationStructureElement */
}
@@ -1 +1 @@
/* NonReanalyzableNonClassDeclarationStructureElement */fun foo(): Int = 42
/* NonReanalyzableNonClassDeclarationStructureElement */fun foo(): Int = 42/* ReanalyzableFunctionStructureElement */
@@ -1 +1 @@
/* NonReanalyzableNonClassDeclarationStructureElement */fun foo() = 42
/* NonReanalyzableNonClassDeclarationStructureElement */fun foo() = 42/* NonReanalyzableNonClassDeclarationStructureElement */
@@ -1,4 +1,4 @@
/* NonReanalyzableNonClassDeclarationStructureElement */fun foo(): Int {
/* NonReanalyzableNonClassDeclarationStructureElement */fun foo(): Int {/* ReanalyzableFunctionStructureElement */
println("")
return 10
}
@@ -1,9 +1,9 @@
/* NonReanalyzableNonClassDeclarationStructureElement */var x: Int
/* NonReanalyzableNonClassDeclarationStructureElement */var x: Int/* ReanalyzablePropertyStructureElement */
get() = field
set(value) {
field = value
}
val y = 42
val y = 42/* NonReanalyzableNonClassDeclarationStructureElement */
var z: Int = 15
var z: Int = 15/* NonReanalyzableNonClassDeclarationStructureElement */
@@ -1,3 +1,3 @@
/* NonReanalyzableNonClassDeclarationStructureElement */fun foo() {
/* NonReanalyzableNonClassDeclarationStructureElement */fun foo() {/* ReanalyzableFunctionStructureElement */
println("")
}
@@ -1,27 +1,27 @@
/* NonReanalyzableNonClassDeclarationStructureElement */fun (a: Int = 1): String = "str"
/* NonReanalyzableNonClassDeclarationStructureElement */fun (a: Int = 1): String = "str"/* ReanalyzableFunctionStructureElement */
fun () {
fun () {/* ReanalyzableFunctionStructureElement */
}
val : Int = 4
val : Int = 4/* NonReanalyzableNonClassDeclarationStructureElement */
var : Int
var : Int/* ReanalyzablePropertyStructureElement */
get() = 4
set(value) {
}
class A {
fun (a: Int = 1): String = "str"
class A {/* NonReanalyzableClassDeclarationStructureElement */
fun (a: Int = 1): String = "str"/* ReanalyzableFunctionStructureElement */
fun () {
fun () {/* ReanalyzableFunctionStructureElement */
}
val : Int = 4
val : Int = 4/* NonReanalyzableNonClassDeclarationStructureElement */
var : Boolean
var : Boolean/* ReanalyzablePropertyStructureElement */
get() = true
set(value) {
@@ -8,18 +8,18 @@ String(y)
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] annotationApplicationArgumentScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public final? [ResolvedTo(RAW_FIR)] annotation class Annotation : R|kotlin/Annotation| {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Annotation] constructor([ResolvedTo(RAW_FIR)] [CorrespondingProperty=/Annotation.name] name: String): R|Annotation| {
public final [ResolvedTo(STATUS)] annotation class Annotation : R|kotlin/Annotation| {
public [ResolvedTo(STATUS)] [ContainingClassKey=Annotation] constructor([ResolvedTo(STATUS)] [CorrespondingProperty=/Annotation.name] name: R|kotlin/String|): R|Annotation| {
super<R|kotlin/Any|>()
}
public? final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val name: String = R|<local>/name|
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Annotation] get(): String
public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] val name: R|kotlin/String| = R|<local>/name|
public [ResolvedTo(STATUS)] [ContainingClassKey=Annotation] get(): R|kotlin/String|
}
@Annotation[Unresolved](String(y)) public? final? [ResolvedTo(RAW_FIR)] fun x(): R|kotlin/Unit| {
@R|Annotation|[Types](name = String(y)) public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] fun x(): R|kotlin/Unit| {
}
@@ -3,13 +3,13 @@ FIR element: FirAnnotationCallImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
@Suppress[Unresolved](String())
@R|kotlin/Suppress|[Types](names = vararg(String()))
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] annotationApplicationCallExpressionScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
@Suppress[Unresolved](String()) public? final? [ResolvedTo(RAW_FIR)] fun x(): R|kotlin/Unit| {
@R|kotlin/Suppress|[Types](names = vararg(String())) public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] fun x(): R|kotlin/Unit| {
}
@@ -3,14 +3,14 @@ FIR element: FirAnnotationCallImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
@kotlin.internal.NoInfer[Unresolved]()
@<ERROR TYPE REF: HIDDEN: kotlin/internal/NoInfer is invisible>[Unresolved]()
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] annotationOnReturnTypeScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] fun <reified [ResolvedTo(RAW_FIR)] T : Number> String.collectOfType([ResolvedTo(RAW_FIR)] i: Int): Sequence<@kotlin.internal.NoInfer[Unresolved]() T> {
public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] fun <reified [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] T : R|kotlin/Number|> R|kotlin/String|.collectOfType([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] i: R|kotlin/Int|): <ERROR TYPE REF: Symbol not found for Sequence> {
^collectOfType IntegerLiteral(4)
}
@@ -1,17 +1,17 @@
KT element: KtNameReferenceExpression
FIR element: FirPropertyAccessExpressionImpl
FIR element: FirResolvedNamedReferenceImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
AnnotationRetention#.SOURCE#
R|kotlin/annotation/AnnotationRetention.SOURCE|
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] retentionValueScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
@Retention[Unresolved](AnnotationRetention#.SOURCE#) public? final? [ResolvedTo(RAW_FIR)] annotation class Anno : R|kotlin/Annotation| {
@R|kotlin/annotation/Retention|[Types](value = Q|kotlin/annotation/AnnotationRetention|.R|kotlin/annotation/AnnotationRetention.SOURCE|) public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] annotation class Anno : R|kotlin/Annotation| {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] constructor(): R|Anno| {
super<R|kotlin/Any|>()
}
@@ -3,31 +3,31 @@ FIR element: FirAnnotationCallImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
@Anno[Unresolved]()
@R|Anno|[Types]()
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] superCallAnnotationScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
@Target[Unresolved](AnnotationTarget#.TYPE#) public? final? [ResolvedTo(RAW_FIR)] annotation class Anno : R|kotlin/Annotation| {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] constructor(): R|Anno| {
@R|kotlin/annotation/Target|[Types](Q|kotlin/annotation/AnnotationTarget|.R|kotlin/annotation/AnnotationTarget.TYPE|) public final [ResolvedTo(STATUS)] annotation class Anno : R|kotlin/Annotation| {
public [ResolvedTo(STATUS)] [ContainingClassKey=Anno] constructor(): R|Anno| {
super<R|kotlin/Any|>()
}
}
public? open [ResolvedTo(RAW_FIR)] class A : R|kotlin/Any| {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor(): R|A| {
public open [ResolvedTo(STATUS)] class A : R|kotlin/Any| {
public [ResolvedTo(STATUS)] [ContainingClassKey=A] constructor(): R|A| {
super<R|kotlin/Any|>()
}
}
public? final? [ResolvedTo(RAW_FIR)] class B : @Anno[Unresolved]() A {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=B] constructor(): R|B| {
super<@Anno[Unresolved]() A>()
public final [ResolvedTo(BODY_RESOLVE)] class B : R|@R|Anno|() A| {
public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=B] constructor(): R|B| {
super<R|@R|Anno|() A|>()
}
}
@@ -8,22 +8,22 @@ String(abc)
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] typeOnAnnotationOnConstructorParameterExpressionScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] class ResolveMe : R|kotlin/Any| {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=ResolveMe] constructor([ResolvedTo(RAW_FIR)] addCommaWarning: @Anno[Unresolved](String(abc)) Boolean = Boolean(false)): R|ResolveMe| {
public final [ResolvedTo(STATUS)] class ResolveMe : R|kotlin/Any| {
public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=ResolveMe] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] addCommaWarning: R|@R|Anno|(s = String(abc)) kotlin/Boolean| = Boolean(false)): R|ResolveMe| {
super<R|kotlin/Any|>()
}
}
@Target[Unresolved](AnnotationTarget#.TYPE#) public? final? [ResolvedTo(RAW_FIR)] annotation class Anno : R|kotlin/Annotation| {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] constructor([ResolvedTo(RAW_FIR)] [CorrespondingProperty=/Anno.s] s: String): R|Anno| {
@R|kotlin/annotation/Target|[Types](Q|kotlin/annotation/AnnotationTarget|.R|kotlin/annotation/AnnotationTarget.TYPE|) public final [ResolvedTo(STATUS)] annotation class Anno : R|kotlin/Annotation| {
public [ResolvedTo(STATUS)] [ContainingClassKey=Anno] constructor([ResolvedTo(STATUS)] [CorrespondingProperty=/Anno.s] s: R|kotlin/String|): R|Anno| {
super<R|kotlin/Any|>()
}
public? final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val s: String = R|<local>/s|
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] get(): String
public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] val s: R|kotlin/String| = R|<local>/s|
public [ResolvedTo(STATUS)] [ContainingClassKey=Anno] get(): R|kotlin/String|
}
@@ -1,5 +1,4 @@
// LOOK_UP_FOR_ELEMENT_OF_TYPE: org.jetbrains.kotlin.psi.KtAnnotationEntry
// IGNORE_FIR
class ResolveMe(
addCommaWarning: <expr>@Anno</expr> Boolean = false
@@ -0,0 +1,33 @@
KT element: KtAnnotationEntry
FIR element: FirAnnotationCallImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
@R|Anno|[Types]()
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] typeOnAnnotationOnConstructorParameterScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public final [ResolvedTo(STATUS)] class ResolveMe : R|A| {
public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=ResolveMe] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] addCommaWarning: R|@R|Anno|() kotlin/Boolean| = Boolean(false)): R|ResolveMe| {
super<R|A|>()
}
}
public open [ResolvedTo(STATUS)] class A : R|kotlin/Any| {
public [ResolvedTo(STATUS)] [ContainingClassKey=A] constructor(): R|A| {
super<R|kotlin/Any|>()
}
}
@R|kotlin/annotation/Target|[Types](Q|kotlin/annotation/AnnotationTarget|.R|kotlin/annotation/AnnotationTarget.TYPE|) public final [ResolvedTo(STATUS)] annotation class Anno : R|kotlin/Annotation| {
public [ResolvedTo(STATUS)] [ContainingClassKey=Anno] constructor(): R|Anno| {
super<R|kotlin/Any|>()
}
}
@@ -1,5 +1,4 @@
// LOOK_UP_FOR_ELEMENT_OF_TYPE: org.jetbrains.kotlin.psi.KtAnnotationEntry
// IGNORE_FIR
class ResolveMe(
var addCommaWarning: <expr>@Anno</expr> Boolean = false,
@@ -0,0 +1,37 @@
KT element: KtAnnotationEntry
FIR element: FirAnnotationCallImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
@R|Anno|[Types]()
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] typeOnAnnotationOnConstructorPropertyScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public final [ResolvedTo(STATUS)] class ResolveMe : R|A| {
public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=ResolveMe] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [CorrespondingProperty=/ResolveMe.addCommaWarning] addCommaWarning: R|@R|Anno|() kotlin/Boolean| = Boolean(false)): R|ResolveMe| {
super<R|A|>()
}
public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] var addCommaWarning: R|@R|Anno|() kotlin/Boolean| = R|<local>/addCommaWarning|
public [ResolvedTo(STATUS)] [ContainingClassKey=ResolveMe] get(): R|@R|Anno|() kotlin/Boolean|
public [ResolvedTo(STATUS)] [ContainingClassKey=ResolveMe] set([ResolvedTo(STATUS)] value: R|@R|Anno|() kotlin/Boolean|): R|kotlin/Unit|
}
public open [ResolvedTo(STATUS)] class A : R|kotlin/Any| {
public [ResolvedTo(STATUS)] [ContainingClassKey=A] constructor(): R|A| {
super<R|kotlin/Any|>()
}
}
@R|kotlin/annotation/Target|[Types](Q|kotlin/annotation/AnnotationTarget|.R|kotlin/annotation/AnnotationTarget.TYPE|) public final [ResolvedTo(STATUS)] annotation class Anno : R|kotlin/Annotation| {
public [ResolvedTo(STATUS)] [ContainingClassKey=Anno] constructor(): R|Anno| {
super<R|kotlin/Any|>()
}
}
@@ -1,5 +1,4 @@
// LOOK_UP_FOR_ELEMENT_OF_TYPE: org.jetbrains.kotlin.psi.KtAnnotationEntry
// IGNORE_FIR
class ResolveMe(
var addCommaWarning: <expr>@Anno("abc")</expr> Boolean = false,
@@ -0,0 +1,40 @@
KT element: KtAnnotationEntry
FIR element: FirAnnotationCallImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
@R|Anno|[Types](value = String(abc))
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] typeOnAnnotationOnConstructorPropertyWithArgumentsScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public final [ResolvedTo(STATUS)] class ResolveMe : R|A| {
public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=ResolveMe] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [CorrespondingProperty=/ResolveMe.addCommaWarning] addCommaWarning: R|@R|Anno|(value = String(abc)) kotlin/Boolean| = Boolean(false)): R|ResolveMe| {
super<R|A|>()
}
public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] var addCommaWarning: R|@R|Anno|(String(abc)) kotlin/Boolean| = R|<local>/addCommaWarning|
public [ResolvedTo(STATUS)] [ContainingClassKey=ResolveMe] get(): R|@R|Anno|(String(abc)) kotlin/Boolean|
public [ResolvedTo(STATUS)] [ContainingClassKey=ResolveMe] set([ResolvedTo(STATUS)] value: R|@R|Anno|(String(abc)) kotlin/Boolean|): R|kotlin/Unit|
}
public open [ResolvedTo(STATUS)] class A : R|kotlin/Any| {
public [ResolvedTo(STATUS)] [ContainingClassKey=A] constructor(): R|A| {
super<R|kotlin/Any|>()
}
}
@R|kotlin/annotation/Target|[Types](Q|kotlin/annotation/AnnotationTarget|.R|kotlin/annotation/AnnotationTarget.TYPE|) public final [ResolvedTo(STATUS)] annotation class Anno : R|kotlin/Annotation| {
public [ResolvedTo(STATUS)] [ContainingClassKey=Anno] constructor([ResolvedTo(STATUS)] [CorrespondingProperty=/Anno.value] value: R|kotlin/String|): R|Anno| {
super<R|kotlin/Any|>()
}
public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] val value: R|kotlin/String| = R|<local>/value|
public [ResolvedTo(STATUS)] [ContainingClassKey=Anno] get(): R|kotlin/String|
}
@@ -3,15 +3,15 @@ FIR element: FirAnnotationCallImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
@Anno[Unresolved]()
@R|Anno|[Types]()
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] typeOnAnnotationOnFunctionParameterScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] fun t([ResolvedTo(RAW_FIR)] addCommaWarning: @Anno[Unresolved]() Boolean): R|kotlin/Unit| {
public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] fun t([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] addCommaWarning: R|@R|Anno|() kotlin/Boolean|): R|kotlin/Unit| {
}
public? open [ResolvedTo(RAW_FIR)] class A : R|kotlin/Any| {
@@ -21,8 +21,8 @@ FILE: [ResolvedTo(IMPORTS)] typeOnAnnotationOnFunctionParameterScript.kts
}
@Target[Unresolved](AnnotationTarget#.TYPE#) public? final? [ResolvedTo(RAW_FIR)] annotation class Anno : R|kotlin/Annotation| {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] constructor(): R|Anno| {
@R|kotlin/annotation/Target|[Types](Q|kotlin/annotation/AnnotationTarget|.R|kotlin/annotation/AnnotationTarget.TYPE|) public final [ResolvedTo(STATUS)] annotation class Anno : R|kotlin/Annotation| {
public [ResolvedTo(STATUS)] [ContainingClassKey=Anno] constructor(): R|Anno| {
super<R|kotlin/Any|>()
}
@@ -3,15 +3,15 @@ FIR element: FirAnnotationCallImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
@Anno[Unresolved](String(abcd))
@R|Anno|[Types](value = String(abcd))
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] typeOnAnnotationOnFunctionParameterWithArgumentsScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] fun t([ResolvedTo(RAW_FIR)] addCommaWarning: @Anno[Unresolved](String(abcd)) Boolean): R|kotlin/Unit| {
public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] fun t([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] addCommaWarning: R|@R|Anno|(value = String(abcd)) kotlin/Boolean|): R|kotlin/Unit| {
}
public? open [ResolvedTo(RAW_FIR)] class A : R|kotlin/Any| {
@@ -21,12 +21,12 @@ FILE: [ResolvedTo(IMPORTS)] typeOnAnnotationOnFunctionParameterWithArgumentsScri
}
@Target[Unresolved](AnnotationTarget#.TYPE#) public? final? [ResolvedTo(RAW_FIR)] annotation class Anno : R|kotlin/Annotation| {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] constructor([ResolvedTo(RAW_FIR)] [CorrespondingProperty=/Anno.value] value: String): R|Anno| {
@R|kotlin/annotation/Target|[Types](Q|kotlin/annotation/AnnotationTarget|.R|kotlin/annotation/AnnotationTarget.TYPE|) public final [ResolvedTo(STATUS)] annotation class Anno : R|kotlin/Annotation| {
public [ResolvedTo(STATUS)] [ContainingClassKey=Anno] constructor([ResolvedTo(STATUS)] [CorrespondingProperty=/Anno.value] value: R|kotlin/String|): R|Anno| {
super<R|kotlin/Any|>()
}
public? final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val value: String = R|<local>/value|
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] get(): String
public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] val value: R|kotlin/String| = R|<local>/value|
public [ResolvedTo(STATUS)] [ContainingClassKey=Anno] get(): R|kotlin/String|
}
@@ -3,24 +3,24 @@ FIR element: FirAnnotationCallImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
@Anno[Unresolved](String(ab))
@R|Anno|[Types](s = String(ab))
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] typeOnAnnotationOnReceiverFunctionScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] fun @Anno[Unresolved](String(ab)) Int.check(): <implicit> {
^check IntegerLiteral(1)
public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] fun R|@R|Anno|(s = String(ab)) kotlin/Int|.check(): R|kotlin/Int| {
^check Int(1)
}
@Target[Unresolved](AnnotationTarget#.TYPE#) public? final? [ResolvedTo(RAW_FIR)] annotation class Anno : R|kotlin/Annotation| {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] constructor([ResolvedTo(RAW_FIR)] [CorrespondingProperty=/Anno.s] s: String): R|Anno| {
@R|kotlin/annotation/Target|[Types](Q|kotlin/annotation/AnnotationTarget|.R|kotlin/annotation/AnnotationTarget.TYPE|) public final [ResolvedTo(STATUS)] annotation class Anno : R|kotlin/Annotation| {
public [ResolvedTo(STATUS)] [ContainingClassKey=Anno] constructor([ResolvedTo(STATUS)] [CorrespondingProperty=/Anno.s] s: R|kotlin/String|): R|Anno| {
super<R|kotlin/Any|>()
}
public? final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val s: String = R|<local>/s|
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] get(): String
public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] val s: R|kotlin/String| = R|<local>/s|
public [ResolvedTo(STATUS)] [ContainingClassKey=Anno] get(): R|kotlin/String|
}
@@ -3,24 +3,24 @@ FIR element: FirAnnotationCallImpl
FIR source kind: FromUseSiteTarget
FIR element rendered:
@RECEIVER:Anno[Unresolved](String(ab))
@RECEIVER:R|Anno|[Types](s = String(ab))
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] typeOnAnnotationOnReceiverParameterScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] fun @RECEIVER:Anno[Unresolved](String(ab)) Int.check(): <implicit> {
^check IntegerLiteral(1)
public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] fun @RECEIVER:R|Anno|[Types](s = String(ab)) R|kotlin/Int|.check(): R|kotlin/Int| {
^check Int(1)
}
@Target[Unresolved](AnnotationTarget#.TYPE#) public? final? [ResolvedTo(RAW_FIR)] annotation class Anno : R|kotlin/Annotation| {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] constructor([ResolvedTo(RAW_FIR)] [CorrespondingProperty=/Anno.s] s: String): R|Anno| {
@R|kotlin/annotation/Target|[Types](Q|kotlin/annotation/AnnotationTarget|.R|kotlin/annotation/AnnotationTarget.TYPE|) public final [ResolvedTo(STATUS)] annotation class Anno : R|kotlin/Annotation| {
public [ResolvedTo(STATUS)] [ContainingClassKey=Anno] constructor([ResolvedTo(STATUS)] [CorrespondingProperty=/Anno.s] s: R|kotlin/String|): R|Anno| {
super<R|kotlin/Any|>()
}
public? final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val s: String = R|<local>/s|
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] get(): String
public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] val s: R|kotlin/String| = R|<local>/s|
public [ResolvedTo(STATUS)] [ContainingClassKey=Anno] get(): R|kotlin/String|
}
@@ -1,27 +1,27 @@
KT element: KtTypeReference
FIR element: FirAnnotationCallImpl
FIR element: FirResolvedTypeRefImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
@Anno[Unresolved](String(a))
R|Anno|
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] typeOnAnnotationOnReceiverPropertyCallScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] val @Anno[Unresolved](String(a)) Int.i: String
public? [ResolvedTo(RAW_FIR)] get(): String {
public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] val R|@R|Anno|(s = String(a)) kotlin/Int|.i: R|kotlin/String|
public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] get(): R|kotlin/String| {
^ String()
}
@Target[Unresolved](AnnotationTarget#.TYPE#) public? final? [ResolvedTo(RAW_FIR)] annotation class Anno : R|kotlin/Annotation| {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] constructor([ResolvedTo(RAW_FIR)] [CorrespondingProperty=/Anno.s] s: String): R|Anno| {
@R|kotlin/annotation/Target|[Types](Q|kotlin/annotation/AnnotationTarget|.R|kotlin/annotation/AnnotationTarget.TYPE|) public final [ResolvedTo(STATUS)] annotation class Anno : R|kotlin/Annotation| {
public [ResolvedTo(STATUS)] [ContainingClassKey=Anno] constructor([ResolvedTo(STATUS)] [CorrespondingProperty=/Anno.s] s: R|kotlin/String|): R|Anno| {
super<R|kotlin/Any|>()
}
public? final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val s: String = R|<local>/s|
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] get(): String
public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] val s: R|kotlin/String| = R|<local>/s|
public [ResolvedTo(STATUS)] [ContainingClassKey=Anno] get(): R|kotlin/String|
}
@@ -3,25 +3,25 @@ FIR element: FirAnnotationCallImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
@Anno[Unresolved](String(a))
@R|Anno|[Types](s = String(a))
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] typeOnAnnotationOnReceiverPropertyScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] val @Anno[Unresolved](String(a)) Int.i: String
public? [ResolvedTo(RAW_FIR)] get(): String {
public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] val R|@R|Anno|(s = String(a)) kotlin/Int|.i: R|kotlin/String|
public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] get(): R|kotlin/String| {
^ String()
}
@Target[Unresolved](AnnotationTarget#.TYPE#) public? final? [ResolvedTo(RAW_FIR)] annotation class Anno : R|kotlin/Annotation| {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] constructor([ResolvedTo(RAW_FIR)] [CorrespondingProperty=/Anno.s] s: String): R|Anno| {
@R|kotlin/annotation/Target|[Types](Q|kotlin/annotation/AnnotationTarget|.R|kotlin/annotation/AnnotationTarget.TYPE|) public final [ResolvedTo(STATUS)] annotation class Anno : R|kotlin/Annotation| {
public [ResolvedTo(STATUS)] [ContainingClassKey=Anno] constructor([ResolvedTo(STATUS)] [CorrespondingProperty=/Anno.s] s: R|kotlin/String|): R|Anno| {
super<R|kotlin/Any|>()
}
public? final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val s: String = R|<local>/s|
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] get(): String
public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] val s: R|kotlin/String| = R|<local>/s|
public [ResolvedTo(STATUS)] [ContainingClassKey=Anno] get(): R|kotlin/String|
}
@@ -3,24 +3,24 @@ FIR element: FirAnnotationCallImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
@Anno[Unresolved](String(ab))
@R|Anno|[Types](s = String(ab))
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] typeOnAnnotationOnReturnFunctionScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] fun check(): @Anno[Unresolved](String(ab)) Int {
public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] fun check(): R|@R|Anno|(s = String(ab)) kotlin/Int| {
^check IntegerLiteral(1)
}
@Target[Unresolved](AnnotationTarget#.TYPE#) public? final? [ResolvedTo(RAW_FIR)] annotation class Anno : R|kotlin/Annotation| {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] constructor([ResolvedTo(RAW_FIR)] [CorrespondingProperty=/Anno.s] s: String): R|Anno| {
@R|kotlin/annotation/Target|[Types](Q|kotlin/annotation/AnnotationTarget|.R|kotlin/annotation/AnnotationTarget.TYPE|) public final [ResolvedTo(STATUS)] annotation class Anno : R|kotlin/Annotation| {
public [ResolvedTo(STATUS)] [ContainingClassKey=Anno] constructor([ResolvedTo(STATUS)] [CorrespondingProperty=/Anno.s] s: R|kotlin/String|): R|Anno| {
super<R|kotlin/Any|>()
}
public? final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val s: String = R|<local>/s|
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] get(): String
public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] val s: R|kotlin/String| = R|<local>/s|
public [ResolvedTo(STATUS)] [ContainingClassKey=Anno] get(): R|kotlin/String|
}
@@ -3,23 +3,23 @@ FIR element: FirAnnotationCallImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
@Anno[Unresolved](String(ab))
@R|Anno|[Types](s = String(ab))
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] typeOnAnnotationOnReturnPropertyScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] val i: @Anno[Unresolved](String(ab)) Int = IntegerLiteral(1)
public? [ResolvedTo(RAW_FIR)] get(): @Anno[Unresolved](String(ab)) Int
public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] val i: R|@R|Anno|(s = String(ab)) kotlin/Int| = Int(1)
public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] get(): R|@R|Anno|(s = String(ab)) kotlin/Int|
@Target[Unresolved](AnnotationTarget#.TYPE#) public? final? [ResolvedTo(RAW_FIR)] annotation class Anno : R|kotlin/Annotation| {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] constructor([ResolvedTo(RAW_FIR)] [CorrespondingProperty=/Anno.s] s: String): R|Anno| {
@R|kotlin/annotation/Target|[Types](Q|kotlin/annotation/AnnotationTarget|.R|kotlin/annotation/AnnotationTarget.TYPE|) public final [ResolvedTo(STATUS)] annotation class Anno : R|kotlin/Annotation| {
public [ResolvedTo(STATUS)] [ContainingClassKey=Anno] constructor([ResolvedTo(STATUS)] [CorrespondingProperty=/Anno.s] s: R|kotlin/String|): R|Anno| {
super<R|kotlin/Any|>()
}
public? final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val s: String = R|<local>/s|
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] get(): String
public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] val s: R|kotlin/String| = R|<local>/s|
public [ResolvedTo(STATUS)] [ContainingClassKey=Anno] get(): R|kotlin/String|
}
@@ -3,32 +3,32 @@ FIR element: FirAnnotationCallImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
@PROPERTY_DELEGATE_FIELD:Ann[Unresolved]()
@PROPERTY_DELEGATE_FIELD:R|Ann|[Types]()
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] delegateScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] annotation class Ann : R|kotlin/Annotation| {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Ann] constructor(): R|Ann| {
public final [ResolvedTo(STATUS)] annotation class Ann : R|kotlin/Annotation| {
public [ResolvedTo(STATUS)] [ContainingClassKey=Ann] constructor(): R|Ann| {
super<R|kotlin/Any|>()
}
}
public? final? [ResolvedTo(RAW_FIR)] class X : R|kotlin/Any| {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] constructor(): R|X| {
public final [ResolvedTo(STATUS)] class X : R|kotlin/Any| {
public [ResolvedTo(STATUS)] [ContainingClassKey=X] constructor(): R|X| {
super<R|kotlin/Any|>()
}
field:@PROPERTY_DELEGATE_FIELD:Ann[Unresolved]() public? final? [ResolvedTo(RAW_FIR)] val a: <implicit>by lazy#(<L> = [ResolvedTo(RAW_FIR)] lazy@fun <implicit>.<anonymous>(): <implicit> <inline=Unknown> {
IntegerLiteral(1)
field:@PROPERTY_DELEGATE_FIELD:R|Ann|[Types]() public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] val a: <ERROR TYPE REF: Unresolved name: getValue>by <Unresolved name: lazy>#(<L> = [ResolvedTo(RAW_FIR)] lazy@fun <anonymous>(): R|kotlin/Int| <inline=Unknown> {
^ Int(1)
}
)
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] get(): <implicit> {
^ this@R|/X|.D|/X.a|.getValue#(this@R|/X|, ::R|/X.a|)
public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] get(): <ERROR TYPE REF: Unresolved name: getValue> {
^ this@R|/X|.D|/X.a|.<Unresolved name: getValue>#(this@R|/X|, ::R|/X.a|)
}
}
@@ -3,28 +3,28 @@ FIR element: FirAnnotationCallImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
@FIELD:Ann[Unresolved]()
@FIELD:R|Ann|[Types]()
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] fieldScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] annotation class Ann : R|kotlin/Annotation| {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Ann] constructor(): R|Ann| {
public final [ResolvedTo(STATUS)] annotation class Ann : R|kotlin/Annotation| {
public [ResolvedTo(STATUS)] [ContainingClassKey=Ann] constructor(): R|Ann| {
super<R|kotlin/Any|>()
}
}
public? final? [ResolvedTo(RAW_FIR)] class X : R|kotlin/Any| {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] constructor([ResolvedTo(RAW_FIR)] [CorrespondingProperty=/X.x] x: Int): R|X| {
public final [ResolvedTo(STATUS)] class X : R|kotlin/Any| {
public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [CorrespondingProperty=/X.x] x: R|kotlin/Int|): R|X| {
super<R|kotlin/Any|>()
}
field:@FIELD:Ann[Unresolved]() public? final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] var x: Int = R|<local>/x|
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] get(): Int
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] set([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit|
field:@FIELD:R|Ann|[Types]() public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [IsFromPrimaryConstructor=true] var x: R|kotlin/Int| = R|<local>/x|
public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] get(): R|kotlin/Int|
public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] set([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] value: R|kotlin/Int|): R|kotlin/Unit|
}
@@ -10,11 +10,11 @@ FILE: [ResolvedTo(IMPORTS)] fileScript.kts
@FILE:R|Ann|[Types]()
[ResolvedTo(BODY_RESOLVE)] annotations container
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(STATUS)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] annotation class Ann : R|kotlin/Annotation| {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Ann] constructor(): R|Ann| {
public final [ResolvedTo(STATUS)] annotation class Ann : R|kotlin/Annotation| {
public [ResolvedTo(STATUS)] [ContainingClassKey=Ann] constructor(): R|Ann| {
super<R|kotlin/Any|>()
}
@@ -3,28 +3,28 @@ FIR element: FirAnnotationCallImpl
FIR source kind: FromUseSiteTarget
FIR element rendered:
@PROPERTY_GETTER:Ann[Unresolved]()
@PROPERTY_GETTER:R|Ann|[Types]()
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] getterScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] annotation class Ann : R|kotlin/Annotation| {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Ann] constructor(): R|Ann| {
public final [ResolvedTo(STATUS)] annotation class Ann : R|kotlin/Annotation| {
public [ResolvedTo(STATUS)] [ContainingClassKey=Ann] constructor(): R|Ann| {
super<R|kotlin/Any|>()
}
}
public? final? [ResolvedTo(RAW_FIR)] class X : R|kotlin/Any| {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] constructor([ResolvedTo(RAW_FIR)] [CorrespondingProperty=/X.x] x: Int): R|X| {
public final [ResolvedTo(STATUS)] class X : R|kotlin/Any| {
public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [CorrespondingProperty=/X.x] x: R|kotlin/Int|): R|X| {
super<R|kotlin/Any|>()
}
public? final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] var x: Int = R|<local>/x|
@PROPERTY_GETTER:Ann[Unresolved]() public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] get(): Int
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] set([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit|
public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [IsFromPrimaryConstructor=true] var x: R|kotlin/Int| = R|<local>/x|
@PROPERTY_GETTER:R|Ann|[Types]() public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] get(): R|kotlin/Int|
public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] set([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] value: R|kotlin/Int|): R|kotlin/Unit|
}
@@ -3,28 +3,28 @@ FIR element: FirAnnotationCallImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
@CONSTRUCTOR_PARAMETER:Ann[Unresolved]()
@CONSTRUCTOR_PARAMETER:R|Ann|[Types]()
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] paramScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] annotation class Ann : R|kotlin/Annotation| {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Ann] constructor(): R|Ann| {
public final [ResolvedTo(STATUS)] annotation class Ann : R|kotlin/Annotation| {
public [ResolvedTo(STATUS)] [ContainingClassKey=Ann] constructor(): R|Ann| {
super<R|kotlin/Any|>()
}
}
public? final? [ResolvedTo(RAW_FIR)] class X : R|kotlin/Any| {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] constructor([ResolvedTo(RAW_FIR)] [CorrespondingProperty=/X.x] @CONSTRUCTOR_PARAMETER:Ann[Unresolved]() x: Int): R|X| {
public final [ResolvedTo(STATUS)] class X : R|kotlin/Any| {
public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [CorrespondingProperty=/X.x] @CONSTRUCTOR_PARAMETER:R|Ann|[Types]() x: R|kotlin/Int|): R|X| {
super<R|kotlin/Any|>()
}
public? final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] var x: Int = R|<local>/x|
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] get(): Int
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] set([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit|
public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] var x: R|kotlin/Int| = R|<local>/x|
public [ResolvedTo(STATUS)] [ContainingClassKey=X] get(): R|kotlin/Int|
public [ResolvedTo(STATUS)] [ContainingClassKey=X] set([ResolvedTo(STATUS)] value: R|kotlin/Int|): R|kotlin/Unit|
}
@@ -3,28 +3,28 @@ FIR element: FirAnnotationCallImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
@PROPERTY:Ann[Unresolved]()
@PROPERTY:R|Ann|[Types]()
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] propertyScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] annotation class Ann : R|kotlin/Annotation| {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Ann] constructor(): R|Ann| {
public final [ResolvedTo(STATUS)] annotation class Ann : R|kotlin/Annotation| {
public [ResolvedTo(STATUS)] [ContainingClassKey=Ann] constructor(): R|Ann| {
super<R|kotlin/Any|>()
}
}
public? final? [ResolvedTo(RAW_FIR)] class X : R|kotlin/Any| {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] constructor([ResolvedTo(RAW_FIR)] [CorrespondingProperty=/X.x] x: Int): R|X| {
public final [ResolvedTo(STATUS)] class X : R|kotlin/Any| {
public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [CorrespondingProperty=/X.x] x: R|kotlin/Int|): R|X| {
super<R|kotlin/Any|>()
}
@PROPERTY:Ann[Unresolved]() public? final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] var x: Int = R|<local>/x|
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] get(): Int
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] set([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit|
@PROPERTY:R|Ann|[Types]() public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [IsFromPrimaryConstructor=true] var x: R|kotlin/Int| = R|<local>/x|
public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] get(): R|kotlin/Int|
public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] set([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] value: R|kotlin/Int|): R|kotlin/Unit|
}
@@ -3,28 +3,28 @@ FIR element: FirAnnotationCallImpl
FIR source kind: FromUseSiteTarget
FIR element rendered:
@SETTER_PARAMETER:Ann[Unresolved]()
@SETTER_PARAMETER:R|Ann|[Types]()
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] setParamScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] annotation class Ann : R|kotlin/Annotation| {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Ann] constructor(): R|Ann| {
public final [ResolvedTo(STATUS)] annotation class Ann : R|kotlin/Annotation| {
public [ResolvedTo(STATUS)] [ContainingClassKey=Ann] constructor(): R|Ann| {
super<R|kotlin/Any|>()
}
}
public? final? [ResolvedTo(RAW_FIR)] class X : R|kotlin/Any| {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] constructor([ResolvedTo(RAW_FIR)] [CorrespondingProperty=/X.x] x: Int): R|X| {
public final [ResolvedTo(STATUS)] class X : R|kotlin/Any| {
public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [CorrespondingProperty=/X.x] x: R|kotlin/Int|): R|X| {
super<R|kotlin/Any|>()
}
public? final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] var x: Int = R|<local>/x|
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] get(): Int
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] set([ResolvedTo(RAW_FIR)] @SETTER_PARAMETER:Ann[Unresolved]() value: Int): R|kotlin/Unit|
public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [IsFromPrimaryConstructor=true] var x: R|kotlin/Int| = R|<local>/x|
public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] get(): R|kotlin/Int|
public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] set([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] @SETTER_PARAMETER:R|Ann|[Types]() value: R|kotlin/Int|): R|kotlin/Unit|
}
@@ -3,28 +3,28 @@ FIR element: FirAnnotationCallImpl
FIR source kind: FromUseSiteTarget
FIR element rendered:
@PROPERTY_SETTER:Ann[Unresolved]()
@PROPERTY_SETTER:R|Ann|[Types]()
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] setterScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] annotation class Ann : R|kotlin/Annotation| {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Ann] constructor(): R|Ann| {
public final [ResolvedTo(STATUS)] annotation class Ann : R|kotlin/Annotation| {
public [ResolvedTo(STATUS)] [ContainingClassKey=Ann] constructor(): R|Ann| {
super<R|kotlin/Any|>()
}
}
public? final? [ResolvedTo(RAW_FIR)] class X : R|kotlin/Any| {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] constructor([ResolvedTo(RAW_FIR)] [CorrespondingProperty=/X.x] x: Int): R|X| {
public final [ResolvedTo(STATUS)] class X : R|kotlin/Any| {
public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [CorrespondingProperty=/X.x] x: R|kotlin/Int|): R|X| {
super<R|kotlin/Any|>()
}
public? final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] var x: Int = R|<local>/x|
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] get(): Int
@PROPERTY_SETTER:Ann[Unresolved]() public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] set([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit|
public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [IsFromPrimaryConstructor=true] var x: R|kotlin/Int| = R|<local>/x|
public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] get(): R|kotlin/Int|
@PROPERTY_SETTER:R|Ann|[Types]() public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] set([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] value: R|kotlin/Int|): R|kotlin/Unit|
}
@@ -3,17 +3,17 @@ FIR element: FirConstExpressionImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
IntegerLiteral(1)
Int(1)
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] callArgumentScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] fun y([ResolvedTo(RAW_FIR)] a: Int): R|kotlin/Unit| {
}
public? final? [ResolvedTo(RAW_FIR)] fun x(): R|kotlin/Unit| {
y#(IntegerLiteral(1))
public final [ResolvedTo(BODY_RESOLVE)] fun x(): R|kotlin/Unit| {
<Unresolved name: y>#(Int(1))
}
@@ -3,25 +3,25 @@ FIR element: FirFunctionCallImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
foo#()
<Unresolved name: foo>#()
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] callInsideLambdaInsideSuperCallAndExplicitConstructorScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? open [ResolvedTo(RAW_FIR)] class B : R|kotlin/Any| {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=B] constructor([ResolvedTo(RAW_FIR)] x: ( () -> Unit )): R|B| {
public open [ResolvedTo(STATUS)] class B : R|kotlin/Any| {
public [ResolvedTo(STATUS)] [ContainingClassKey=B] constructor([ResolvedTo(STATUS)] x: R|() -> kotlin/Unit|): R|B| {
super<R|kotlin/Any|>()
}
}
public? final? [ResolvedTo(RAW_FIR)] class A : B {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor(): R|A| {
super<B>(IntegerLiteral(1), [ResolvedTo(RAW_FIR)] fun <implicit>.<anonymous>(): <implicit> <inline=Unknown> {
foo#()
public final [ResolvedTo(STATUS)] class A : R|B| {
public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=A] constructor(): R|A| {
super<R|B|>(Int(1), [ResolvedTo(RAW_FIR)] fun <anonymous>(): <ERROR TYPE REF: Unresolved name: foo> <inline=Unknown> {
^ <Unresolved name: foo>#()
}
)
}
@@ -3,17 +3,17 @@ FIR element: FirTypeProjectionWithVarianceImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
Int
R|kotlin/Int|
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] calllTypeArgumentsScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] fun <[ResolvedTo(RAW_FIR)] T> y(): R|kotlin/Unit| {
}
public? final? [ResolvedTo(RAW_FIR)] fun x(): R|kotlin/Unit| {
y#<Int>()
public final [ResolvedTo(BODY_RESOLVE)] fun x(): R|kotlin/Unit| {
<Unresolved name: y>#<R|kotlin/Int|>()
}
@@ -1,24 +1,29 @@
KT element: KtBinaryExpression
FIR element: FirAugmentedArraySetCallImpl
FIR element: FirFunctionCallImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
ArraySet:[m#.get#(String(a)) += IntegerLiteral(1)]
R|<local>/<array>|.R|SubstitutionOverride</MyMap.set: R|kotlin/Unit|>|(R|<local>/<index_0>|, R|<local>/<array>|.R|SubstitutionOverride</MyMap.get: R|kotlin/Int|>|(R|<local>/<index_0>|).R|kotlin/Int.plus|(Int(1)))
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] compoundAssignWithArrayAccessConventionScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] interface MyMap<[ResolvedTo(RAW_FIR)] K, [ResolvedTo(RAW_FIR)] V> : R|kotlin/Any| {
public? final? operator [ResolvedTo(RAW_FIR)] fun get([ResolvedTo(RAW_FIR)] k: K): V
public abstract [ResolvedTo(STATUS)] interface MyMap<[ResolvedTo(STATUS)] K, [ResolvedTo(STATUS)] V> : R|kotlin/Any| {
public abstract operator [ResolvedTo(CONTRACTS)] fun get([ResolvedTo(CONTRACTS)] k: R|K|): R|V|
public? final? operator [ResolvedTo(RAW_FIR)] fun set([ResolvedTo(RAW_FIR)] k: K, [ResolvedTo(RAW_FIR)] v: V): R|kotlin/Unit|
public abstract operator [ResolvedTo(CONTRACTS)] fun set([ResolvedTo(CONTRACTS)] k: R|K|, [ResolvedTo(CONTRACTS)] v: R|V|): R|kotlin/Unit|
}
public? final? [ResolvedTo(RAW_FIR)] fun test([ResolvedTo(RAW_FIR)] m: MyMap<String, Int>): R|kotlin/Unit| {
ArraySet:[m#.get#(String(a)) += IntegerLiteral(1)]
public final [ResolvedTo(BODY_RESOLVE)] fun test([ResolvedTo(BODY_RESOLVE)] m: R|MyMap<kotlin/String, kotlin/Int>|): R|kotlin/Unit| {
{
[ResolvedTo(BODY_RESOLVE)] lval <array>: R|MyMap<kotlin/String, kotlin/Int>| = R|<local>/m|
[ResolvedTo(BODY_RESOLVE)] lval <index_0>: R|kotlin/String| = String(a)
R|<local>/<array>|.R|SubstitutionOverride</MyMap.set: R|kotlin/Unit|>|(R|<local>/<index_0>|, R|<local>/<array>|.R|SubstitutionOverride</MyMap.get: R|kotlin/Int|>|(R|<local>/<index_0>|).R|kotlin/Int.plus|(Int(1)))
}
Unit
}
@@ -1,27 +1,27 @@
KT element: KtBinaryExpression
FIR element: FirAugmentedArraySetCallImpl
FIR source kind: KtRealSourceElementKind
FIR element: FirFunctionCallImpl
FIR source kind: DesugaredCompoundAssignment
FIR element rendered:
ArraySet:[m#.get#(String(a)) += IntegerLiteral(1)]
R|<local>/m|.R|SubstitutionOverride</MyMap.get: R|A|>|(String(a)).R|/A.plusAssign|(Int(1))
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] compoundAssignWithArrayGetConventionScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] interface A : R|kotlin/Any| {
public? final? operator [ResolvedTo(RAW_FIR)] fun plusAssign([ResolvedTo(RAW_FIR)] i: Int): R|kotlin/Unit|
public abstract [ResolvedTo(STATUS)] interface A : R|kotlin/Any| {
public abstract operator [ResolvedTo(CONTRACTS)] fun plusAssign([ResolvedTo(CONTRACTS)] i: R|kotlin/Int|): R|kotlin/Unit|
}
public? final? [ResolvedTo(RAW_FIR)] interface MyMap<[ResolvedTo(RAW_FIR)] K, [ResolvedTo(RAW_FIR)] V> : R|kotlin/Any| {
public? final? operator [ResolvedTo(RAW_FIR)] fun get([ResolvedTo(RAW_FIR)] k: K): V
public abstract [ResolvedTo(STATUS)] interface MyMap<[ResolvedTo(STATUS)] K, [ResolvedTo(STATUS)] V> : R|kotlin/Any| {
public abstract operator [ResolvedTo(CONTRACTS)] fun get([ResolvedTo(CONTRACTS)] k: R|K|): R|V|
}
public? final? [ResolvedTo(RAW_FIR)] fun test([ResolvedTo(RAW_FIR)] m: MyMap<String, A>): R|kotlin/Unit| {
ArraySet:[m#.get#(String(a)) += IntegerLiteral(1)]
public final [ResolvedTo(BODY_RESOLVE)] fun test([ResolvedTo(BODY_RESOLVE)] m: R|MyMap<kotlin/String, A>|): R|kotlin/Unit| {
R|<local>/m|.R|SubstitutionOverride</MyMap.get: R|A|>|(String(a)).R|/A.plusAssign|(Int(1))
Unit
}
@@ -3,24 +3,24 @@ FIR element: FirDelegatedConstructorCallImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
super<B>(IntegerLiteral(1))
super<R|B|>(Int(1))
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] constructorDelegationSuperCallScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? open [ResolvedTo(RAW_FIR)] class B : R|kotlin/Any| {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=B] constructor([ResolvedTo(RAW_FIR)] x: Int): R|B| {
public open [ResolvedTo(STATUS)] class B : R|kotlin/Any| {
public [ResolvedTo(STATUS)] [ContainingClassKey=B] constructor([ResolvedTo(STATUS)] x: R|kotlin/Int|): R|B| {
super<R|kotlin/Any|>()
}
}
public? final? [ResolvedTo(RAW_FIR)] class A : B {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor(): R|A| {
super<B>(IntegerLiteral(1))
public final [ResolvedTo(BODY_RESOLVE)] class A : R|B| {
public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=A] constructor(): R|A| {
super<R|B|>(Int(1))
}
}
@@ -1,19 +1,19 @@
KT element: KtValueArgumentList
FIR element: FirArgumentListImpl
FIR element: FirResolvedArgumentListForErrorCall
FIR source kind: KtRealSourceElementKind
FIR element rendered:
IntegerLiteral(1)String(2)
Int(1)String(2)
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] functionCallArgumentListScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] fun callMe([ResolvedTo(RAW_FIR)] x: Int, [ResolvedTo(RAW_FIR)] y: String): R|kotlin/Unit| {
}
public? final? [ResolvedTo(RAW_FIR)] fun foo(): R|kotlin/Unit| {
callMe#(IntegerLiteral(1), String(2))
public final [ResolvedTo(BODY_RESOLVE)] fun foo(): R|kotlin/Unit| {
<Unresolved name: callMe>#(Int(1), String(2))
}
@@ -1,16 +1,16 @@
KT element: KtValueArgumentList
FIR element: FirArgumentListImpl
FIR element: FirResolvedArgumentListImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
IntegerLiteral(1)String(2)
Int(1)String(2)
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] invokeCallArgumentListScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] fun foo([ResolvedTo(RAW_FIR)] f: ( (Int, String) -> Unit )): R|kotlin/Unit| {
f#(IntegerLiteral(1), String(2))
public final [ResolvedTo(BODY_RESOLVE)] fun foo([ResolvedTo(BODY_RESOLVE)] f: R|(kotlin/Int, kotlin/String) -> kotlin/Unit|): R|kotlin/Unit| {
R|<local>/f|.R|SubstitutionOverride<kotlin/Function2.invoke: R|kotlin/Unit|>|(Int(1), String(2))
}
@@ -1,29 +1,29 @@
KT element: KtNameReferenceExpression
FIR element: FirPropertyAccessExpressionImpl
FIR element: FirResolvedNamedReferenceImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
B#.prop#
R|/A.prop|
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] qualifiedCallInsideSuperCallScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? open [ResolvedTo(RAW_FIR)] class A : R|kotlin/Any| {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor([ResolvedTo(RAW_FIR)] init: ( A.() -> Unit )): R|A| {
public open [ResolvedTo(STATUS)] class A : R|kotlin/Any| {
public [ResolvedTo(STATUS)] [ContainingClassKey=A] constructor([ResolvedTo(STATUS)] init: R|A.() -> kotlin/Unit|): R|A| {
super<R|kotlin/Any|>()
}
public? final? [ResolvedTo(RAW_FIR)] val prop: String = String()
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] get(): String
public final [ResolvedTo(CONTRACTS)] val prop: R|kotlin/String| = String()
public [ResolvedTo(CONTRACTS)] [ContainingClassKey=A] get(): R|kotlin/String|
}
public? final? [ResolvedTo(RAW_FIR)] object B : A {
private [ResolvedTo(RAW_FIR)] [ContainingClassKey=B] constructor(): R|B| {
super<A>([ResolvedTo(RAW_FIR)] fun <implicit>.<anonymous>(): <implicit> <inline=Unknown> {
public final [ResolvedTo(STATUS)] object B : R|A| {
private [ResolvedTo(STATUS)] [ContainingClassKey=B] constructor(): R|B| {
super<R|A|>([ResolvedTo(RAW_FIR)] fun <implicit>.<anonymous>(): <implicit> <inline=Unknown> {
^ Unit
}
)
@@ -31,11 +31,11 @@ FILE: [ResolvedTo(IMPORTS)] qualifiedCallInsideSuperCallScript.kts
}
public? final? [ResolvedTo(RAW_FIR)] object C : A {
private [ResolvedTo(RAW_FIR)] [ContainingClassKey=C] constructor(): R|C| {
super<A>([ResolvedTo(RAW_FIR)] fun <implicit>.<anonymous>(): <implicit> <inline=Unknown> {
local final? [ResolvedTo(RAW_FIR)] fun foo(): <implicit> {
^foo B#.prop#.toString#()
public final [ResolvedTo(BODY_RESOLVE)] object C : R|A| {
private [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=C] constructor(): R|C| {
super<R|A|>([ResolvedTo(RAW_FIR)] fun R|A|.<anonymous>(): R|kotlin/Unit| <inline=Unknown> {
local final [ResolvedTo(RAW_FIR)] fun foo(): R|kotlin/String| {
^foo Q|B|.R|/A.prop|.R|kotlin/String.toString|()
}
}
@@ -1,27 +1,22 @@
KT element: KtTypeReference
FIR element: FirRegularClassImpl
FIR element: FirResolvedTypeRefImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
public? final? [ResolvedTo(RAW_FIR)] class C : A {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=C] constructor(): R|C| {
super<<implicit>>()
}
}
R|A|
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] superTypeScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] interface A : R|kotlin/Any| {
public abstract [ResolvedTo(STATUS)] interface A : R|kotlin/Any| {
}
public? final? [ResolvedTo(RAW_FIR)] class C : A {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=C] constructor(): R|C| {
super<<implicit>>()
public final [ResolvedTo(BODY_RESOLVE)] class C : R|A| {
public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=C] constructor(): R|C| {
super<R|kotlin/Any|>()
}
}
@@ -3,16 +3,16 @@ FIR element: FirValueParameterImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
[ResolvedTo(RAW_FIR)] resolveMe: Int = IntegerLiteral(5)
[ResolvedTo(BODY_RESOLVE)] resolveMe: R|kotlin/Int| = Int(5)
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] constructorParameterScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] class X : R|kotlin/Any| {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] constructor([ResolvedTo(RAW_FIR)] resolveMe: Int = IntegerLiteral(5)): R|X| {
public final [ResolvedTo(STATUS)] class X : R|kotlin/Any| {
public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=X] constructor([ResolvedTo(BODY_RESOLVE)] resolveMe: R|kotlin/Int| = Int(5)): R|X| {
super<R|kotlin/Any|>()
}
@@ -3,20 +3,20 @@ FIR element: FirValueParameterImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
[ResolvedTo(RAW_FIR)] [CorrespondingProperty=/Abc.i] i: Int = IntegerLiteral(4)
[ResolvedTo(BODY_RESOLVE)] [CorrespondingProperty=/Abc.i] i: R|kotlin/Int| = Int(4)
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] constructorPropertyScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] class Abc : R|kotlin/Any| {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Abc] constructor([ResolvedTo(RAW_FIR)] [CorrespondingProperty=/Abc.i] i: Int = IntegerLiteral(4)): R|Abc| {
public final [ResolvedTo(STATUS)] class Abc : R|kotlin/Any| {
public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=Abc] constructor([ResolvedTo(BODY_RESOLVE)] [CorrespondingProperty=/Abc.i] i: R|kotlin/Int| = Int(4)): R|Abc| {
super<R|kotlin/Any|>()
}
public? final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val i: Int = R|<local>/i|
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Abc] get(): Int
public final [ResolvedTo(BODY_RESOLVE)] [IsFromPrimaryConstructor=true] val i: R|kotlin/Int| = R|<local>/i|
public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=Abc] get(): R|kotlin/Int|
}
@@ -3,12 +3,12 @@ FIR element: FirPropertyImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
public final [ResolvedTo(RAW_FIR)] [DestructuringDeclarationContainerVariableKey=<local>/<destruct>] val o: <implicit> = R|<local>/<destruct>|.component1#()
[ResolvedTo(RAW_FIR)] [DestructuringDeclarationContainerVariableMarkerKey=true] lval <destruct>: <implicit> = ERROR_EXPR(Initializer required for destructuring declaration)
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] destructionWithNoRValueScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
[ResolvedTo(RAW_FIR)] [DestructuringDeclarationContainerVariableMarkerKey=true] lval <destruct>: <implicit> = ERROR_EXPR(Initializer required for destructuring declaration)
@@ -3,16 +3,16 @@ FIR element: FirPropertyImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
[ResolvedTo(RAW_FIR)] lval a: <implicit> = R|<local>/<destruct>|.component1#()
[ResolvedTo(BODY_RESOLVE)] lval a: R|kotlin/Int| = R|<local>/<destruct>|.R|SubstitutionOverride<kotlin/Pair.component1: R|kotlin/Int|>|()
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] destructuringEntryScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] fun main(): R|kotlin/Unit| {
[ResolvedTo(RAW_FIR)] lval <destruct>: <implicit> = IntegerLiteral(1).to#(IntegerLiteral(2))
[ResolvedTo(RAW_FIR)] lval a: <implicit> = R|<local>/<destruct>|.component1#()
[ResolvedTo(RAW_FIR)] lval b: <implicit> = R|<local>/<destruct>|.component2#()
public final [ResolvedTo(BODY_RESOLVE)] fun main(): R|kotlin/Unit| {
[ResolvedTo(BODY_RESOLVE)] lval <destruct>: R|kotlin/Pair<kotlin/Int, kotlin/Int>| = Int(1).R|kotlin/to|<R|kotlin/Int|, R|kotlin/Int|>(Int(2))
[ResolvedTo(BODY_RESOLVE)] lval a: R|kotlin/Int| = R|<local>/<destruct>|.R|SubstitutionOverride<kotlin/Pair.component1: R|kotlin/Int|>|()
[ResolvedTo(BODY_RESOLVE)] lval b: R|kotlin/Int| = R|<local>/<destruct>|.R|SubstitutionOverride<kotlin/Pair.component2: R|kotlin/Int|>|()
}
@@ -8,7 +8,7 @@ FIR element rendered:
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] destructuringScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] var a: <implicit> = IntegerLiteral(-1)
@@ -4,7 +4,7 @@ FIR source kind: KtRealSourceElementKind
FIR element rendered:
object : R|kotlin/Any| {
private [ResolvedTo(RAW_FIR)] [ContainingClassKey=<anonymous>] constructor(): R|<anonymous>| {
private [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=<anonymous>] constructor(): R|<anonymous>| {
super<R|kotlin/Any|>()
}
@@ -13,12 +13,12 @@ object : R|kotlin/Any| {
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] objectLiteralExpressionScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] fun test(): R|kotlin/Unit| {
public final [ResolvedTo(BODY_RESOLVE)] fun test(): R|kotlin/Unit| {
object : R|kotlin/Any| {
private [ResolvedTo(RAW_FIR)] [ContainingClassKey=<anonymous>] constructor(): R|<anonymous>| {
private [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=<anonymous>] constructor(): R|<anonymous>| {
super<R|kotlin/Any|>()
}
@@ -4,7 +4,7 @@ FIR source kind: KtRealSourceElementKind
FIR element rendered:
object : R|kotlin/Any| {
private [ResolvedTo(RAW_FIR)] [ContainingClassKey=<anonymous>] constructor(): R|<anonymous>| {
private [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=<anonymous>] constructor(): R|<anonymous>| {
super<R|kotlin/Any|>()
}
@@ -13,12 +13,12 @@ object : R|kotlin/Any| {
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] objectLiteralScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] fun test(): R|kotlin/Unit| {
public final [ResolvedTo(BODY_RESOLVE)] fun test(): R|kotlin/Unit| {
object : R|kotlin/Any| {
private [ResolvedTo(RAW_FIR)] [ContainingClassKey=<anonymous>] constructor(): R|<anonymous>| {
private [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=<anonymous>] constructor(): R|<anonymous>| {
super<R|kotlin/Any|>()
}
@@ -3,21 +3,21 @@ FIR element: FirFunctionCallImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
lazy#(<L> = [ResolvedTo(RAW_FIR)] lazy@fun <implicit>.<anonymous>(): <implicit> <inline=Unknown> {
IntegerLiteral(1)
R|kotlin/lazy|<R|kotlin/Int|>(<L> = [ResolvedTo(RAW_FIR)] [MatchingParameterFunctionTypeKey=kotlin/Function0<T>] lazy@fun <anonymous>(): R|kotlin/Int| <inline=NoInline> {
^ Int(1)
}
)
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] propertyDelegateScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] val x: <implicit>by lazy#(<L> = [ResolvedTo(RAW_FIR)] lazy@fun <implicit>.<anonymous>(): <implicit> <inline=Unknown> {
IntegerLiteral(1)
public final [ResolvedTo(BODY_RESOLVE)] val x: R|kotlin/Int|by R|kotlin/lazy|<R|kotlin/Int|>(<L> = [ResolvedTo(RAW_FIR)] [MatchingParameterFunctionTypeKey=kotlin/Function0<T>] lazy@fun <anonymous>(): R|kotlin/Int| <inline=NoInline> {
^ Int(1)
}
)
public? [ResolvedTo(RAW_FIR)] get(): <implicit> {
^ D|/x|.getValue#(Null(null), ::R|/x|)
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int| {
^ D|/x|.R|kotlin/getValue|<R|kotlin/Int|>(Null(null), ::R|/x|)
}
@@ -3,13 +3,13 @@ FIR element: FirTypeParameterImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
[ResolvedTo(RAW_FIR)] From : To
[ResolvedTo(BODY_RESOLVE)] From : R|To|
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] whereClause1Script.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] fun <[ResolvedTo(RAW_FIR)] From : To, [ResolvedTo(RAW_FIR)] To : Any> copyNotNull([ResolvedTo(RAW_FIR)] from: List<From>, [ResolvedTo(RAW_FIR)] to: List<To>): R|kotlin/Unit| {
public final [ResolvedTo(BODY_RESOLVE)] fun <[ResolvedTo(BODY_RESOLVE)] From : R|To|, [ResolvedTo(BODY_RESOLVE)] To : R|kotlin/Any|> copyNotNull([ResolvedTo(BODY_RESOLVE)] from: R|kotlin/collections/List<From>|, [ResolvedTo(BODY_RESOLVE)] to: R|kotlin/collections/List<To>|): R|kotlin/Unit| {
}
@@ -3,13 +3,13 @@ FIR element: FirTypeParameterImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
[ResolvedTo(RAW_FIR)] To : Any
[ResolvedTo(BODY_RESOLVE)] To : R|kotlin/Any|
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] whereClause2Script.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] fun <[ResolvedTo(RAW_FIR)] From : To, [ResolvedTo(RAW_FIR)] To : Any> copyNotNull([ResolvedTo(RAW_FIR)] from: List<From>, [ResolvedTo(RAW_FIR)] to: List<To>): R|kotlin/Unit| {
public final [ResolvedTo(BODY_RESOLVE)] fun <[ResolvedTo(BODY_RESOLVE)] From : R|To|, [ResolvedTo(BODY_RESOLVE)] To : R|kotlin/Any|> copyNotNull([ResolvedTo(BODY_RESOLVE)] from: R|kotlin/collections/List<From>|, [ResolvedTo(BODY_RESOLVE)] to: R|kotlin/collections/List<To>|): R|kotlin/Unit| {
}
@@ -3,14 +3,14 @@ FIR element: FirFunctionCallImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
x#.get#(IntegerLiteral(1))
R|<local>/x|.R|SubstitutionOverride<kotlin/collections/List.get: R|kotlin/Int|>|(Int(1))
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] arrayAccessExpressionScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] fun foo([ResolvedTo(RAW_FIR)] x: List<Int>): R|kotlin/Unit| {
[ResolvedTo(RAW_FIR)] lval a: <implicit> = x#.get#(IntegerLiteral(1))
public final [ResolvedTo(BODY_RESOLVE)] fun foo([ResolvedTo(BODY_RESOLVE)] x: R|kotlin/collections/List<kotlin/Int>|): R|kotlin/Unit| {
[ResolvedTo(BODY_RESOLVE)] lval a: R|kotlin/Int| = R|<local>/x|.R|SubstitutionOverride<kotlin/collections/List.get: R|kotlin/Int|>|(Int(1))
}
@@ -3,20 +3,20 @@ FIR element: FirConstExpressionImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
IntegerLiteral(0)
Int(0)
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] arrayIndexExpressionWithIncScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] fun main([ResolvedTo(RAW_FIR)] args: Array<String>): R|kotlin/Unit| {
[ResolvedTo(RAW_FIR)] lval a: <implicit> = ArrayList#<String>()
a#.add#(String())
[ResolvedTo(RAW_FIR)] lval <array>: <implicit> = a#
[ResolvedTo(RAW_FIR)] lval <index_0>: <implicit> = IntegerLiteral(0)
[ResolvedTo(RAW_FIR)] lval <unary>: <implicit> = R|<local>/<array>|.get#(R|<local>/<index_0>|)
R|<local>/<array>|.set#(R|<local>/<index_0>|, R|<local>/<unary>|.inc#())
public final [ResolvedTo(BODY_RESOLVE)] fun main([ResolvedTo(BODY_RESOLVE)] args: R|kotlin/Array<kotlin/String>|): R|kotlin/Unit| {
[ResolvedTo(BODY_RESOLVE)] lval a: R|java/util/ArrayList<kotlin/String>| = R|java/util/ArrayList.ArrayList|<R|kotlin/String|>()
R|<local>/a|.R|SubstitutionOverride<java/util/ArrayList.add: R|kotlin/Boolean|>|(String())
[ResolvedTo(BODY_RESOLVE)] lval <array>: R|java/util/ArrayList<kotlin/String>| = R|<local>/a|
[ResolvedTo(BODY_RESOLVE)] lval <index_0>: R|kotlin/Int| = Int(0)
[ResolvedTo(BODY_RESOLVE)] lval <unary>: R|kotlin/String| = R|<local>/<array>|.R|SubstitutionOverride<java/util/ArrayList.get: R|@EnhancedNullability kotlin/String|>|(R|<local>/<index_0>|)
R|<local>/<array>|.R|SubstitutionOverride<java/util/ArrayList.set: R|@EnhancedNullability kotlin/String|>|(R|<local>/<index_0>|, R|<local>/<unary>|.<Unresolved name: inc>#())
R|<local>/<unary>|
}
@@ -1,15 +1,15 @@
KT element: KtOperationReferenceExpression
FIR element: FirFunctionCallImpl
FIR element: FirResolvedNamedReferenceImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
IntegerLiteral(1).plus#(IntegerLiteral(1))
R|kotlin/Int.plus|
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] binaryExpressionOperatorScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] val x: <implicit> = IntegerLiteral(1).plus#(IntegerLiteral(1))
public? [ResolvedTo(RAW_FIR)] get(): <implicit>
public final [ResolvedTo(BODY_RESOLVE)] val x: R|kotlin/Int| = Int(1).R|kotlin/Int.plus|(Int(1))
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int|
@@ -1,15 +1,15 @@
KT element: KtBinaryExpression
FIR element: FirFunctionCallImpl
FIR element: FirIntegerLiteralOperatorCallImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
IntegerLiteral(1).plus#(IntegerLiteral(1))
Int(1).R|kotlin/Int.plus|(Int(1))
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] binaryExpressionScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] val x: <implicit> = IntegerLiteral(1).plus#(IntegerLiteral(1))
public? [ResolvedTo(RAW_FIR)] get(): <implicit>
public final [ResolvedTo(BODY_RESOLVE)] val x: R|kotlin/Int| = Int(1).R|kotlin/Int.plus|(Int(1))
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int|
@@ -9,8 +9,8 @@ FIR element rendered:
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] blockExpressionScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] fun x(): R|kotlin/Unit| {
public final [ResolvedTo(BODY_RESOLVE)] fun x(): R|kotlin/Unit| {
}
@@ -8,8 +8,8 @@ Boolean(true)
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] boolLiteralScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] val x: <implicit> = Boolean(true)
public? [ResolvedTo(RAW_FIR)] get(): <implicit>
public final [ResolvedTo(BODY_RESOLVE)] val x: R|kotlin/Boolean| = Boolean(true)
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Boolean|
@@ -3,31 +3,31 @@ FIR element: FirFunctionCallImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
Builder#()
R|/Builder.Builder|()
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] callInsideFunction.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] class Builder : R|kotlin/Any| {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Builder] constructor(): R|Builder| {
public final [ResolvedTo(STATUS)] class Builder : R|kotlin/Any| {
public [ResolvedTo(STATUS)] [ContainingClassKey=Builder] constructor(): R|Builder| {
super<R|kotlin/Any|>()
}
public? final? [ResolvedTo(RAW_FIR)] var version: String = String()
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Builder] get(): String
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Builder] set([ResolvedTo(RAW_FIR)] value: String): R|kotlin/Unit|
public final [ResolvedTo(STATUS)] var version: R|kotlin/String| = String()
public [ResolvedTo(STATUS)] [ContainingClassKey=Builder] get(): R|kotlin/String|
public [ResolvedTo(STATUS)] [ContainingClassKey=Builder] set([ResolvedTo(STATUS)] value: R|kotlin/String|): R|kotlin/Unit|
public? final? [ResolvedTo(RAW_FIR)] fun execute(): R|kotlin/Unit| {
public final [ResolvedTo(STATUS)] fun execute(): R|kotlin/Unit| {
println#(version#)
}
}
public? final? [ResolvedTo(RAW_FIR)] fun build([ResolvedTo(RAW_FIR)] action: ( Builder.() -> Unit )): <implicit> {
^build Builder#().apply#(action#)
public final [ResolvedTo(BODY_RESOLVE)] fun build([ResolvedTo(BODY_RESOLVE)] action: R|Builder.() -> kotlin/Unit|): R|Builder| {
^build R|/Builder.Builder|().R|kotlin/apply|<R|Builder|>(R|<local>/action|)
}
build#(<L> = [ResolvedTo(RAW_FIR)] build@fun <implicit>.<anonymous>(): <implicit> <inline=Unknown> {
@@ -3,19 +3,19 @@ FIR element: FirFunctionCallImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
IntegerLiteral(0).rangeTo#(IntegerLiteral(1))
Int(0).R|kotlin/Int.rangeTo|(Int(1))
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] forExpressionRangeScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] fun foo(): R|kotlin/Unit| {
public final [ResolvedTo(BODY_RESOLVE)] fun foo(): R|kotlin/Unit| {
{
[ResolvedTo(RAW_FIR)] lval <iterator>: <implicit> = IntegerLiteral(0).rangeTo#(IntegerLiteral(1)).iterator#()
while(R|<local>/<iterator>|.hasNext#()) {
[ResolvedTo(RAW_FIR)] lval x: <implicit> = R|<local>/<iterator>|.next#()
[ResolvedTo(BODY_RESOLVE)] lval <iterator>: R|kotlin/collections/IntIterator| = Int(0).R|kotlin/Int.rangeTo|(Int(1)).R|kotlin/ranges/IntProgression.iterator|()
while(R|<local>/<iterator>|.R|SubstitutionOverride<kotlin/collections/IntIterator.hasNext: R|kotlin/Boolean|>|()) {
[ResolvedTo(BODY_RESOLVE)] lval x: R|kotlin/Int| = R|<local>/<iterator>|.R|kotlin/collections/IntIterator.next|()
{
}
@@ -3,8 +3,8 @@ FIR element: FirWhileLoopImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
while(R|<local>/<iterator>|.hasNext#()) {
[ResolvedTo(RAW_FIR)] lval x: <implicit> = R|<local>/<iterator>|.next#()
while(R|<local>/<iterator>|.R|SubstitutionOverride<kotlin/collections/IntIterator.hasNext: R|kotlin/Boolean|>|()) {
[ResolvedTo(BODY_RESOLVE)] lval x: R|kotlin/Int| = R|<local>/<iterator>|.R|kotlin/collections/IntIterator.next|()
{
}
@@ -13,14 +13,14 @@ while(R|<local>/<iterator>|.hasNext#()) {
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] forExpressionScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] fun foo(): R|kotlin/Unit| {
public final [ResolvedTo(BODY_RESOLVE)] fun foo(): R|kotlin/Unit| {
{
[ResolvedTo(RAW_FIR)] lval <iterator>: <implicit> = IntegerLiteral(0).rangeTo#(IntegerLiteral(1)).iterator#()
while(R|<local>/<iterator>|.hasNext#()) {
[ResolvedTo(RAW_FIR)] lval x: <implicit> = R|<local>/<iterator>|.next#()
[ResolvedTo(BODY_RESOLVE)] lval <iterator>: R|kotlin/collections/IntIterator| = Int(0).R|kotlin/Int.rangeTo|(Int(1)).R|kotlin/ranges/IntProgression.iterator|()
while(R|<local>/<iterator>|.R|SubstitutionOverride<kotlin/collections/IntIterator.hasNext: R|kotlin/Boolean|>|()) {
[ResolvedTo(BODY_RESOLVE)] lval x: R|kotlin/Int| = R|<local>/<iterator>|.R|kotlin/collections/IntIterator.next|()
{
}
@@ -3,19 +3,19 @@ FIR element: FirPropertyImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
[ResolvedTo(RAW_FIR)] lval x: <implicit> = R|<local>/<iterator>|.next#()
[ResolvedTo(BODY_RESOLVE)] lval x: R|kotlin/Int| = R|<local>/<iterator>|.R|kotlin/collections/IntIterator.next|()
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] forExpressionVariableScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] fun foo(): R|kotlin/Unit| {
public final [ResolvedTo(BODY_RESOLVE)] fun foo(): R|kotlin/Unit| {
{
[ResolvedTo(RAW_FIR)] lval <iterator>: <implicit> = IntegerLiteral(0).rangeTo#(IntegerLiteral(1)).iterator#()
while(R|<local>/<iterator>|.hasNext#()) {
[ResolvedTo(RAW_FIR)] lval x: <implicit> = R|<local>/<iterator>|.next#()
[ResolvedTo(BODY_RESOLVE)] lval <iterator>: R|kotlin/collections/IntIterator| = Int(0).R|kotlin/Int.rangeTo|(Int(1)).R|kotlin/ranges/IntProgression.iterator|()
while(R|<local>/<iterator>|.R|SubstitutionOverride<kotlin/collections/IntIterator.hasNext: R|kotlin/Boolean|>|()) {
[ResolvedTo(BODY_RESOLVE)] lval x: R|kotlin/Int| = R|<local>/<iterator>|.R|kotlin/collections/IntIterator.next|()
{
}
@@ -4,7 +4,7 @@ FIR source kind: KtRealSourceElementKind
FIR element rendered:
when () {
(x# is String) -> {
(R|<local>/x| is R|kotlin/String|) -> {
String(1)
}
else -> {
@@ -15,12 +15,12 @@ when () {
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] ifExpressionScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] fun foo([ResolvedTo(RAW_FIR)] x: Any): String {
public final [ResolvedTo(BODY_RESOLVE)] fun foo([ResolvedTo(BODY_RESOLVE)] x: R|kotlin/Any|): R|kotlin/String| {
^foo when () {
(x# is String) -> {
(R|<local>/x| is R|kotlin/String|) -> {
String(1)
}
else -> {
@@ -1,17 +1,22 @@
KT element: KtPostfixExpression
FIR element: FirIncrementDecrementExpressionImpl
FIR source kind: KtRealSourceElementKind
FIR element: FirVariableAssignmentImpl
FIR source kind: DesugaredIncrementOrDecrement
FIR element rendered:
nextUnnamedLibraryIndex#++
R|<local>/nextUnnamedLibraryIndex| = R|<local>/<unary>|.R|kotlin/Int.inc|()
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] incExpressionScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] fun main([ResolvedTo(RAW_FIR)] args: Array<String>): R|kotlin/Unit| {
[ResolvedTo(RAW_FIR)] lvar nextUnnamedLibraryIndex: <implicit> = IntegerLiteral(1)
[ResolvedTo(RAW_FIR)] lval originalName: <implicit> = <strcat>(nextUnnamedLibraryIndex#++)
public final [ResolvedTo(BODY_RESOLVE)] fun main([ResolvedTo(BODY_RESOLVE)] args: R|kotlin/Array<kotlin/String>|): R|kotlin/Unit| {
[ResolvedTo(BODY_RESOLVE)] lvar nextUnnamedLibraryIndex: R|kotlin/Int| = Int(1)
[ResolvedTo(BODY_RESOLVE)] lval originalName: R|kotlin/String| = <strcat>( {
[ResolvedTo(BODY_RESOLVE)] lval <unary>: R|kotlin/Int| = R|<local>/nextUnnamedLibraryIndex|
R|<local>/nextUnnamedLibraryIndex| = R|<local>/<unary>|.R|kotlin/Int.inc|()
R|<local>/<unary>|
}
)
}
@@ -3,17 +3,17 @@ FIR element: FirFunctionCallImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
mutableListOf#<String>()
R|kotlin/collections/mutableListOf|<R|kotlin/String|>()
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] insidePlusAssignTargetScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] fun foo([ResolvedTo(RAW_FIR)] x: MutableMap<Int, MutableList<String>>): R|kotlin/Unit| {
+=(x#.getOrPut#(IntegerLiteral(1), <L> = [ResolvedTo(RAW_FIR)] getOrPut@fun <implicit>.<anonymous>(): <implicit> <inline=Unknown> {
mutableListOf#<String>()
public final [ResolvedTo(BODY_RESOLVE)] fun foo([ResolvedTo(BODY_RESOLVE)] x: R|kotlin/collections/MutableMap<kotlin/Int, kotlin/collections/MutableList<kotlin/String>>|): R|kotlin/Unit| {
R|<local>/x|.R|kotlin/collections/getOrPut|<R|kotlin/Int|, R|kotlin/collections/MutableList<kotlin/String>|>(Int(1), <L> = [ResolvedTo(BODY_RESOLVE)] [MatchingParameterFunctionTypeKey=kotlin/Function0<V>] getOrPut@fun <anonymous>(): R|kotlin/collections/MutableList<kotlin/String>| <inline=Inline, kind=UNKNOWN> {
^ R|kotlin/collections/mutableListOf|<R|kotlin/String|>()
}
), String(str))
).R|kotlin/collections/plusAssign|<R|kotlin/String|>(String(str))
}
@@ -3,13 +3,13 @@ FIR element: FirConstExpressionImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
IntegerLiteral(1)
Int(1)
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] intLiteralScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] val x: <implicit> = IntegerLiteral(1)
public? [ResolvedTo(RAW_FIR)] get(): <implicit>
public final [ResolvedTo(BODY_RESOLVE)] val x: R|kotlin/Int| = Int(1)
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int|
@@ -3,14 +3,14 @@ FIR element: FirTypeOperatorCallImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
(x# is String)
(R|<local>/x| is R|kotlin/String|)
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] isExpressionScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] fun foo([ResolvedTo(RAW_FIR)] x: Any): Boolean {
^foo (x# is String)
public final [ResolvedTo(BODY_RESOLVE)] fun foo([ResolvedTo(BODY_RESOLVE)] x: R|kotlin/Any|): R|kotlin/Boolean| {
^foo (R|<local>/x| is R|kotlin/String|)
}
@@ -3,9 +3,9 @@ FIR element: FirAnonymousObjectExpressionImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
object : Any {
private [ResolvedTo(RAW_FIR)] [ContainingClassKey=<anonymous>] constructor(): R|<anonymous>| {
super<<implicit>>()
object : R|kotlin/Any| {
private [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=<anonymous>] constructor(): R|<anonymous>| {
super<R|kotlin/Any|>()
}
}
@@ -13,14 +13,14 @@ object : Any {
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] objectLiteralExpressionScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] val x: <implicit> = object : Any {
private [ResolvedTo(RAW_FIR)] [ContainingClassKey=<anonymous>] constructor(): R|<anonymous>| {
super<<implicit>>()
public final [ResolvedTo(BODY_RESOLVE)] val x: R|kotlin/Any| = object : R|kotlin/Any| {
private [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=<anonymous>] constructor(): R|<anonymous>| {
super<R|kotlin/Any|>()
}
}
public? [ResolvedTo(RAW_FIR)] get(): <implicit>
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Any|
@@ -1,15 +1,15 @@
KT element: KtParenthesizedExpression
FIR element: FirFunctionCallImpl
FIR element: FirIntegerLiteralOperatorCallImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
IntegerLiteral(1).plus#(IntegerLiteral(2))
Int(1).R|kotlin/Int.plus|(Int(2))
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] parenthesizedExpressionScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] val x: <implicit> = IntegerLiteral(1).plus#(IntegerLiteral(2))
public? [ResolvedTo(RAW_FIR)] get(): <implicit>
public final [ResolvedTo(BODY_RESOLVE)] val x: R|kotlin/Int| = Int(1).R|kotlin/Int.plus|(Int(2))
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int|
@@ -8,8 +8,8 @@ String(string)
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] stringLiteralScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] val x: <implicit> = String(string)
public? [ResolvedTo(RAW_FIR)] get(): <implicit>
public final [ResolvedTo(BODY_RESOLVE)] val x: R|kotlin/String| = String(string)
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/String|
@@ -1,15 +1,15 @@
KT element: KtBlockStringTemplateEntry
FIR element: FirFunctionCallImpl
FIR element: FirIntegerLiteralOperatorCallImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
IntegerLiteral(1).plus#(IntegerLiteral(2))
Int(1).R|kotlin/Int.plus|(Int(2))
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] stringTemplateExpressionEntryScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] val x: <implicit> = <strcat>(String(string ), IntegerLiteral(1).plus#(IntegerLiteral(2)), String( template))
public? [ResolvedTo(RAW_FIR)] get(): <implicit>
public final [ResolvedTo(BODY_RESOLVE)] val x: R|kotlin/String| = <strcat>(String(string ), Int(1).R|kotlin/Int.plus|(Int(2)), String( template))
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/String|
@@ -3,14 +3,14 @@ FIR element: FirThrowExpressionImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
throw IllegalStateException#()
throw R|java/lang/IllegalStateException.IllegalStateException|()
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] throwExpressionScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] fun x(): R|kotlin/Unit| {
throw IllegalStateException#()
public final [ResolvedTo(BODY_RESOLVE)] fun x(): R|kotlin/Unit| {
throw R|java/lang/IllegalStateException.IllegalStateException|()
}
@@ -4,9 +4,9 @@ FIR source kind: KtRealSourceElementKind
FIR element rendered:
try {
IntegerLiteral(1)
Int(1)
}
catch ([ResolvedTo(RAW_FIR)] [IsCatchParameterProperty=true] e: Throwable) {
catch ([ResolvedTo(BODY_RESOLVE)] [IsCatchParameterProperty=true] e: R|kotlin/Throwable|) {
}
finally {
}
@@ -14,14 +14,14 @@ finally {
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] tryExpressionScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] fun x(): R|kotlin/Unit| {
public final [ResolvedTo(BODY_RESOLVE)] fun x(): R|kotlin/Unit| {
try {
IntegerLiteral(1)
Int(1)
}
catch ([ResolvedTo(RAW_FIR)] [IsCatchParameterProperty=true] e: Throwable) {
catch ([ResolvedTo(BODY_RESOLVE)] [IsCatchParameterProperty=true] e: R|kotlin/Throwable|) {
}
finally {
}
@@ -3,8 +3,8 @@ FIR element: FirWhenExpressionImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
when (x#) {
($subj$ is String) -> {
when (R|<local>/x|) {
($subj$ is R|kotlin/String|) -> {
String(1)
}
else -> {
@@ -15,12 +15,12 @@ when (x#) {
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] whenExpressionScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] fun foo([ResolvedTo(RAW_FIR)] x: Any): String {
^foo when (x#) {
($subj$ is String) -> {
public final [ResolvedTo(BODY_RESOLVE)] fun foo([ResolvedTo(BODY_RESOLVE)] x: R|kotlin/Any|): R|kotlin/String| {
^foo when (R|<local>/x|) {
($subj$ is R|kotlin/String|) -> {
String(1)
}
else -> {
@@ -9,10 +9,10 @@ while(Boolean(true)) {
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] whileExpressionScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] fun foo(): R|kotlin/Unit| {
public final [ResolvedTo(BODY_RESOLVE)] fun foo(): R|kotlin/Unit| {
while(Boolean(true)) {
}
@@ -3,13 +3,13 @@ FIR element: FirStringConcatenationCallImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
<strcat>(String(string ), IntegerLiteral(1).plus#(IntegerLiteral(2)), String( template))
<strcat>(String(string ), Int(1).R|kotlin/Int.plus|(Int(2)), String( template))
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] wholeStringTemplateScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] val x: <implicit> = <strcat>(String(string ), IntegerLiteral(1).plus#(IntegerLiteral(2)), String( template))
public? [ResolvedTo(RAW_FIR)] get(): <implicit>
public final [ResolvedTo(BODY_RESOLVE)] val x: R|kotlin/String| = <strcat>(String(string ), Int(1).R|kotlin/Int.plus|(Int(2)), String( template))
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/String|
@@ -1,33 +1,33 @@
KT element: KtNameReferenceExpression
FIR element: FirPropertyAccessExpressionImpl
FIR element: FirResolvedQualifierImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
A#
Q|A.B|
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] firstPartOfQualifiedCallWithNestedClassesScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] class A : R|kotlin/Any| {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor(): R|A| {
public final [ResolvedTo(STATUS)] class A : R|kotlin/Any| {
public [ResolvedTo(STATUS)] [ContainingClassKey=A] constructor(): R|A| {
super<R|kotlin/Any|>()
}
public? final? [ResolvedTo(RAW_FIR)] class B : R|kotlin/Any| {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=B] constructor(): R|A.B| {
public final [ResolvedTo(STATUS)] class B : R|kotlin/Any| {
public [ResolvedTo(STATUS)] [ContainingClassKey=B] constructor(): R|A.B| {
super<R|kotlin/Any|>()
}
public? final? [ResolvedTo(RAW_FIR)] class C : R|kotlin/Any| {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=C] constructor(): R|A.B.C| {
public final [ResolvedTo(STATUS)] class C : R|kotlin/Any| {
public [ResolvedTo(STATUS)] [ContainingClassKey=C] constructor(): R|A.B.C| {
super<R|kotlin/Any|>()
}
public? final? [ResolvedTo(RAW_FIR)] val x: <implicit> = IntegerLiteral(10)
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=C] get(): <implicit>
public final [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] val x: R|kotlin/Int| = Int(10)
public [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] [ContainingClassKey=C] get(): R|kotlin/Int|
}
@@ -35,6 +35,6 @@ FILE: [ResolvedTo(IMPORTS)] firstPartOfQualifiedCallWithNestedClassesScript.kts
}
public? final? [ResolvedTo(RAW_FIR)] fun x(): R|kotlin/Unit| {
A#.B#.C#().x#
public final [ResolvedTo(BODY_RESOLVE)] fun x(): R|kotlin/Unit| {
Q|A.B|.R|/A.B.C.C|().R|/A.B.C.x|
}
@@ -3,21 +3,27 @@ FIR element: FirFunctionCallImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
peek#()
<Unresolved name: peek>#()
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] qualifiedPartOfQualifiedCallUnresolvedScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(RAW_FIR)]
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] class FF : R|kotlin/Any| {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=FF] constructor(): R|FF| {
public final [ResolvedTo(STATUS)] class FF : R|kotlin/Any| {
public [ResolvedTo(STATUS)] [ContainingClassKey=FF] constructor(): R|FF| {
super<R|kotlin/Any|>()
}
public? final? [ResolvedTo(RAW_FIR)] fun handleLeftBracketInFragment(): R|kotlin/Unit| {
peek#().braceBalance#++
public final [ResolvedTo(BODY_RESOLVE)] fun handleLeftBracketInFragment(): R|kotlin/Unit| {
{
[ResolvedTo(BODY_RESOLVE)] lval <receiver>: <ERROR TYPE REF: Unresolved name: peek> = <Unresolved name: peek>#()
[ResolvedTo(BODY_RESOLVE)] lval <unary>: <ERROR TYPE REF: Unresolved name: braceBalance> = R|<local>/<receiver>|.<Unresolved name: braceBalance>#
R|<local>/<receiver>|.<Unresolved name: braceBalance># = R|<local>/<unary>|.<Unresolved name: inc>#()
R|<local>/<unary>|
}
}
}

Some files were not shown because too many files have changed in this diff Show More