diff --git a/compiler/fir/psi2fir/testData/rawBuilder/expressions/annotated.txt b/compiler/fir/psi2fir/testData/rawBuilder/expressions/annotated.txt index 411c53d339a..b0ef7baba3e 100644 --- a/compiler/fir/psi2fir/testData/rawBuilder/expressions/annotated.txt +++ b/compiler/fir/psi2fir/testData/rawBuilder/expressions/annotated.txt @@ -31,6 +31,6 @@ FILE: annotated.kt } public? final? fun bar(two: Two): R|kotlin/Unit| { lval : = two# - @Ann() lval x: = R|/|.component1() - @Ann() lval y: = R|/|.component2() + @Ann() lval x: = R|/|.component1#() + @Ann() lval y: = R|/|.component2#() } diff --git a/compiler/fir/psi2fir/testData/rawBuilder/expressions/destructuring.txt b/compiler/fir/psi2fir/testData/rawBuilder/expressions/destructuring.txt index 45629a37ef0..9ff7f163329 100644 --- a/compiler/fir/psi2fir/testData/rawBuilder/expressions/destructuring.txt +++ b/compiler/fir/psi2fir/testData/rawBuilder/expressions/destructuring.txt @@ -31,9 +31,9 @@ FILE: destructuring.kt } public? final? fun foo(some: Some): R|kotlin/Unit| { lval : = some# - lvar x: = R|/|.component1() - lvar y: = R|/|.component2() - lvar z: String = R|/|.component3() + lvar x: = R|/|.component1#() + lvar y: = R|/|.component2#() + lvar z: String = R|/|.component3#() lval : = x# x# = R|/|.inc#() R|/| diff --git a/compiler/fir/psi2fir/testData/rawBuilder/expressions/for.txt b/compiler/fir/psi2fir/testData/rawBuilder/expressions/for.txt index ec7ef778478..2b2dcf716f2 100644 --- a/compiler/fir/psi2fir/testData/rawBuilder/expressions/for.txt +++ b/compiler/fir/psi2fir/testData/rawBuilder/expressions/for.txt @@ -64,8 +64,8 @@ FILE: for.kt lval : = set#.iterator#() while(R|/|.hasNext#()) { lval : = R|/|.next#() - lval x: = R|/|.component1() - lval y: = R|/|.component2() + lval x: = R|/|.component1#() + lval y: = R|/|.component2#() println#((String(x = ), x#.toString#(), String( y = ), y#.toString#())) } diff --git a/compiler/fir/psi2fir/testData/rawBuilder/expressions/lambda.txt b/compiler/fir/psi2fir/testData/rawBuilder/expressions/lambda.txt index e2a128867b8..f1847a2f7c6 100644 --- a/compiler/fir/psi2fir/testData/rawBuilder/expressions/lambda.txt +++ b/compiler/fir/psi2fir/testData/rawBuilder/expressions/lambda.txt @@ -33,8 +33,8 @@ FILE: lambda.kt } use#( = use@fun .(: ): { - lval x: = R|/|.component1() - lval y: = R|/|.component2() + lval x: = R|/|.component1#() + lval y: = R|/|.component2#() x#.plus#(y#) } ) diff --git a/compiler/fir/tree/src/org/jetbrains/kotlin/fir/FirRenderer.kt b/compiler/fir/tree/src/org/jetbrains/kotlin/fir/FirRenderer.kt index 4927945bd69..4ed8b7dbac6 100644 --- a/compiler/fir/tree/src/org/jetbrains/kotlin/fir/FirRenderer.kt +++ b/compiler/fir/tree/src/org/jetbrains/kotlin/fir/FirRenderer.kt @@ -1027,9 +1027,7 @@ class FirRenderer(builder: StringBuilder, private val mode: RenderMode = RenderM } override fun visitComponentCall(componentCall: FirComponentCall) { - componentCall.annotations.renderAnnotations() - componentCall.explicitReceiver.accept(this) - print(".component${componentCall.componentIndex}()") + visitFunctionCall(componentCall) } override fun visitGetClassCall(getClassCall: FirGetClassCall) {