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,94 +8,96 @@ digraph overridenOpenVal_kt {
0 [label="Enter class A" style="filled" fillcolor=red];
subgraph cluster_1 {
color=blue
1 [label="Enter property" style="filled" fillcolor=red];
2 [label="Access variable R|<local>/x|"];
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];
}
4 [label="Exit class A" style="filled" fillcolor=red];
}
subgraph cluster_2 {
color=blue
5 [label="Enter function <init>" style="filled" fillcolor=red];
6 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
7 [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>/x|"];
6 [label="Exit property" style="filled" fillcolor=red];
}
7 [label="Exit class A" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
0 -> {4} [style=dotted];
0 -> {1} [style=dashed];
0 -> {7} [style=dotted];
0 -> {1 4} [style=dashed];
1 -> {2};
2 -> {3};
3 -> {4} [color=green];
4 -> {5} [color=green];
4 -> {5} [style=dashed];
4 -> {5};
5 -> {6};
6 -> {7};
6 -> {7} [color=green];
subgraph cluster_3 {
color=red
8 [label="Enter class B" style="filled" fillcolor=red];
9 [label="Exit class B" style="filled" fillcolor=red];
}
subgraph cluster_4 {
color=blue
10 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_5 {
subgraph cluster_4 {
color=blue
11 [label="Enter block"];
subgraph cluster_6 {
9 [label="Enter function <init>" style="filled" fillcolor=red];
10 [label="Access variable R|<local>/x|"];
11 [label="Delegated constructor call: super<R|A|>(...)" style="filled" fillcolor=yellow];
12 [label="Exit function <init>" style="filled" fillcolor=red];
}
13 [label="Exit class B" style="filled" fillcolor=red];
}
subgraph cluster_5 {
color=blue
14 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_6 {
color=blue
15 [label="Enter block"];
subgraph cluster_7 {
color=blue
12 [label="Enter when"];
subgraph cluster_7 {
color=blue
13 [label="Enter when branch condition "];
14 [label="Access variable R|/A.x|"];
15 [label="Type operator: (this@R|/B|.R|/A.x| is R|kotlin/String|)"];
16 [label="Exit when branch condition"];
}
17 [label="Synthetic else branch"];
18 [label="Enter when branch result"];
16 [label="Enter when"];
subgraph cluster_8 {
color=blue
19 [label="Enter block"];
20 [label="Access variable R|/A.x|"];
21 [label="Smart cast: this@R|/B|.R|/A.x|"];
22 [label="Access variable R|kotlin/String.length|"];
23 [label="Exit block"];
17 [label="Enter when branch condition "];
18 [label="Access variable R|/A.x|"];
19 [label="Type operator: (this@R|/B|.R|/A.x| is R|kotlin/String|)"];
20 [label="Exit when branch condition"];
}
24 [label="Exit when branch result"];
25 [label="Exit when"];
21 [label="Synthetic else branch"];
22 [label="Enter when branch result"];
subgraph cluster_9 {
color=blue
23 [label="Enter block"];
24 [label="Access variable R|/A.x|"];
25 [label="Smart cast: this@R|/B|.R|/A.x|"];
26 [label="Access variable R|kotlin/String.length|"];
27 [label="Exit block"];
}
28 [label="Exit when branch result"];
29 [label="Exit when"];
}
26 [label="Exit block"];
30 [label="Exit block"];
}
27 [label="Exit function test_1" style="filled" fillcolor=red];
}
subgraph cluster_9 {
color=blue
28 [label="Enter function <init>" style="filled" fillcolor=red];
29 [label="Access variable R|<local>/x|"];
30 [label="Delegated constructor call: super<R|A|>(...)" style="filled" fillcolor=yellow];
31 [label="Exit function <init>" style="filled" fillcolor=red];
31 [label="Exit function test_1" style="filled" fillcolor=red];
}
8 -> {9} [color=green];
9 -> {10 28} [color=green];
9 -> {10 28} [style=dashed];
8 -> {13} [style=dotted];
8 -> {9} [style=dashed];
9 -> {10};
10 -> {11};
11 -> {12};
12 -> {13};
13 -> {14};
12 -> {13} [color=green];
13 -> {14} [color=green];
13 -> {14} [style=dashed];
14 -> {15};
15 -> {16};
16 -> {17 18};
17 -> {25};
16 -> {17};
17 -> {18};
18 -> {19};
19 -> {20};
20 -> {21};
21 -> {22};
20 -> {21 22};
21 -> {29};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {28};
28 -> {29};
29 -> {30};
30 -> {31};