-
Notifications
You must be signed in to change notification settings - Fork 463
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
Add attr res.array{Get,Set}
to Array.{get, set}
#6343
base: master
Are you sure you want to change the base?
Add attr res.array{Get,Set}
to Array.{get, set}
#6343
Conversation
res.syntaxSugar
to `Array.{get, setres.syntaxSugar
to Array.{get, set}
@aspeddro Shall we resurrect this PR? Would you rebase it, add a comment somewhere explaining what the attribute is used for, and a CHANGELOG entry? |
e4785d1
to
01926ab
Compare
I added a comment and updated the PR |
Thanks a lot! 👍 Regarding the comment, I meant in the code, where this attribute is set. Something else I am wondering about: The name |
res.syntaxSugar
to Array.{get, set}
res.array_{Get,Set}
to Array.{get, set}
res.array_{Get,Set}
to Array.{get, set}
res.array{Get,Set}
to Array.{get, set}
After a long time I made the adjustments |
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.
Thanks a lot! Looks good to me!
Maybe @cristianoc or @zth would like to have a final look, too?
Looks good to me. |
rescript-lang/rescript-vscode#797 and |
This is the PR for optional fields in record type declarations: #7190 |
Adding attribute because the internal representation of
arr[idx]
isArray.get
and we don't have a way to distinguish both when issuing the token on the LSP.See rescript-lang/rescript-vscode#801