FIR. Refactor smart-cast representation in FIR tree
Make smart-casts non-transparent expression without delegation to underlying FirQualifiedAccessExpression, as children delegation in fir tree has unclear semantics Remove two different kinds of tree nodes for smart-casts
This commit is contained in:
committed by
teamcity
parent
bc9db58b3c
commit
513af2dfbc
+21
-17
@@ -169,26 +169,28 @@ digraph when_kt {
|
||||
60 [label="Exit left part of &&"];
|
||||
61 [label="Enter right part of &&"];
|
||||
62 [label="Access variable R|<local>/x|"];
|
||||
63 [label="Type operator: (R|<local>/x| is R|B|)"];
|
||||
64 [label="Exit &&"];
|
||||
63 [label="Smart cast: R|<local>/x|"];
|
||||
64 [label="Type operator: (R|<local>/x| is R|B|)"];
|
||||
65 [label="Exit &&"];
|
||||
}
|
||||
65 [label="Exit when branch condition"];
|
||||
66 [label="Exit when branch condition"];
|
||||
}
|
||||
66 [label="Synthetic else branch"];
|
||||
67 [label="Enter when branch result"];
|
||||
67 [label="Synthetic else branch"];
|
||||
68 [label="Enter when branch result"];
|
||||
subgraph cluster_18 {
|
||||
color=blue
|
||||
68 [label="Enter block"];
|
||||
69 [label="Access variable R|<local>/x|"];
|
||||
70 [label="Type operator: (R|<local>/x| is R|A|)"];
|
||||
71 [label="Exit block"];
|
||||
69 [label="Enter block"];
|
||||
70 [label="Access variable R|<local>/x|"];
|
||||
71 [label="Smart cast: R|<local>/x|"];
|
||||
72 [label="Type operator: (R|<local>/x| is R|A|)"];
|
||||
73 [label="Exit block"];
|
||||
}
|
||||
72 [label="Exit when branch result"];
|
||||
73 [label="Exit when"];
|
||||
74 [label="Exit when branch result"];
|
||||
75 [label="Exit when"];
|
||||
}
|
||||
74 [label="Exit block"];
|
||||
76 [label="Exit block"];
|
||||
}
|
||||
75 [label="Exit function test_2" style="filled" fillcolor=red];
|
||||
77 [label="Exit function test_2" style="filled" fillcolor=red];
|
||||
}
|
||||
53 -> {54};
|
||||
54 -> {55};
|
||||
@@ -197,14 +199,14 @@ digraph when_kt {
|
||||
57 -> {58};
|
||||
58 -> {59};
|
||||
59 -> {60};
|
||||
60 -> {64 61};
|
||||
60 -> {65 61};
|
||||
61 -> {62};
|
||||
62 -> {63};
|
||||
63 -> {64};
|
||||
64 -> {65};
|
||||
65 -> {67 66};
|
||||
66 -> {73};
|
||||
67 -> {68};
|
||||
65 -> {66};
|
||||
66 -> {68 67};
|
||||
67 -> {75};
|
||||
68 -> {69};
|
||||
69 -> {70};
|
||||
70 -> {71};
|
||||
@@ -212,5 +214,7 @@ digraph when_kt {
|
||||
72 -> {73};
|
||||
73 -> {74};
|
||||
74 -> {75};
|
||||
75 -> {76};
|
||||
76 -> {77};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user