Permalink
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (16 sloc) 792 Bytes
// Copyright (c) Josef Pihrt. All rights reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace Roslynator.CSharp.Refactorings
{
internal static class TypeParameterConstraintClauseRefactoring
{
public static void ComputeRefactoring(RefactoringContext context, TypeParameterConstraintClauseSyntax constraintClause)
{
if (context.IsRefactoringEnabled(RefactoringIdentifiers.FormatConstraintClauses)
&& (context.Span.IsEmptyAndContainedInSpanOrBetweenSpans(constraintClause)))
{
FormatConstraintClausesRefactoring.ComputeRefactoring(context, constraintClause);
}
}
}
}