提交 d05691f7 编写于 作者: C Cyrus Najmabadi

Smplify.

上级 4cd668b5
......@@ -52,10 +52,10 @@ protected override async Task<ImmutableArray<WrappingGroup>> ComputeWrappingGrou
await GetUnwrapCodeActionAsync().ConfigureAwait(false))));
private Task<WrapItemsAction> GetWrapCodeActionAsync()
=> TryCreateCodeActionAsync(
GetWrapEdits(),
FeaturesResources.Wrapping,
FeaturesResources.Wrap_expression);
=> TryCreateCodeActionAsync(GetWrapEdits(), FeaturesResources.Wrapping, FeaturesResources.Wrap_expression);
private Task<WrapItemsAction> GetUnwrapCodeActionAsync()
=> TryCreateCodeActionAsync(GetUnwrapEdits(), FeaturesResources.Wrapping, FeaturesResources.Unwrap_expression);
private ImmutableArray<Edit> GetWrapEdits()
{
......@@ -92,10 +92,6 @@ private ImmutableArray<Edit> GetWrapEdits()
return result.ToImmutableAndFree();
}
private Task<WrapItemsAction> GetUnwrapCodeActionAsync()
=> TryCreateCodeActionAsync(
GetUnwrapEdits(), FeaturesResources.Wrapping, FeaturesResources.Unwrap_expression);
private ImmutableArray<Edit> GetUnwrapEdits()
{
var result = ArrayBuilder<Edit>.GetInstance();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册