You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix some comments disappearing in array sugar. (#5947)
* Fix some comments disappearing in array sugar.
The ids for `Array.get` and `Array.set` used to desugar array access have location that overlaps with the arguments, stealing the comments.
This takes care of some examples similar to the one in #5946
but not that specific example.
* Original example.
* Change comment attachment instead of parser location of array functions.
* Update CHANGELOG.md
Fixes#5946
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,7 @@ These are only breaking changes for unformatted code.
48
48
- Fix compiler ppx issue when combining `async` and uncurried application https://github.com/rescript-lang/rescript-compiler/pull/5856
49
49
- Fix issue where the internal representation of uncurried types would leak when a non-function is applied in a curried way https://github.com/rescript-lang/rescript-compiler/pull/5892
50
50
- In GenType, check annotations also in module types to decide whether to produce the `.gen.tsx` file https://github.com/rescript-lang/rescript-compiler/pull/5903
51
+
- Fix some comments disappearing in array access expressions https://github.com/rescript-lang/rescript-compiler/pull/5947
0 commit comments