b55fda0c55
In order to properly analyze top-level property initialization, a control-flow graph must be created for FirFiles. This change adds the foundation for the file CFG and updates body resolve to create the CFG. Checking the CFG for proper initialization is separated into a following change to ease code review. KT-56683
83 lines
2.8 KiB
Plaintext
Vendored
83 lines
2.8 KiB
Plaintext
Vendored
digraph innerClassInAnonymousObject_kt {
|
|
graph [nodesep=3]
|
|
node [shape=box penwidth=2]
|
|
edge [penwidth=2]
|
|
|
|
subgraph cluster_0 {
|
|
color=red
|
|
0 [label="Enter file innerClassInAnonymousObject.kt" style="filled" fillcolor=red];
|
|
subgraph cluster_1 {
|
|
color=blue
|
|
1 [label="Enter property" style="filled" fillcolor=red];
|
|
2 [label="Enter anonymous object"];
|
|
subgraph cluster_2 {
|
|
color=blue
|
|
3 [label="Enter class <anonymous object>" style="filled" fillcolor=red];
|
|
subgraph cluster_3 {
|
|
color=blue
|
|
4 [label="Enter function <init>" style="filled" fillcolor=red];
|
|
5 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
|
|
6 [label="Exit function <init>" style="filled" fillcolor=red];
|
|
}
|
|
7 [label="Exit class <anonymous object>" style="filled" fillcolor=red];
|
|
}
|
|
8 [label="Exit anonymous object expression"];
|
|
9 [label="Exit property" style="filled" fillcolor=red];
|
|
}
|
|
10 [label="Exit file innerClassInAnonymousObject.kt" style="filled" fillcolor=red];
|
|
}
|
|
subgraph cluster_4 {
|
|
color=blue
|
|
11 [label="Enter class Nested" style="filled" fillcolor=red];
|
|
subgraph cluster_5 {
|
|
color=blue
|
|
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];
|
|
}
|
|
15 [label="Exit class Nested" style="filled" fillcolor=red];
|
|
}
|
|
subgraph cluster_6 {
|
|
color=blue
|
|
16 [label="Enter function foo" style="filled" fillcolor=red];
|
|
subgraph cluster_7 {
|
|
color=blue
|
|
17 [label="Enter block"];
|
|
18 [label="Exit block"];
|
|
}
|
|
19 [label="Exit function foo" style="filled" fillcolor=red];
|
|
}
|
|
0 -> {1} [color=green];
|
|
0 -> {10} [style=dotted];
|
|
0 -> {1} [style=dashed];
|
|
1 -> {2};
|
|
2 -> {3};
|
|
2 -> {8} [style=dotted];
|
|
2 -> {3} [style=dashed];
|
|
3 -> {4};
|
|
3 -> {11} [color=red];
|
|
3 -> {7} [style=dotted];
|
|
3 -> {4} [style=dashed];
|
|
4 -> {5};
|
|
5 -> {6};
|
|
6 -> {7};
|
|
7 -> {8};
|
|
7 -> {11} [color=green];
|
|
7 -> {11} [style=dashed];
|
|
8 -> {9};
|
|
9 -> {10} [color=green];
|
|
11 -> {12};
|
|
11 -> {16} [color=red];
|
|
11 -> {15} [style=dotted];
|
|
11 -> {12} [style=dashed];
|
|
12 -> {13};
|
|
13 -> {14};
|
|
14 -> {15} [color=green];
|
|
15 -> {16} [color=green];
|
|
15 -> {16} [style=dashed];
|
|
16 -> {17};
|
|
17 -> {18};
|
|
18 -> {19};
|
|
|
|
}
|