Commit 0c37d0e
committed
Address review: move char/empty comparison to TryConvertToNullOrEmptyCheck
Move the root cause fix (char vs empty string comparison) from
BinaryExpressionConverter into VisualBasicEqualityComparison.TryConvertToNull
OrEmptyCheck, which is the natural home for all null/empty comparison rewrites.
This also correctly handles OptionCompareText (char comparison is never
text-sensitive so it runs before the OptionCompareTextCaseInsensitive bail-out).
https://claude.ai/code/session_01AkwUvu3XuCdj3D4axoX4UX1 parent fd91263 commit 0c37d0e
File tree
2 files changed
+18
-16
lines changed- CodeConverter/CSharp
2 files changed
+18
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | 90 | | |
101 | 91 | | |
102 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | 183 | | |
190 | 184 | | |
191 | 185 | | |
192 | 186 | | |
193 | 187 | | |
194 | 188 | | |
195 | 189 | | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
196 | 208 | | |
197 | 209 | | |
198 | 210 | | |
| |||
0 commit comments