17a1871b83
The primary constructor of a class needs to be the first subgraph of the class control-flow graph. Based on the Kotlin specification, class initialization order goes first primary constructor, in-place declarations (properties and init blocks), and then secondary constructors. If the class doesn't have a primary constructor, then it is just skipped in the order. Unfortunately, the class control-flow graph had in-place declarations first and then all constructors. Instead, we should treat the primary constructor as the first in-place declaration, and then continue with the existing processing as secondary constructors. This will guarantee that super constructor calls have the correct property initialization information. ^KT-65093 Fixed
190 lines
8.1 KiB
Plaintext
Vendored
190 lines
8.1 KiB
Plaintext
Vendored
digraph plusAssignWithLambdaInRhs_kt {
|
|
graph [nodesep=3]
|
|
node [shape=box penwidth=2]
|
|
edge [penwidth=2]
|
|
|
|
subgraph cluster_0 {
|
|
color=red
|
|
0 [label="Enter file plusAssignWithLambdaInRhs.kt" style="filled" fillcolor=red];
|
|
1 [label="Exit file plusAssignWithLambdaInRhs.kt" style="filled" fillcolor=red];
|
|
}
|
|
0 -> {1} [color=green];
|
|
|
|
subgraph cluster_1 {
|
|
color=red
|
|
2 [label="Enter function test" style="filled" fillcolor=red];
|
|
subgraph cluster_2 {
|
|
color=blue
|
|
3 [label="Enter block"];
|
|
4 [label="Const: Null(null)"];
|
|
5 [label="Check not null: Null(null)!!" style="filled" fillcolor=yellow];
|
|
6 [label="Stub" style="filled" fillcolor=gray];
|
|
7 [label="Variable declaration: lval list: R|kotlin/collections/MutableList<kotlin/Function1<kotlin/String, kotlin/String>>|" style="filled" fillcolor=gray];
|
|
8 [label="Access variable R|<local>/list|" style="filled" fillcolor=gray];
|
|
9 [label="Postponed enter to lambda" style="filled" fillcolor=gray];
|
|
subgraph cluster_3 {
|
|
color=blue
|
|
10 [label="Enter function <anonymous>" style="filled" fillcolor=gray];
|
|
subgraph cluster_4 {
|
|
color=blue
|
|
11 [label="Enter block" style="filled" fillcolor=gray];
|
|
12 [label="Access variable R|<local>/it|" style="filled" fillcolor=gray];
|
|
13 [label="Exit block" style="filled" fillcolor=gray];
|
|
}
|
|
14 [label="Exit function <anonymous>" style="filled" fillcolor=gray];
|
|
}
|
|
15 [label="Postponed exit from lambda" style="filled" fillcolor=gray];
|
|
16 [label="Function call: R|<local>/list|.R|kotlin/collections/plusAssign|<R|(kotlin/String) -> kotlin/String|>(...)" style="filled" fillcolor=gray];
|
|
17 [label="Exit block" style="filled" fillcolor=gray];
|
|
}
|
|
18 [label="Exit function test" style="filled" fillcolor=gray];
|
|
}
|
|
2 -> {3};
|
|
3 -> {4};
|
|
4 -> {5};
|
|
5 -> {6} [style=dotted];
|
|
6 -> {7} [style=dotted];
|
|
7 -> {8} [style=dotted];
|
|
8 -> {9} [style=dotted];
|
|
9 -> {10 15 16} [style=dotted];
|
|
9 -> {10} [style=dashed];
|
|
10 -> {11} [style=dotted];
|
|
11 -> {12} [style=dotted];
|
|
12 -> {13} [style=dotted];
|
|
13 -> {14} [style=dotted];
|
|
15 -> {16} [style=dotted label="Postponed"];
|
|
16 -> {17} [style=dotted];
|
|
17 -> {18} [style=dotted];
|
|
|
|
subgraph cluster_5 {
|
|
color=red
|
|
19 [label="Enter class A" style="filled" fillcolor=red];
|
|
subgraph cluster_6 {
|
|
color=blue
|
|
20 [label="Enter function <init>" style="filled" fillcolor=red];
|
|
21 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
|
|
22 [label="Exit function <init>" style="filled" fillcolor=red];
|
|
}
|
|
subgraph cluster_7 {
|
|
color=blue
|
|
23 [label="Enter property" style="filled" fillcolor=red];
|
|
24 [label="Access variable R|<local>/executor|"];
|
|
25 [label="Exit property" style="filled" fillcolor=red];
|
|
}
|
|
26 [label="Exit class A" style="filled" fillcolor=red];
|
|
}
|
|
19 -> {20} [color=green];
|
|
19 -> {26} [style=dotted];
|
|
19 -> {20 23} [style=dashed];
|
|
20 -> {21};
|
|
21 -> {22};
|
|
22 -> {23} [color=green];
|
|
23 -> {24};
|
|
24 -> {25};
|
|
25 -> {26} [color=green];
|
|
|
|
subgraph cluster_8 {
|
|
color=red
|
|
27 [label="Enter function postpone" style="filled" fillcolor=red];
|
|
subgraph cluster_9 {
|
|
color=blue
|
|
28 [label="Enter block"];
|
|
subgraph cluster_10 {
|
|
color=blue
|
|
29 [label="Function call arguments enter"];
|
|
30 [label="Function call arguments exit"];
|
|
}
|
|
31 [label="Function call: R|kotlin/collections/mutableListOf|<R|() -> kotlin/Unit|>()" style="filled" fillcolor=yellow];
|
|
32 [label="Variable declaration: lval queue: R|kotlin/collections/MutableList<kotlin/Function0<kotlin/Unit>>|"];
|
|
subgraph cluster_11 {
|
|
color=blue
|
|
33 [label="Function call arguments enter"];
|
|
34 [label="Postponed enter to lambda"];
|
|
subgraph cluster_12 {
|
|
color=blue
|
|
35 [label="Enter function <anonymous>" style="filled" fillcolor=red];
|
|
subgraph cluster_13 {
|
|
color=blue
|
|
36 [label="Enter block"];
|
|
37 [label="Access variable R|<local>/queue|"];
|
|
38 [label="Postponed enter to lambda"];
|
|
subgraph cluster_14 {
|
|
color=blue
|
|
39 [label="Enter function <anonymous>" style="filled" fillcolor=red];
|
|
subgraph cluster_15 {
|
|
color=blue
|
|
40 [label="Enter block"];
|
|
subgraph cluster_16 {
|
|
color=blue
|
|
41 [label="Function call arguments enter"];
|
|
subgraph cluster_17 {
|
|
color=blue
|
|
42 [label="Function call arguments enter"];
|
|
43 [label="Function call arguments exit"];
|
|
}
|
|
44 [label="Function call: R|<local>/computation|.R|SubstitutionOverride<kotlin/Function0.invoke: R|T|>|()" style="filled" fillcolor=yellow];
|
|
45 [label="Function call arguments exit"];
|
|
}
|
|
46 [label="Function call: R|<local>/resolve|.R|SubstitutionOverride<kotlin/Function1.invoke: R|kotlin/Unit|>|(...)" style="filled" fillcolor=yellow];
|
|
47 [label="Exit block"];
|
|
}
|
|
48 [label="Exit function <anonymous>" style="filled" fillcolor=red];
|
|
}
|
|
49 [label="Postponed exit from lambda"];
|
|
50 [label="Function call: R|<local>/queue|.R|kotlin/collections/plusAssign|<R|() -> kotlin/Unit|>(...)" style="filled" fillcolor=yellow];
|
|
51 [label="Exit block"];
|
|
}
|
|
52 [label="Exit function <anonymous>" style="filled" fillcolor=red];
|
|
}
|
|
53 [label="Function call arguments exit"];
|
|
}
|
|
54 [label="Postponed exit from lambda"];
|
|
55 [label="Function call: R|/A.A|<R|T|>(...)" style="filled" fillcolor=yellow];
|
|
56 [label="Jump: ^postpone R|/A.A|<R|T|>(<L> = A@fun <anonymous>(resolve: R|(T) -> kotlin/Unit|): R|kotlin/Unit| <inline=NoInline> {
|
|
R|<local>/queue|.R|kotlin/collections/plusAssign|<R|() -> kotlin/Unit|>(fun <anonymous>(): R|kotlin/Unit| <inline=NoInline> {
|
|
R|<local>/resolve|.R|SubstitutionOverride<kotlin/Function1.invoke: R|kotlin/Unit|>|(R|<local>/computation|.R|SubstitutionOverride<kotlin/Function0.invoke: R|T|>|())
|
|
}
|
|
)
|
|
}
|
|
)"];
|
|
57 [label="Stub" style="filled" fillcolor=gray];
|
|
58 [label="Exit block" style="filled" fillcolor=gray];
|
|
}
|
|
59 [label="Exit function postpone" style="filled" fillcolor=red];
|
|
}
|
|
27 -> {28};
|
|
28 -> {29};
|
|
29 -> {30};
|
|
30 -> {31};
|
|
31 -> {32};
|
|
32 -> {33};
|
|
33 -> {34};
|
|
34 -> {35 53 54};
|
|
34 -> {35} [style=dashed];
|
|
35 -> {36};
|
|
36 -> {37};
|
|
37 -> {38};
|
|
38 -> {39 49 50};
|
|
38 -> {39} [style=dashed];
|
|
39 -> {40};
|
|
40 -> {41};
|
|
41 -> {42};
|
|
42 -> {43};
|
|
43 -> {44};
|
|
44 -> {45};
|
|
45 -> {46};
|
|
46 -> {47};
|
|
47 -> {48};
|
|
49 -> {50} [label="Postponed"];
|
|
50 -> {51};
|
|
51 -> {52};
|
|
53 -> {55};
|
|
54 -> {55} [label="Postponed"];
|
|
55 -> {56};
|
|
56 -> {59};
|
|
56 -> {57} [style=dotted];
|
|
57 -> {58} [style=dotted];
|
|
58 -> {59} [style=dotted];
|
|
|
|
}
|