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
@@ -20,84 +20,85 @@ digraph inAnonymousObject_kt {
5 [label="Enter class <anonymous object>" style="filled" fillcolor=red];
subgraph cluster_4 {
color=blue
6 [label="Enter property" style="filled" fillcolor=red];
7 [label="Access variable R|<local>/a|"];
8 [label="Exit property" style="filled" fillcolor=red];
6 [label="Enter function <init>" style="filled" fillcolor=red];
7 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
8 [label="Exit function <init>" style="filled" fillcolor=red];
}
subgraph cluster_5 {
color=blue
9 [label="Enter init block" style="filled" fillcolor=red];
subgraph cluster_6 {
color=blue
10 [label="Enter block"];
11 [label="Access variable R|<local>/b|"];
12 [label="Assignment: R|/<anonymous>.leaked|"];
13 [label="Exit block"];
}
14 [label="Exit init block" style="filled" fillcolor=red];
9 [label="Enter property" style="filled" fillcolor=red];
10 [label="Access variable R|<local>/a|"];
11 [label="Exit property" style="filled" fillcolor=red];
}
15 [label="Exit class <anonymous object>" style="filled" fillcolor=red];
subgraph cluster_6 {
color=blue
12 [label="Enter init block" style="filled" fillcolor=red];
subgraph cluster_7 {
color=blue
13 [label="Enter block"];
14 [label="Access variable R|<local>/b|"];
15 [label="Assignment: R|/<anonymous>.leaked|"];
16 [label="Exit block"];
}
17 [label="Exit init block" style="filled" fillcolor=red];
}
18 [label="Exit class <anonymous object>" style="filled" fillcolor=red];
}
16 [label="Exit anonymous object"];
17 [label="Exit anonymous object expression"];
18 [label="Variable declaration: lval obj: R|<anonymous>|"];
19 [label="Access variable R|<local>/obj|"];
20 [label="Function call: R|<local>/obj|.R|/<anonymous>.run|()" style="filled" fillcolor=yellow];
21 [label="Function call: R|<local>/d|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
22 [label="Exit block"];
19 [label="Exit anonymous object"];
20 [label="Exit anonymous object expression"];
21 [label="Variable declaration: lval obj: R|<anonymous>|"];
22 [label="Access variable R|<local>/obj|"];
23 [label="Function call: R|<local>/obj|.R|/<anonymous>.run|()" style="filled" fillcolor=yellow];
24 [label="Function call: R|<local>/d|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
25 [label="Exit block"];
}
23 [label="Exit function foo" style="filled" fillcolor=red];
26 [label="Exit function foo" style="filled" fillcolor=red];
}
subgraph cluster_7 {
subgraph cluster_8 {
color=blue
24 [label="Enter function run" style="filled" fillcolor=red];
subgraph cluster_8 {
27 [label="Enter function run" style="filled" fillcolor=red];
subgraph cluster_9 {
color=blue
25 [label="Enter block"];
26 [label="Function call: R|<local>/c|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
27 [label="Exit block"];
28 [label="Enter block"];
29 [label="Function call: R|<local>/c|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
30 [label="Exit block"];
}
28 [label="Exit function run" style="filled" fillcolor=red];
}
subgraph cluster_9 {
color=blue
29 [label="Enter function <init>" style="filled" fillcolor=red];
30 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
31 [label="Exit function <init>" style="filled" fillcolor=red];
31 [label="Exit function run" style="filled" fillcolor=red];
}
0 -> {1};
1 -> {2};
2 -> {3};
3 -> {4};
4 -> {5};
4 -> {16} [color=red];
4 -> {19} [color=red];
4 -> {5} [style=dashed];
5 -> {6};
5 -> {9 24 29} [color=red];
5 -> {15} [style=dotted];
5 -> {6 9} [style=dashed];
5 -> {9 12 27} [color=red];
5 -> {18} [style=dotted];
5 -> {6 9 12} [style=dashed];
6 -> {7};
7 -> {8};
8 -> {9} [color=green];
9 -> {10};
10 -> {11};
11 -> {12};
11 -> {12} [color=green];
12 -> {13};
13 -> {14};
14 -> {15} [color=green];
15 -> {16 24 29} [color=green];
15 -> {24 29} [style=dashed];
14 -> {15};
15 -> {16};
16 -> {17};
17 -> {18};
18 -> {19};
17 -> {18} [color=green];
18 -> {19 27} [color=green];
18 -> {27} [style=dashed];
19 -> {20};
20 -> {21};
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {28};
28 -> {29};
29 -> {30};
30 -> {31};