Commit 58f0dda
committed
Remove
This avoids the awkward situation where `WhileDo` needs to be
tested before `While` for it to meaningful, or suffering some more
performance hit by rejecting `do-while`-like stuff in the `While`
deconstructor.
It will probably also simplify most usage patterns of the
tasty-reflect API, since users will only have to worry about one
kind of loop.
The decompiler takes it upon itself to deconstruct `While` loops
that look like the product of `do..while` to print a nice
decompilation output.DoWhile from tasty-reflect.1 parent d67ed18 commit 58f0dda
File tree
3 files changed
+10
-22
lines changed- compiler/src/dotty/tools/dotc/tastyreflect
- library/src/scala/tasty
- reflect
- util
3 files changed
+10
-22
lines changedLines changed: 0 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
378 | 378 | | |
379 | 379 | | |
380 | 380 | | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | 381 | | |
390 | 382 | | |
391 | 383 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | 301 | | |
308 | 302 | | |
309 | 303 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | 230 | | |
236 | | - | |
237 | | - | |
238 | | - | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
239 | 241 | | |
240 | 242 | | |
241 | 243 | | |
| |||
0 commit comments