Commit 29714cd
committed
refactor(mocking): address the relevant code-quality review comments
Applied: combined the nested if in ViewModelGenTool_3.Mocking, projected
ctor.DeclaringSyntaxReferences, SimpleNameSyntax and the accesses with Select, and
filtered the nested types and the references explicitly in FeedsMockGenerator.
Declined, each answered in its thread: the readonly suggestion on Disposable._onDispose
is a false positive (the field is a ref argument of Interlocked.Exchange), the == false
simplification targets a bool? whose three-state semantics are intentional, and the Where
suggestion filters a computed value.1 parent ba05821 commit 29714cd
2 files changed
Lines changed: 22 additions & 24 deletions
File tree
- src
- Uno.Extensions.Reactive.Generator/Bindables
- Uno.HotTesting.Reactive.Generator
Lines changed: 18 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
167 | 167 | | |
168 | | - | |
169 | 168 | | |
170 | 169 | | |
171 | 170 | | |
| |||
225 | 224 | | |
226 | 225 | | |
227 | 226 | | |
228 | | - | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
229 | 231 | | |
230 | | - | |
231 | 232 | | |
232 | 233 | | |
233 | 234 | | |
| |||
265 | 266 | | |
266 | 267 | | |
267 | 268 | | |
268 | | - | |
| 269 | + | |
| 270 | + | |
269 | 271 | | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
| 272 | + | |
274 | 273 | | |
275 | 274 | | |
276 | 275 | | |
| |||
354 | 353 | | |
355 | 354 | | |
356 | 355 | | |
357 | | - | |
| 356 | + | |
358 | 357 | | |
359 | | - | |
360 | 358 | | |
361 | 359 | | |
362 | 360 | | |
| |||
374 | 372 | | |
375 | 373 | | |
376 | 374 | | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
381 | 379 | | |
382 | 380 | | |
383 | 381 | | |
384 | | - | |
385 | | - | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
386 | 387 | | |
387 | 388 | | |
388 | 389 | | |
| |||
Lines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
| 75 | + | |
79 | 76 | | |
80 | 77 | | |
81 | 78 | | |
| |||
0 commit comments