-
Notifications
You must be signed in to change notification settings - Fork 830
Remove LetOrUseKeyword from SynExprLetOrUseTrivia #19090
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
base: main
Are you sure you want to change the base?
Conversation
❗ Release notes required
|
| isRecursive = false, | ||
| isUse = isUse, | ||
| isFromSource = true, | ||
| isBang = true, |
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.
With completing the SynLeadingKeyword union, can't 3 of the boolean flags be computed from it (as calculated properties, so not even stored) ?
isRecursive,isUse,isBang
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.
Yes, that came to mind as well.
I'm quite sure if all these are used or not.
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.
isRecursive is not coming from the leading keyword, it's a separate one. The others can be computed, yes.
|
Another issue I saw is the comp {
let! a = b in
and! c = d in
and! e = f in
()
}I made some changes for that as well so that any |
|
Didn't take this into account yet but should the range of |
I'd say no. I see it as a part of a Even though it only makes sense in I'd put it to |
Description
As mentioned on #18825 (comment)
It would be most convenient if a
SynBindingholds all the information to print itself on its own.By extending
SynLeadingKeywordwe can do exactly that.Test cases added
Performance benchmarks added in case of performance changes
Release notes entry updated: