FIR: Fix rendered fir and DFA graph test data after safe-calls refactoring
^KT-38444 In Progress
This commit is contained in:
+1
-1
@@ -62,7 +62,7 @@ digraph initBlockAndInPlaceLambda_kt {
|
||||
}
|
||||
26 [label="Call arguments union" style="filled" fillcolor=yellow];
|
||||
24 [label="Postponed exit from lambda"];
|
||||
25 [label="Function call: R|<local>/a|.R|/A.b|?.R|kotlin/let|<R|B|, R|C|>(...)"];
|
||||
25 [label="Function call: $subj$.R|kotlin/let|<R|B|, R|C|>(...)"];
|
||||
22 [label="Exit safe call"];
|
||||
27 [label="Variable declaration: lval c: R|C?|"];
|
||||
28 [label="Exit block"];
|
||||
|
||||
+2
-2
@@ -12,10 +12,10 @@ FILE: initBlockAndInPlaceLambda.kt
|
||||
}
|
||||
|
||||
init {
|
||||
lval c: R|C?| = R|<local>/a|.R|/A.b|?.R|kotlin/let|<R|B|, R|C|>(<L> = let@fun <anonymous>(it: R|B|): R|C| <kind=EXACTLY_ONCE> {
|
||||
lval c: R|C?| = R|<local>/a|.R|/A.b|?.{ $subj$.R|kotlin/let|<R|B|, R|C|>(<L> = let@fun <anonymous>(it: R|B|): R|C| <kind=EXACTLY_ONCE> {
|
||||
^ R|/C.C|(R|<local>/a|, R|<local>/it|)
|
||||
}
|
||||
)
|
||||
) }
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -62,10 +62,10 @@ digraph safeCalls_kt {
|
||||
16 [label="Enter function test_1" style="filled" fillcolor=red];
|
||||
18 [label="Access variable R|<local>/x|"];
|
||||
19 [label="Enter safe call"];
|
||||
21 [label="Function call: R|<local>/x|?.R|/A.foo|()"];
|
||||
21 [label="Function call: $subj$.R|/A.foo|()"];
|
||||
20 [label="Exit safe call"];
|
||||
22 [label="Enter safe call"];
|
||||
24 [label="Function call: R|<local>/x|?.R|/A.foo|()?.R|/A.bar|()"];
|
||||
24 [label="Function call: $subj$.R|/A.bar|()"];
|
||||
23 [label="Exit safe call"];
|
||||
17 [label="Exit function test_1" style="filled" fillcolor=red];
|
||||
}
|
||||
|
||||
@@ -14,8 +14,8 @@ FILE: safeCalls.kt
|
||||
|
||||
}
|
||||
public final fun test_1(x: R|A?|): R|kotlin/Unit| {
|
||||
R|<local>/x|?.R|/A.foo|()?.R|/A.bar|()
|
||||
R|<local>/x|?.{ $subj$.R|/A.foo|() }?.{ $subj$.R|/A.bar|() }
|
||||
}
|
||||
public final fun test_2(x: R|B?|): R|kotlin/Unit| {
|
||||
R|<local>/x|?.R|/B.foo|?.R|/B.bar|
|
||||
R|<local>/x|?.{ $subj$.R|/B.foo| }?.{ $subj$.R|/B.bar| }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user