Skip to content

Conversation

@shulhi
Copy link
Member

@shulhi shulhi commented Feb 3, 2024

Implementation for #6546

let loc = mkLoc startPos p.prevEndPos in
let collectExprs = function
| [], Some spread, _startPos, _endPos -> [spread]
| exprs, Some spread, _startPos, _endPos -> (
Copy link
Member Author

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.

@zth
Copy link
Member

zth commented Feb 3, 2024

Awesome! Seems like a few tests fail.

Copy link
Member

@zth zth left a 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.

@cristianoc
Copy link
Collaborator

Looks great

@zth
Copy link
Member

zth commented Feb 4, 2024

@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!

@shulhi shulhi force-pushed the feat/array-spread branch from 9df2643 to dab2ffe Compare February 4, 2024 23:57
@shulhi shulhi force-pushed the feat/array-spread branch from dab2ffe to c20a745 Compare February 4, 2024 23:59
@shulhi
Copy link
Member Author

shulhi commented Feb 5, 2024

@shulhi want to rebase on 11 (https://github.com/rescript-lang/rescript-compiler/tree/11.0_release) before merging?

I've rebased on 11. Hopefully, it's correct.

@zth zth changed the base branch from master to 11.0_release February 5, 2024 06:27
@zth zth merged commit 0d0d7a0 into rescript-lang:11.0_release Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants