Commit 0553047
Automated Resyntax fixes (#696)
* Automated Resyntax fixes
This is an automated change generated by Resyntax.
#### Pass 1
Applied 1 fix to [`drracket/drracket/private/in-irl-namespace.rkt`](../blob/HEAD/drracket/drracket/private/in-irl-namespace.rkt)
* Line 256, `tidy-require`: Keep imports in `require` sorted and grouped by phase, with collections before files.
Applied 12 fixes to [`drracket/drracket/private/tools.rkt`](../blob/HEAD/drracket/drracket/private/tools.rkt)
* Line 3, `tidy-require`: Keep imports in `require` sorted and grouped by phase, with collections before files.
* Line 112, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting.
* Line 169, `define-let-to-double-define`: This `let` expression can be pulled up into a `define` expression.
* Line 192, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting.
* Line 239, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting.
* Line 386, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting.
* Line 434, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting.
* Line 532, `for-each-to-for`: This `for-each` operation can be replaced with a `for` loop.
* Line 542, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting.
* Line 552, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting.
* Line 577, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting.
* Line 592, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting.
Applied 1 fix to [`drracket/drracket/private/module-browser.rkt`](../blob/HEAD/drracket/drracket/private/module-browser.rkt)
* Line 3, `tidy-require`: Keep imports in `require` sorted and grouped by phase, with collections before files.
#### Pass 2
Applied 2 fixes to [`drracket/drracket/private/tools.rkt`](../blob/HEAD/drracket/drracket/private/tools.rkt)
* Line 131, `cond-let-to-cond-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting.
* Line 445, `map-to-for`: This `map` operation can be replaced with a `for/list` loop.
## Summary
Fixed 16 issues in 3 files.
* Fixed 9 occurrences of `let-to-define`
* Fixed 3 occurrences of `tidy-require`
* Fixed 1 occurrence of `define-let-to-double-define`
* Fixed 1 occurrence of `for-each-to-for`
* Fixed 1 occurrence of `cond-let-to-cond-define`
* Fixed 1 occurrence of `map-to-for`
## Follow-up manual fixes
* remove unused bitmap-dc
---------
Co-authored-by: resyntax-ci[bot] <181813515+resyntax-ci[bot]@users.noreply.github.com>
Co-authored-by: Robby Findler <robby@racket-lang.org>1 parent d66cc1e commit 0553047
File tree
3 files changed
+156
-170
lines changed- drracket/drracket/private
3 files changed
+156
-170
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
| 256 | + | |
| 257 | + | |
257 | 258 | | |
258 | 259 | | |
259 | 260 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
8 | 6 | | |
9 | | - | |
10 | 7 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
15 | 12 | | |
16 | | - | |
17 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
0 commit comments