[FIR] FirComponentCall rendered same as FirFunctionCall
This commit is contained in:
@@ -31,6 +31,6 @@ FILE: annotated.kt
|
|||||||
}
|
}
|
||||||
public? final? fun bar(two: Two): R|kotlin/Unit| {
|
public? final? fun bar(two: Two): R|kotlin/Unit| {
|
||||||
lval <destruct>: <implicit> = two#
|
lval <destruct>: <implicit> = two#
|
||||||
@Ann() lval x: <implicit> = R|<local>/<destruct>|.component1()
|
@Ann() lval x: <implicit> = R|<local>/<destruct>|.component1#()
|
||||||
@Ann() lval y: <implicit> = R|<local>/<destruct>|.component2()
|
@Ann() lval y: <implicit> = R|<local>/<destruct>|.component2#()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,9 +31,9 @@ FILE: destructuring.kt
|
|||||||
}
|
}
|
||||||
public? final? fun foo(some: Some): R|kotlin/Unit| {
|
public? final? fun foo(some: Some): R|kotlin/Unit| {
|
||||||
lval <destruct>: <implicit> = some#
|
lval <destruct>: <implicit> = some#
|
||||||
lvar x: <implicit> = R|<local>/<destruct>|.component1()
|
lvar x: <implicit> = R|<local>/<destruct>|.component1#()
|
||||||
lvar y: <implicit> = R|<local>/<destruct>|.component2()
|
lvar y: <implicit> = R|<local>/<destruct>|.component2#()
|
||||||
lvar z: String = R|<local>/<destruct>|.component3()
|
lvar z: String = R|<local>/<destruct>|.component3#()
|
||||||
lval <unary>: <implicit> = x#
|
lval <unary>: <implicit> = x#
|
||||||
x# = R|<local>/<unary>|.inc#()
|
x# = R|<local>/<unary>|.inc#()
|
||||||
R|<local>/<unary>|
|
R|<local>/<unary>|
|
||||||
|
|||||||
@@ -64,8 +64,8 @@ FILE: for.kt
|
|||||||
lval <iterator>: <implicit> = set#.iterator#()
|
lval <iterator>: <implicit> = set#.iterator#()
|
||||||
while(R|<local>/<iterator>|.hasNext#()) {
|
while(R|<local>/<iterator>|.hasNext#()) {
|
||||||
lval <destruct>: <implicit> = R|<local>/<iterator>|.next#()
|
lval <destruct>: <implicit> = R|<local>/<iterator>|.next#()
|
||||||
lval x: <implicit> = R|<local>/<destruct>|.component1()
|
lval x: <implicit> = R|<local>/<destruct>|.component1#()
|
||||||
lval y: <implicit> = R|<local>/<destruct>|.component2()
|
lval y: <implicit> = R|<local>/<destruct>|.component2#()
|
||||||
println#(<strcat>(String(x = ), x#.toString#(), String( y = ), y#.toString#()))
|
println#(<strcat>(String(x = ), x#.toString#(), String( y = ), y#.toString#()))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -33,8 +33,8 @@ FILE: lambda.kt
|
|||||||
}
|
}
|
||||||
|
|
||||||
use#(<L> = use@fun <implicit>.<anonymous>(<destruct>: <implicit>): <implicit> {
|
use#(<L> = use@fun <implicit>.<anonymous>(<destruct>: <implicit>): <implicit> {
|
||||||
lval x: <implicit> = R|<local>/<destruct>|.component1()
|
lval x: <implicit> = R|<local>/<destruct>|.component1#()
|
||||||
lval y: <implicit> = R|<local>/<destruct>|.component2()
|
lval y: <implicit> = R|<local>/<destruct>|.component2#()
|
||||||
x#.plus#(y#)
|
x#.plus#(y#)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1027,9 +1027,7 @@ class FirRenderer(builder: StringBuilder, private val mode: RenderMode = RenderM
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun visitComponentCall(componentCall: FirComponentCall) {
|
override fun visitComponentCall(componentCall: FirComponentCall) {
|
||||||
componentCall.annotations.renderAnnotations()
|
visitFunctionCall(componentCall)
|
||||||
componentCall.explicitReceiver.accept(this)
|
|
||||||
print(".component${componentCall.componentIndex}()")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun visitGetClassCall(getClassCall: FirGetClassCall) {
|
override fun visitGetClassCall(getClassCall: FirGetClassCall) {
|
||||||
|
|||||||
Reference in New Issue
Block a user