19 references to WrapItemsAction
Microsoft.CodeAnalysis.Features (19)
Wrapping\AbstractCodeActionComputer.cs (3)
119
protected async Task<
WrapItemsAction
?> TryCreateCodeActionAsync(
296
var sorted =
WrapItemsAction
.SortActionsByMostRecentlyUsed(ImmutableArray<CodeAction>.CastUp(wrappingActions));
308
return
WrapItemsAction
.SortActionsByMostRecentlyUsed(result.ToImmutableAndClear());
Wrapping\BinaryExpression\BinaryExpressionCodeActionComputer.cs (2)
78
private async Task<
WrapItemsAction
> GetWrapCodeActionAsync(bool align, CancellationToken cancellationToken)
83
private Task<
WrapItemsAction
> GetUnwrapCodeActionAsync(CancellationToken cancellationToken)
Wrapping\ChainedExpression\ChainedExpressionCodeActionComputer.cs (4)
95
using var _ = ArrayBuilder<
WrapItemsAction
>.GetInstance(out var actions);
106
private async Task AddWrapCodeActionAsync(ArrayBuilder<
WrapItemsAction
> actions, CancellationToken cancellationToken)
116
private async Task AddUnwrapCodeActionAsync(ArrayBuilder<
WrapItemsAction
> actions, CancellationToken cancellationToken)
119
private async Task AddWrapLongCodeActionAsync(ArrayBuilder<
WrapItemsAction
> actions, CancellationToken cancellationToken)
Wrapping\SeparatedSyntaxList\SeparatedSyntaxListCodeActionComputer.cs (7)
157
using var _ = ArrayBuilder<
WrapItemsAction
>.GetInstance(out var unwrapActions);
181
var
unwrapWithoutBraces = await GetWrapLongLineCodeActionAsync(
192
private async Task<
WrapItemsAction
?> GetUnwrapAllCodeActionAsync(
233
using var _ = ArrayBuilder<
WrapItemsAction
>.GetInstance(out var codeActions);
277
private async Task<
WrapItemsAction
?> GetWrapLongLineCodeActionAsync(
369
using var _ = ArrayBuilder<
WrapItemsAction
>.GetInstance(out var codeActions);
404
private async Task<
WrapItemsAction
?> GetWrapEveryNestedCodeActionAsync(
Wrapping\WrapItemsAction.cs (1)
84
=> (codeAction as
WrapItemsAction
)?.SortTitle ?? codeAction.Title;
Wrapping\WrappingGroup.cs (2)
19
internal readonly struct WrappingGroup(bool isInlinable, ImmutableArray<
WrapItemsAction
> wrappingActions)
29
public readonly ImmutableArray<
WrapItemsAction
> WrappingActions = wrappingActions;