FIR CFA: put primary constructor before other class members

This commit is contained in:
pyos
2022-12-11 16:35:08 +01:00
committed by Dmitriy Novozhilov
parent c6e9afb788
commit 17ee8f3a7b
31 changed files with 1890 additions and 1871 deletions
@@ -8,82 +8,83 @@ digraph secondaryConstructorCfg_kt {
0 [label="Enter class B" style="filled" fillcolor=red];
subgraph cluster_1 {
color=blue
1 [label="Enter property" style="filled" fillcolor=red];
2 [label="Access variable R|<local>/p0|"];
3 [label="Exit property" style="filled" fillcolor=red];
1 [label="Enter function <init>" style="filled" fillcolor=red];
2 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
3 [label="Exit function <init>" style="filled" fillcolor=red];
}
subgraph cluster_2 {
color=blue
4 [label="Enter property" style="filled" fillcolor=red];
5 [label="Access variable R|<local>/p0|"];
6 [label="Access variable R|kotlin/String.length|"];
7 [label="Exit property" style="filled" fillcolor=red];
6 [label="Exit property" style="filled" fillcolor=red];
}
subgraph cluster_3 {
color=blue
8 [label="Enter init block" style="filled" fillcolor=red];
subgraph cluster_4 {
color=blue
9 [label="Enter block"];
10 [label="Access variable R|<local>/p0|"];
11 [label="Access variable R|kotlin/String.length|"];
12 [label="Assignment: R|/B.p1|"];
13 [label="Const: String()"];
14 [label="Assignment: R|/B.p3|"];
15 [label="Exit block"];
}
16 [label="Exit init block" style="filled" fillcolor=red];
7 [label="Enter property" style="filled" fillcolor=red];
8 [label="Access variable R|<local>/p0|"];
9 [label="Access variable R|kotlin/String.length|"];
10 [label="Exit property" style="filled" fillcolor=red];
}
17 [label="Exit class B" style="filled" fillcolor=red];
}
subgraph cluster_5 {
color=blue
18 [label="Enter function <init>" style="filled" fillcolor=red];
19 [label="Access variable R|<local>/p0|"];
20 [label="Delegated constructor call: this<R|B|>(...)" style="filled" fillcolor=yellow];
subgraph cluster_6 {
subgraph cluster_4 {
color=blue
21 [label="Enter block"];
22 [label="Access variable R|<local>/p1|"];
23 [label="Assignment: R|/B.p3|"];
24 [label="Exit block"];
11 [label="Enter init block" style="filled" fillcolor=red];
subgraph cluster_5 {
color=blue
12 [label="Enter block"];
13 [label="Access variable R|<local>/p0|"];
14 [label="Access variable R|kotlin/String.length|"];
15 [label="Assignment: R|/B.p1|"];
16 [label="Const: String()"];
17 [label="Assignment: R|/B.p3|"];
18 [label="Exit block"];
}
19 [label="Exit init block" style="filled" fillcolor=red];
}
25 [label="Exit function <init>" style="filled" fillcolor=red];
20 [label="Exit class B" style="filled" fillcolor=red];
}
subgraph cluster_7 {
subgraph cluster_6 {
color=blue
26 [label="Enter function <init>" style="filled" fillcolor=red];
27 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
21 [label="Enter function <init>" style="filled" fillcolor=red];
22 [label="Access variable R|<local>/p0|"];
23 [label="Delegated constructor call: this<R|B|>(...)" style="filled" fillcolor=yellow];
subgraph cluster_7 {
color=blue
24 [label="Enter block"];
25 [label="Access variable R|<local>/p1|"];
26 [label="Assignment: R|/B.p3|"];
27 [label="Exit block"];
}
28 [label="Exit function <init>" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
0 -> {17} [style=dotted];
0 -> {1 4 8} [style=dashed];
0 -> {20} [style=dotted];
0 -> {1 4 7 11} [style=dashed];
1 -> {2};
2 -> {3};
3 -> {4} [color=green];
4 -> {5};
5 -> {6};
6 -> {7};
7 -> {8} [color=green];
6 -> {7} [color=green];
7 -> {8};
8 -> {9};
9 -> {10};
10 -> {11};
10 -> {11} [color=green];
11 -> {12};
12 -> {13};
13 -> {14};
14 -> {15};
15 -> {16};
16 -> {17} [color=green];
17 -> {18 26} [color=green];
17 -> {18 26} [style=dashed];
16 -> {17};
17 -> {18};
18 -> {19};
19 -> {20};
20 -> {21};
19 -> {20} [color=green];
20 -> {21} [color=green];
20 -> {21} [style=dashed];
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {28};