Wrapping\SeparatedSyntaxList\SeparatedSyntaxListCodeActionComputer.cs (24)
97WrappingStyle wrappingStyle, ArrayBuilder<Edit> result)
99result.Add(wrappingStyle == WrappingStyle.WrapFirst_IndentRest
123private SyntaxTrivia GetIndentationTrivia(WrappingStyle wrappingStyle)
125return wrappingStyle == WrappingStyle.UnwrapFirst_AlignRest
161unwrapActions.AddIfNotNull(await GetUnwrapAllCodeActionAsync(parentTitle, WrappingStyle.UnwrapFirst_IndentRest).ConfigureAwait(false));
167unwrapActions.AddIfNotNull(await GetUnwrapAllCodeActionAsync(parentTitle, WrappingStyle.WrapFirst_IndentRest).ConfigureAwait(false));
175private async Task<WrapItemsAction?> GetUnwrapAllCodeActionAsync(string parentTitle, WrappingStyle wrappingStyle)
178var title = wrappingStyle == WrappingStyle.WrapFirst_IndentRest
185private ImmutableArray<Edit> GetUnwrapAllEdits(WrappingStyle wrappingStyle)
223parentTitle, WrappingStyle.UnwrapFirst_AlignRest).ConfigureAwait(false));
230parentTitle, WrappingStyle.WrapFirst_IndentRest).ConfigureAwait(false));
238parentTitle, WrappingStyle.UnwrapFirst_IndentRest).ConfigureAwait(false));
257string parentTitle, WrappingStyle wrappingStyle)
268WrappingStyle wrappingStyle, SyntaxTrivia indentationTrivia)
277var currentOffset = wrappingStyle == WrappingStyle.WrapFirst_IndentRest
347parentTitle, WrappingStyle.UnwrapFirst_AlignRest).ConfigureAwait(false));
356parentTitle, WrappingStyle.WrapFirst_IndentRest).ConfigureAwait(false));
365parentTitle, WrappingStyle.UnwrapFirst_IndentRest).ConfigureAwait(false));
374string parentTitle, WrappingStyle wrappingStyle)
384private string GetNestedCodeActionTitle(WrappingStyle wrappingStyle)
387WrappingStyle.WrapFirst_IndentRest => Wrapper.Indent_all_items,
388WrappingStyle.UnwrapFirst_AlignRest => Wrapper.Align_wrapped_items,
389WrappingStyle.UnwrapFirst_IndentRest => Wrapper.Indent_wrapped_items,
394WrappingStyle wrappingStyle, SyntaxTrivia indentationTrivia)