-
Notifications
You must be signed in to change notification settings - Fork 464
Array spread syntax support #6608
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
jscomp/syntax/src/res_core.ml
Outdated
let loc = mkLoc startPos p.prevEndPos in | ||
let collectExprs = function | ||
| [], Some spread, _startPos, _endPos -> [spread] | ||
| exprs, Some spread, _startPos, _endPos -> ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One thing I wasn't so sure if whether I should use startPos
and endPos
as the location.
Awesome! Seems like a few tests fail. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great to me, fantastic job! I'd like @cristianoc to have a look as well.
Also, mind adding a changelog? Also, we could rebase this to the v11 release branch, no reason to wait for v12 to ship this.
Looks great |
@shulhi want to rebase on 11 (https://github.com/rescript-lang/rescript-compiler/tree/11.0_release) before merging? That'll put it in the next version released. Again, great work! |
9df2643
to
dab2ffe
Compare
dab2ffe
to
c20a745
Compare
I've rebased on 11. Hopefully, it's correct. |
Implementation for #6546