2e049c1208
The fix is a bit hacky, but it's very simple. In addition, it still does not handle the case where the receiver is a lambda function. But such case seems to be fairly rare in practice.
64 lines
1.8 KiB
Plaintext
Vendored
64 lines
1.8 KiB
Plaintext
Vendored
digraph postponedLambdas_kt {
|
|
graph [nodesep=3]
|
|
node [shape=box penwidth=2]
|
|
edge [penwidth=2]
|
|
|
|
subgraph cluster_0 {
|
|
color=red
|
|
0 [label="Enter function foo" style="filled" fillcolor=red];
|
|
subgraph cluster_1 {
|
|
color=blue
|
|
1 [label="Enter block"];
|
|
2 [label="Exit block"];
|
|
}
|
|
3 [label="Exit function foo" style="filled" fillcolor=red];
|
|
}
|
|
0 -> {1};
|
|
1 -> {2};
|
|
2 -> {3};
|
|
|
|
subgraph cluster_2 {
|
|
color=red
|
|
4 [label="Enter function test" style="filled" fillcolor=red];
|
|
subgraph cluster_3 {
|
|
color=blue
|
|
5 [label="Enter block"];
|
|
6 [label="Access variable R|<local>/a|"];
|
|
7 [label="Access variable R|<local>/b|"];
|
|
8 [label="Postponed enter to lambda"];
|
|
subgraph cluster_4 {
|
|
color=blue
|
|
13 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
|
|
subgraph cluster_5 {
|
|
color=blue
|
|
14 [label="Enter block"];
|
|
15 [label="Const: String()"];
|
|
16 [label="Exit block"];
|
|
}
|
|
17 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
|
|
}
|
|
9 [label="Postponed exit from lambda"];
|
|
10 [label="Function call: R|/foo|(...)"];
|
|
11 [label="Exit block"];
|
|
}
|
|
12 [label="Exit function test" style="filled" fillcolor=red];
|
|
}
|
|
4 -> {5};
|
|
5 -> {6};
|
|
6 -> {7};
|
|
7 -> {8};
|
|
8 -> {13};
|
|
8 -> {9} [color=red];
|
|
8 -> {13} [style=dashed];
|
|
9 -> {10};
|
|
10 -> {11};
|
|
11 -> {12};
|
|
13 -> {17 14};
|
|
14 -> {15};
|
|
15 -> {16};
|
|
16 -> {17};
|
|
17 -> {9} [color=green];
|
|
17 -> {13} [color=green style=dashed];
|
|
|
|
}
|