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
@@ -59,153 +59,158 @@ digraph nullability_kt {
14 [label="Enter class QImpl" style="filled" fillcolor=red];
subgraph cluster_8 {
color=blue
15 [label="Enter property" style="filled" fillcolor=red];
16 [label="Access variable R|<local>/data|"];
17 [label="Exit property" style="filled" fillcolor=red];
15 [label="Enter function <init>" style="filled" fillcolor=red];
16 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
17 [label="Exit function <init>" style="filled" fillcolor=red];
}
18 [label="Exit class QImpl" style="filled" fillcolor=red];
}
subgraph cluster_9 {
color=blue
19 [label="Enter function fdata" style="filled" fillcolor=red];
subgraph cluster_10 {
subgraph cluster_9 {
color=blue
20 [label="Enter block"];
21 [label="Const: Null(null)"];
22 [label="Jump: ^fdata Null(null)"];
23 [label="Stub" style="filled" fillcolor=gray];
24 [label="Exit block" style="filled" fillcolor=gray];
18 [label="Enter property" style="filled" fillcolor=red];
19 [label="Access variable R|<local>/data|"];
20 [label="Exit property" style="filled" fillcolor=red];
}
25 [label="Exit function fdata" style="filled" fillcolor=red];
21 [label="Exit class QImpl" style="filled" fillcolor=red];
}
subgraph cluster_11 {
subgraph cluster_10 {
color=blue
26 [label="Enter function <init>" style="filled" fillcolor=red];
27 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
28 [label="Exit function <init>" style="filled" fillcolor=red];
22 [label="Enter function fdata" style="filled" fillcolor=red];
subgraph cluster_11 {
color=blue
23 [label="Enter block"];
24 [label="Const: Null(null)"];
25 [label="Jump: ^fdata Null(null)"];
26 [label="Stub" style="filled" fillcolor=gray];
27 [label="Exit block" style="filled" fillcolor=gray];
}
28 [label="Exit function fdata" style="filled" fillcolor=red];
}
14 -> {15} [color=green];
14 -> {18} [style=dotted];
14 -> {15} [style=dashed];
14 -> {21} [style=dotted];
14 -> {15 18} [style=dashed];
15 -> {16};
16 -> {17};
17 -> {18} [color=green];
18 -> {19 26} [color=green];
18 -> {19 26} [style=dashed];
18 -> {19};
19 -> {20};
20 -> {21};
21 -> {22};
22 -> {25};
22 -> {23} [style=dotted];
23 -> {24} [style=dotted];
24 -> {25} [style=dotted];
26 -> {27};
27 -> {28};
20 -> {21} [color=green];
21 -> {22} [color=green];
21 -> {22} [style=dashed];
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {28};
25 -> {26} [style=dotted];
26 -> {27} [style=dotted];
27 -> {28} [style=dotted];
subgraph cluster_12 {
color=red
29 [label="Enter class QImplMutable" style="filled" fillcolor=red];
subgraph cluster_13 {
color=blue
30 [label="Enter property" style="filled" fillcolor=red];
31 [label="Access variable R|<local>/data|"];
32 [label="Exit property" style="filled" fillcolor=red];
30 [label="Enter function <init>" style="filled" fillcolor=red];
31 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
32 [label="Exit function <init>" style="filled" fillcolor=red];
}
33 [label="Exit class QImplMutable" style="filled" fillcolor=red];
}
subgraph cluster_14 {
color=blue
34 [label="Enter function fdata" style="filled" fillcolor=red];
subgraph cluster_15 {
subgraph cluster_14 {
color=blue
35 [label="Enter block"];
36 [label="Const: Null(null)"];
37 [label="Jump: ^fdata Null(null)"];
38 [label="Stub" style="filled" fillcolor=gray];
39 [label="Exit block" style="filled" fillcolor=gray];
33 [label="Enter property" style="filled" fillcolor=red];
34 [label="Access variable R|<local>/data|"];
35 [label="Exit property" style="filled" fillcolor=red];
}
40 [label="Exit function fdata" style="filled" fillcolor=red];
36 [label="Exit class QImplMutable" style="filled" fillcolor=red];
}
subgraph cluster_16 {
subgraph cluster_15 {
color=blue
41 [label="Enter function <init>" style="filled" fillcolor=red];
42 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
43 [label="Exit function <init>" style="filled" fillcolor=red];
37 [label="Enter function fdata" style="filled" fillcolor=red];
subgraph cluster_16 {
color=blue
38 [label="Enter block"];
39 [label="Const: Null(null)"];
40 [label="Jump: ^fdata Null(null)"];
41 [label="Stub" style="filled" fillcolor=gray];
42 [label="Exit block" style="filled" fillcolor=gray];
}
43 [label="Exit function fdata" style="filled" fillcolor=red];
}
29 -> {30} [color=green];
29 -> {33} [style=dotted];
29 -> {30} [style=dashed];
29 -> {36} [style=dotted];
29 -> {30 33} [style=dashed];
30 -> {31};
31 -> {32};
32 -> {33} [color=green];
33 -> {34 41} [color=green];
33 -> {34 41} [style=dashed];
33 -> {34};
34 -> {35};
35 -> {36};
36 -> {37};
37 -> {40};
37 -> {38} [style=dotted];
38 -> {39} [style=dotted];
39 -> {40} [style=dotted];
41 -> {42};
42 -> {43};
35 -> {36} [color=green];
36 -> {37} [color=green];
36 -> {37} [style=dashed];
37 -> {38};
38 -> {39};
39 -> {40};
40 -> {43};
40 -> {41} [style=dotted];
41 -> {42} [style=dotted];
42 -> {43} [style=dotted];
subgraph cluster_17 {
color=red
44 [label="Enter class QImplWithCustomGetter" style="filled" fillcolor=red];
45 [label="Exit class QImplWithCustomGetter" style="filled" fillcolor=red];
}
subgraph cluster_18 {
color=blue
46 [label="Enter function fdata" style="filled" fillcolor=red];
subgraph cluster_19 {
subgraph cluster_18 {
color=blue
47 [label="Enter block"];
48 [label="Const: Null(null)"];
49 [label="Jump: ^fdata Null(null)"];
50 [label="Stub" style="filled" fillcolor=gray];
51 [label="Exit block" style="filled" fillcolor=gray];
45 [label="Enter function <init>" style="filled" fillcolor=red];
46 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
47 [label="Exit function <init>" style="filled" fillcolor=red];
}
52 [label="Exit function fdata" style="filled" fillcolor=red];
48 [label="Exit class QImplWithCustomGetter" style="filled" fillcolor=red];
}
subgraph cluster_20 {
subgraph cluster_19 {
color=blue
53 [label="Enter function getter" style="filled" fillcolor=red];
subgraph cluster_21 {
49 [label="Enter function fdata" style="filled" fillcolor=red];
subgraph cluster_20 {
color=blue
54 [label="Enter block"];
55 [label="Const: Null(null)"];
56 [label="Jump: ^ Null(null)"];
57 [label="Stub" style="filled" fillcolor=gray];
58 [label="Exit block" style="filled" fillcolor=gray];
50 [label="Enter block"];
51 [label="Const: Null(null)"];
52 [label="Jump: ^fdata Null(null)"];
53 [label="Stub" style="filled" fillcolor=gray];
54 [label="Exit block" style="filled" fillcolor=gray];
}
59 [label="Exit function getter" style="filled" fillcolor=red];
55 [label="Exit function fdata" style="filled" fillcolor=red];
}
subgraph cluster_22 {
subgraph cluster_21 {
color=blue
60 [label="Enter function <init>" style="filled" fillcolor=red];
61 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
62 [label="Exit function <init>" style="filled" fillcolor=red];
56 [label="Enter function getter" style="filled" fillcolor=red];
subgraph cluster_22 {
color=blue
57 [label="Enter block"];
58 [label="Const: Null(null)"];
59 [label="Jump: ^ Null(null)"];
60 [label="Stub" style="filled" fillcolor=gray];
61 [label="Exit block" style="filled" fillcolor=gray];
}
62 [label="Exit function getter" style="filled" fillcolor=red];
}
44 -> {45} [color=green];
45 -> {46 53 60} [color=green];
45 -> {46 53 60} [style=dashed];
44 -> {48} [style=dotted];
44 -> {45} [style=dashed];
45 -> {46};
46 -> {47};
47 -> {48};
48 -> {49};
49 -> {52};
49 -> {50} [style=dotted];
50 -> {51} [style=dotted];
51 -> {52} [style=dotted];
53 -> {54};
54 -> {55};
55 -> {56};
56 -> {59};
56 -> {57} [style=dotted];
57 -> {58} [style=dotted];
58 -> {59} [style=dotted];
60 -> {61};
61 -> {62};
47 -> {48} [color=green];
48 -> {49 56} [color=green];
48 -> {49 56} [style=dashed];
49 -> {50};
50 -> {51};
51 -> {52};
52 -> {55};
52 -> {53} [style=dotted];
53 -> {54} [style=dotted];
54 -> {55} [style=dotted];
56 -> {57};
57 -> {58};
58 -> {59};
59 -> {62};
59 -> {60} [style=dotted];
60 -> {61} [style=dotted];
61 -> {62} [style=dotted];
subgraph cluster_23 {
color=red