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
184 lines
7.3 KiB
Plaintext
Vendored
184 lines
7.3 KiB
Plaintext
Vendored
digraph delegatedConstructorArguments_kt {
|
|
graph [nodesep=3]
|
|
node [shape=box penwidth=2]
|
|
edge [penwidth=2]
|
|
|
|
subgraph cluster_0 {
|
|
color=red
|
|
0 [label="Enter file delegatedConstructorArguments.kt" style="filled" fillcolor=red];
|
|
1 [label="Exit file delegatedConstructorArguments.kt" style="filled" fillcolor=red];
|
|
}
|
|
0 -> {1} [color=green];
|
|
|
|
subgraph cluster_1 {
|
|
color=red
|
|
2 [label="Enter class Test" style="filled" fillcolor=red];
|
|
subgraph cluster_2 {
|
|
color=blue
|
|
3 [label="Enter function <init>" style="filled" fillcolor=red];
|
|
4 [label="Access variable R|<local>/set|"];
|
|
5 [label="Postponed enter to lambda"];
|
|
subgraph cluster_3 {
|
|
color=blue
|
|
6 [label="Enter function <anonymous>" style="filled" fillcolor=red];
|
|
subgraph cluster_4 {
|
|
color=blue
|
|
7 [label="Enter block"];
|
|
8 [label="Access variable R|<local>/it|"];
|
|
9 [label="Exit block"];
|
|
}
|
|
10 [label="Exit function <anonymous>" style="filled" fillcolor=red];
|
|
}
|
|
11 [label="Postponed exit from lambda"];
|
|
12 [label="Function call: R|<local>/set|.R|kotlin/collections/map|<R|kotlin/String|, R|kotlin/String|>(...)" style="filled" fillcolor=yellow];
|
|
13 [label="Delegated constructor call: this<R|Test|>(...)" style="filled" fillcolor=yellow];
|
|
subgraph cluster_5 {
|
|
color=blue
|
|
14 [label="Enter function <init>" style="filled" fillcolor=red];
|
|
15 [label="Access variable R|<local>/map|"];
|
|
16 [label="Access variable R|SubstitutionOverride<kotlin/collections/Map.values: R|kotlin/collections/Collection<kotlin/String>|>|"];
|
|
17 [label="Postponed enter to lambda"];
|
|
subgraph cluster_6 {
|
|
color=blue
|
|
18 [label="Enter function <anonymous>" style="filled" fillcolor=red];
|
|
subgraph cluster_7 {
|
|
color=blue
|
|
19 [label="Enter block"];
|
|
20 [label="Access variable R|<local>/it|"];
|
|
21 [label="Exit block"];
|
|
}
|
|
22 [label="Exit function <anonymous>" style="filled" fillcolor=red];
|
|
}
|
|
23 [label="Postponed exit from lambda"];
|
|
24 [label="Function call: R|<local>/map|.R|SubstitutionOverride<kotlin/collections/Map.values: R|kotlin/collections/Collection<kotlin/String>|>|.R|kotlin/collections/map|<R|kotlin/String|, R|kotlin/String|>(...)" style="filled" fillcolor=yellow];
|
|
25 [label="Delegated constructor call: this<R|Test|>(...)" style="filled" fillcolor=yellow];
|
|
subgraph cluster_8 {
|
|
color=blue
|
|
26 [label="Enter init block" style="filled" fillcolor=red];
|
|
subgraph cluster_9 {
|
|
color=blue
|
|
27 [label="Enter block"];
|
|
28 [label="Access variable this@R|/Test|"];
|
|
29 [label="Const: Int(0)"];
|
|
30 [label="Assignment: R|/Test.size|"];
|
|
31 [label="Exit block"];
|
|
}
|
|
32 [label="Exit init block" style="filled" fillcolor=red];
|
|
}
|
|
subgraph cluster_10 {
|
|
color=blue
|
|
33 [label="Enter function <init>" style="filled" fillcolor=red];
|
|
34 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
|
|
subgraph cluster_11 {
|
|
color=blue
|
|
35 [label="Enter block"];
|
|
36 [label="Access variable this@R|/Test|"];
|
|
37 [label="Access variable R|<local>/list|"];
|
|
38 [label="Assignment: R|/Test.values|"];
|
|
39 [label="Exit block"];
|
|
}
|
|
40 [label="Exit function <init>" style="filled" fillcolor=red];
|
|
}
|
|
subgraph cluster_12 {
|
|
color=blue
|
|
41 [label="Enter block"];
|
|
42 [label="Access variable this@R|/Test|"];
|
|
43 [label="Access variable R|/Test.size|"];
|
|
44 [label="Access variable this@R|/Test|"];
|
|
45 [label="Access variable R|/Test.values|"];
|
|
46 [label="Access variable R|SubstitutionOverride<kotlin/collections/List.size: R|kotlin/Int|>|"];
|
|
47 [label="Function call: this@R|/Test|.R|/Test.size|.R|kotlin/Int.plus|(...)" style="filled" fillcolor=yellow];
|
|
48 [label="Assignment: R|/Test.size|"];
|
|
49 [label="Exit block"];
|
|
}
|
|
50 [label="Exit function <init>" style="filled" fillcolor=red];
|
|
}
|
|
subgraph cluster_13 {
|
|
color=blue
|
|
51 [label="Enter block"];
|
|
52 [label="Access variable this@R|/Test|"];
|
|
53 [label="Access variable R|/Test.size|"];
|
|
54 [label="Access variable this@R|/Test|"];
|
|
55 [label="Access variable R|/Test.values|"];
|
|
56 [label="Access variable R|SubstitutionOverride<kotlin/collections/List.size: R|kotlin/Int|>|"];
|
|
57 [label="Function call: this@R|/Test|.R|/Test.size|.R|kotlin/Int.plus|(...)" style="filled" fillcolor=yellow];
|
|
58 [label="Assignment: R|/Test.size|"];
|
|
59 [label="Exit block"];
|
|
}
|
|
60 [label="Exit function <init>" style="filled" fillcolor=red];
|
|
}
|
|
61 [label="Exit class Test" style="filled" fillcolor=red];
|
|
}
|
|
2 -> {3 14 26} [color=green];
|
|
2 -> {61} [style=dotted];
|
|
2 -> {3 14 26 33} [style=dashed];
|
|
3 -> {4};
|
|
4 -> {5};
|
|
5 -> {6 11 12};
|
|
5 -> {6} [style=dashed];
|
|
6 -> {7};
|
|
7 -> {8};
|
|
8 -> {9};
|
|
9 -> {10};
|
|
10 -> {11};
|
|
11 -> {5} [color=green style=dashed];
|
|
11 -> {12} [color=green];
|
|
11 -> {13} [color=red];
|
|
12 -> {13};
|
|
13 -> {26} [color=green label="return@/Test.Test"];
|
|
13 -> {41} [color=red];
|
|
14 -> {15};
|
|
15 -> {16};
|
|
16 -> {17};
|
|
17 -> {18 23 24};
|
|
17 -> {18} [style=dashed];
|
|
18 -> {19};
|
|
19 -> {20};
|
|
20 -> {21};
|
|
21 -> {22};
|
|
22 -> {23};
|
|
23 -> {17} [color=green style=dashed];
|
|
23 -> {24} [color=green];
|
|
23 -> {25} [color=red];
|
|
24 -> {25};
|
|
25 -> {26} [color=green label="return@/Test.Test"];
|
|
25 -> {51} [color=red];
|
|
26 -> {27};
|
|
27 -> {28};
|
|
28 -> {29};
|
|
29 -> {30};
|
|
30 -> {31};
|
|
31 -> {32};
|
|
32 -> {33} [color=green];
|
|
33 -> {34};
|
|
34 -> {35};
|
|
35 -> {36};
|
|
36 -> {37};
|
|
37 -> {38};
|
|
38 -> {39};
|
|
39 -> {40};
|
|
40 -> {41 51} [color=green label="return@/Test.Test"];
|
|
40 -> {61} [color=green];
|
|
41 -> {42};
|
|
42 -> {43};
|
|
43 -> {44};
|
|
44 -> {45};
|
|
45 -> {46};
|
|
46 -> {47};
|
|
47 -> {48};
|
|
48 -> {49};
|
|
49 -> {50};
|
|
50 -> {61} [color=green];
|
|
51 -> {52};
|
|
52 -> {53};
|
|
53 -> {54};
|
|
54 -> {55};
|
|
55 -> {56};
|
|
56 -> {57};
|
|
57 -> {58};
|
|
58 -> {59};
|
|
59 -> {60};
|
|
60 -> {61} [color=green];
|
|
|
|
}
|