refactor: use Idx<T> instead of macro in arena#266
refactor: use Idx<T> instead of macro in arena#266baszalmstra merged 1 commit intomun-lang:masterfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## master #266 +/- ##
==========================================
+ Coverage 78.75% 79.08% +0.33%
==========================================
Files 215 214 -1
Lines 12857 12803 -54
==========================================
Hits 10125 10125
+ Misses 2732 2678 -54
Continue to review full report at Codecov.
|
|
My only concern is the reduced codecov, otherwise it looks good. It seems that codecov already has some good recommendations for improving the coverage. |
Oh I only just noticed you also commented. The code coverage of the overall project actually increases because the MR removes a lot of code. Other than that (besides the Arena code, which is tested) I only really renamed stuff so I didn't feel like adding more tests would be necessary. I do see that there are a few functions in there that dont seem to be used at all. |
This PR refactors the Arena Id's a little bit so that we need fewer macros and get a clearer coupling between Arenas, their data and their ids. Similar to how rust analyzer refactored this.
I also renamed a few Ids to indicate that they are "Local" to their container (
TypeRefIdis local to a specificTypeRefMapand is now calledLocalTypRefId). I found that to be clearer.