You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CodeCs=$"// Pseudo code for debugging.{System.Environment.NewLine}// This is not the actual code executed, we execute IL directly!{System.Environment.NewLine}{CodeCs}";
106
107
@@ -116,16 +117,11 @@ else
116
117
117
118
CodeCs+=$"{System.Environment.NewLine}*/";
118
119
}
119
-
catch (Exceptionex)
120
-
{
121
-
CodeCs=$"/* Error during code generation: {System.Environment.NewLine}{ex}{System.Environment.NewLine}*/";
122
-
CodeMsil="";
123
-
}
124
120
}
125
-
catch (Exception)
121
+
catch (Exceptionex)
126
122
{
127
-
Creator=null;
128
-
return;
123
+
CodeCs=$"/* Error during code generation: {System.Environment.NewLine}{ex}{System.Environment.NewLine}*/";
// We reached a merging point. We need to validate if this merging point was already validated by the last chunk. It is possible that we are in a junction like so :
116
+
// if(...)
117
+
// {
118
+
// if(...)
119
+
// {
120
+
// ...
121
+
// }
122
+
// else
123
+
// {
124
+
// ...
125
+
// }
126
+
// }
127
+
// else
128
+
// {
129
+
// ...
130
+
// }
131
+
// ... <- we are here
132
+
// If we are indeed in this scenario, everything from the first "if" should be in the "chunks"
133
+
// We can check any merge point of the last chunk. They should all either be the same of null
// Both the try and finally merge to the same "return", as there is nothing to actually put in the "finally" we can reuse the same return for simplicity
0 commit comments