FIR CFA: put primary constructor before other class members
This commit is contained in:
+49
-51
@@ -8,82 +8,80 @@ digraph initBlock_kt {
|
||||
0 [label="Enter class Foo" style="filled" fillcolor=red];
|
||||
subgraph cluster_1 {
|
||||
color=blue
|
||||
1 [label="Enter init block" style="filled" fillcolor=red];
|
||||
subgraph cluster_2 {
|
||||
color=blue
|
||||
2 [label="Enter block"];
|
||||
3 [label="Const: Int(1)"];
|
||||
4 [label="Variable declaration: lval x: R|kotlin/Int|"];
|
||||
5 [label="Exit block"];
|
||||
}
|
||||
6 [label="Exit init block" 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];
|
||||
}
|
||||
7 [label="Exit class Foo" style="filled" fillcolor=red];
|
||||
}
|
||||
subgraph cluster_3 {
|
||||
color=blue
|
||||
8 [label="Enter function <init>" style="filled" fillcolor=red];
|
||||
9 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
|
||||
10 [label="Exit function <init>" style="filled" fillcolor=red];
|
||||
subgraph cluster_2 {
|
||||
color=blue
|
||||
4 [label="Enter init block" style="filled" fillcolor=red];
|
||||
subgraph cluster_3 {
|
||||
color=blue
|
||||
5 [label="Enter block"];
|
||||
6 [label="Const: Int(1)"];
|
||||
7 [label="Variable declaration: lval x: R|kotlin/Int|"];
|
||||
8 [label="Exit block"];
|
||||
}
|
||||
9 [label="Exit init block" style="filled" fillcolor=red];
|
||||
}
|
||||
10 [label="Exit class Foo" style="filled" fillcolor=red];
|
||||
}
|
||||
0 -> {1} [color=green];
|
||||
0 -> {7} [style=dotted];
|
||||
0 -> {1} [style=dashed];
|
||||
0 -> {10} [style=dotted];
|
||||
0 -> {1 4} [style=dashed];
|
||||
1 -> {2};
|
||||
2 -> {3};
|
||||
3 -> {4};
|
||||
3 -> {4} [color=green];
|
||||
4 -> {5};
|
||||
5 -> {6};
|
||||
6 -> {7} [color=green];
|
||||
7 -> {8} [color=green];
|
||||
7 -> {8} [style=dashed];
|
||||
6 -> {7};
|
||||
7 -> {8};
|
||||
8 -> {9};
|
||||
9 -> {10};
|
||||
9 -> {10} [color=green];
|
||||
|
||||
subgraph cluster_4 {
|
||||
color=red
|
||||
11 [label="Enter class Bar" style="filled" fillcolor=red];
|
||||
subgraph cluster_5 {
|
||||
color=blue
|
||||
12 [label="Enter init block" style="filled" fillcolor=red];
|
||||
subgraph cluster_6 {
|
||||
color=blue
|
||||
13 [label="Enter block"];
|
||||
14 [label="Const: Int(1)"];
|
||||
15 [label="Variable declaration: lval x: R|kotlin/Int|"];
|
||||
16 [label="Function call: R|java/lang/Exception.Exception|()" style="filled" fillcolor=yellow];
|
||||
17 [label="Throw: throw R|java/lang/Exception.Exception|()"];
|
||||
18 [label="Stub" style="filled" fillcolor=gray];
|
||||
19 [label="Const: Int(2)" style="filled" fillcolor=gray];
|
||||
20 [label="Variable declaration: lval y: R|kotlin/Int|" style="filled" fillcolor=gray];
|
||||
21 [label="Exit block" style="filled" fillcolor=gray];
|
||||
}
|
||||
22 [label="Exit init block" style="filled" fillcolor=gray];
|
||||
12 [label="Enter function <init>" style="filled" fillcolor=red];
|
||||
13 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
|
||||
14 [label="Exit function <init>" style="filled" fillcolor=red];
|
||||
}
|
||||
23 [label="Exit class Bar" style="filled" fillcolor=gray];
|
||||
}
|
||||
subgraph cluster_7 {
|
||||
color=blue
|
||||
24 [label="Enter function <init>" style="filled" fillcolor=gray];
|
||||
25 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=gray];
|
||||
26 [label="Exit function <init>" style="filled" fillcolor=gray];
|
||||
subgraph cluster_6 {
|
||||
color=blue
|
||||
15 [label="Enter init block" style="filled" fillcolor=red];
|
||||
subgraph cluster_7 {
|
||||
color=blue
|
||||
16 [label="Enter block"];
|
||||
17 [label="Const: Int(1)"];
|
||||
18 [label="Variable declaration: lval x: R|kotlin/Int|"];
|
||||
19 [label="Function call: R|java/lang/Exception.Exception|()" style="filled" fillcolor=yellow];
|
||||
20 [label="Throw: throw R|java/lang/Exception.Exception|()"];
|
||||
21 [label="Stub" style="filled" fillcolor=gray];
|
||||
22 [label="Const: Int(2)" style="filled" fillcolor=gray];
|
||||
23 [label="Variable declaration: lval y: R|kotlin/Int|" style="filled" fillcolor=gray];
|
||||
24 [label="Exit block" style="filled" fillcolor=gray];
|
||||
}
|
||||
25 [label="Exit init block" style="filled" fillcolor=gray];
|
||||
}
|
||||
26 [label="Exit class Bar" style="filled" fillcolor=gray];
|
||||
}
|
||||
11 -> {12} [color=green];
|
||||
11 -> {23} [style=dotted];
|
||||
11 -> {12} [style=dashed];
|
||||
11 -> {26} [style=dotted];
|
||||
11 -> {12 15} [style=dashed];
|
||||
12 -> {13};
|
||||
13 -> {14};
|
||||
14 -> {15};
|
||||
14 -> {15} [color=green];
|
||||
15 -> {16};
|
||||
16 -> {17};
|
||||
17 -> {18} [style=dotted];
|
||||
18 -> {19} [style=dotted];
|
||||
19 -> {20} [style=dotted];
|
||||
17 -> {18};
|
||||
18 -> {19};
|
||||
19 -> {20};
|
||||
20 -> {21} [style=dotted];
|
||||
21 -> {22} [style=dotted];
|
||||
22 -> {23} [style=dotted];
|
||||
23 -> {24} [style=dotted];
|
||||
23 -> {24} [style=dashed];
|
||||
24 -> {25} [style=dotted];
|
||||
25 -> {26} [style=dotted];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user