-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Simplify the wrapping code for initializer-expression wrapping #59397
Conversation
8fb9f2c
to
e4f5b2c
Compare
431fd7f
to
9a2de5a
Compare
@sharwell this is ready to rereview. |
{ | ||
internal abstract partial class AbstractSeparatedListWrapper<TListSyntax, TListItemSyntax> | ||
{ | ||
protected abstract class AbstractSeparatedListCodeComputer<TWrapper> : AbstractCodeActionComputer<TWrapper> |
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 code just moved back into AbstractSeparatedListWrapper
protected sealed override ImmutableArray<Edit> GetWrapEachEdits( | ||
WrappingStyle wrappingStyle, SyntaxTrivia indentationTrivia) | ||
{ | ||
using var _ = ArrayBuilder<Edit>.GetInstance(out var result); |
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.
all this logic was basically teh same as normal separated wrapping, just with some tweaks about how hte start/end brace are handled. so this merged back into that, and that code was updated to be hte same as before, just with specialization around start/end brace.
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.
Assuming the absence of tests here means no behaviour change
Yup. It was just a simplification refactoring |
Followup to #39878