Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (17 sloc) 826 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.
namespace Roslynator.CSharp.Refactorings
{
internal static class RemoveAllPreprocessorDirectivesRefactoring
{
public static void ComputeRefactorings(RefactoringContext context)
{
if (context.IsRefactoringEnabled(RefactoringIdentifiers.RemoveAllPreprocessorDirectives))
{
context.RegisterRefactoring(
"Remove all directives",
cancellationToken => context.Document.RemovePreprocessorDirectivesAsync(PreprocessorDirectiveFilter.All, cancellationToken),
RefactoringIdentifiers.RemoveAllPreprocessorDirectives);
}
}
}
}
You can’t perform that action at this time.