Commit dcedef0
fix(affine): migrate record literals to #{ } (affinescript#218) (#38)
Part of the affinescript#218 estate codemod sweep coverage closure (this
repo had no sweep PR; caught by the coverage scan).
AffineScript #218 makes bare `{` always a block; record/struct literals
now require `#{ }`. Migrated the **4 expression-position record
literals** (hand-verified per-site — the regex codemod is
known-unsound):
- `tools/monitoring-api/src/Server.affine` — `respond_error` nested `#{
error: #{ … } }`
- `tools/stale/packages/scanner/src/Scanner.affine` — `Scanner #{
axe_source: src }`
- `tools/stale/packages/core/src/Arangodb.affine` — `open_database(#{ …
})` + `make_service(#{ … })`
All `pub type … = { }` declarations, `List[{…}]` type positions and
`match`-arm blocks are type/block position → intentionally unchanged.
Repo CI (affinescript build) is the oracle; if it surfaces a missed site
this PR iterates.
Refs hyperpolymath/affinescript#218
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent c68fe6f commit dcedef0
3 files changed
Lines changed: 4 additions & 4 deletions
File tree
- tools
- monitoring-api/src
- stale/packages
- core/src
- scanner/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
| 233 | + | |
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
0 commit comments