提交 ccc2dfe6 编写于 作者: D David Barbet

Consolidate methods

上级 2f25916c
......@@ -18,19 +18,6 @@ internal static class CodeRefactoringContextExtensions
/// <summary>
/// Use this helper to register multiple refactorings (<paramref name="actions"/>).
/// </summary>
internal static void RegisterRefactorings<TCodeAction>(
this CodeRefactoringContext context, ImmutableArray<TCodeAction> actions)
where TCodeAction : CodeAction
=> RegisterRefactorings(context, actions, applicableToSpan: null);
/// <summary>
/// Use this helper to register multiple refactorings (<paramref name="actions"/>) with an applicable span.
/// </summary>
internal static void RegisterRefactorings<TCodeAction>(
this CodeRefactoringContext context, ImmutableArray<TCodeAction> actions, TextSpan applicableToSpan)
where TCodeAction : CodeAction
=> RegisterRefactorings(context, actions, new Nullable<TextSpan>(applicableToSpan));
private static void RegisterRefactorings<TCodeAction>(
CodeRefactoringContext context, ImmutableArray<TCodeAction> actions, TextSpan? applicableToSpan = null)
where TCodeAction : CodeAction
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册