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
64 lines
2.2 KiB
Plaintext
Vendored
64 lines
2.2 KiB
Plaintext
Vendored
digraph classCallInLambda_kt {
|
|
graph [nodesep=3]
|
|
node [shape=box penwidth=2]
|
|
edge [penwidth=2]
|
|
|
|
subgraph cluster_0 {
|
|
color=red
|
|
0 [label="Enter file classCallInLambda.kt" style="filled" fillcolor=red];
|
|
1 [label="Exit file classCallInLambda.kt" style="filled" fillcolor=red];
|
|
}
|
|
0 -> {1} [color=green];
|
|
|
|
subgraph cluster_1 {
|
|
color=red
|
|
2 [label="Enter function test" style="filled" fillcolor=red];
|
|
subgraph cluster_2 {
|
|
color=blue
|
|
3 [label="Enter block"];
|
|
4 [label="Access variable R|<local>/x|"];
|
|
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="::class call"];
|
|
10 [label="Exit block"];
|
|
}
|
|
11 [label="Exit function <anonymous>" style="filled" fillcolor=red];
|
|
}
|
|
12 [label="Postponed exit from lambda"];
|
|
13 [label="Function call: R|<local>/x|.R|kotlin/let|<R|kotlin/String|, R|kotlin/reflect/KClass<out kotlin/String>|>(...)" style="filled" fillcolor=yellow];
|
|
14 [label="Jump: ^test R|<local>/x|.R|kotlin/let|<R|kotlin/String|, R|kotlin/reflect/KClass<out kotlin/String>|>(<L> = let@fun <anonymous>(it: R|kotlin/String|): R|kotlin/reflect/KClass<out kotlin/String>| <inline=Inline, kind=EXACTLY_ONCE> {
|
|
^ <getClass>(R|<local>/it|)
|
|
}
|
|
)"];
|
|
15 [label="Stub" style="filled" fillcolor=gray];
|
|
16 [label="Exit block" style="filled" fillcolor=gray];
|
|
}
|
|
17 [label="Exit function test" style="filled" fillcolor=red];
|
|
}
|
|
2 -> {3};
|
|
3 -> {4};
|
|
4 -> {5};
|
|
5 -> {6 13};
|
|
5 -> {12} [style=dotted];
|
|
5 -> {6} [style=dashed];
|
|
6 -> {7};
|
|
7 -> {8};
|
|
8 -> {9};
|
|
9 -> {10};
|
|
10 -> {11};
|
|
11 -> {12};
|
|
12 -> {13};
|
|
13 -> {14};
|
|
14 -> {17};
|
|
14 -> {15} [style=dotted];
|
|
15 -> {16} [style=dotted];
|
|
16 -> {17} [style=dotted];
|
|
|
|
}
|