@@ -24,21 +24,21 @@ public override Task<CodeAction> GetFixAsync(FixAllContext fixAllContext)
2424 case FixAllScope . Document :
2525 fixAction = CodeAction . Create (
2626 title ,
27- cancellationToken => this . GetDocumentFixesAsync ( fixAllContext . WithCancellationToken ( cancellationToken ) ) ,
27+ cancellationToken => GetDocumentFixesAsync ( fixAllContext . WithCancellationToken ( cancellationToken ) ) ,
2828 nameof ( SA1412FixAllProvider ) ) ;
2929 break ;
3030
3131 case FixAllScope . Project :
3232 fixAction = CodeAction . Create (
3333 title ,
34- cancellationToken => this . GetProjectFixesAsync ( fixAllContext . WithCancellationToken ( cancellationToken ) , fixAllContext . Project ) ,
34+ cancellationToken => GetProjectFixesAsync ( fixAllContext . WithCancellationToken ( cancellationToken ) ) ,
3535 nameof ( SA1412FixAllProvider ) ) ;
3636 break ;
3737
3838 case FixAllScope . Solution :
3939 fixAction = CodeAction . Create (
4040 title ,
41- cancellationToken => this . GetSolutionFixesAsync ( fixAllContext . WithCancellationToken ( cancellationToken ) ) ,
41+ cancellationToken => GetSolutionFixesAsync ( fixAllContext . WithCancellationToken ( cancellationToken ) ) ,
4242 nameof ( SA1412FixAllProvider ) ) ;
4343 break ;
4444
@@ -68,7 +68,7 @@ private static async Task<Solution> FixDocumentAsync(Solution solution, Document
6868 return await SA1412CodeFixProvider . GetTransformedSolutionAsync ( document , cancellationToken ) . ConfigureAwait ( false ) ;
6969 }
7070
71- private async Task < Solution > GetDocumentFixesAsync ( FixAllContext fixAllContext )
71+ private static async Task < Solution > GetDocumentFixesAsync ( FixAllContext fixAllContext )
7272 {
7373 var documentDiagnosticsToFix = await FixAllContextHelper . GetDocumentDiagnosticsToFixAsync ( fixAllContext ) . ConfigureAwait ( false ) ;
7474 ImmutableArray < Diagnostic > diagnostics ;
@@ -80,7 +80,7 @@ private async Task<Solution> GetDocumentFixesAsync(FixAllContext fixAllContext)
8080 return await FixDocumentAsync ( fixAllContext . Document . Project . Solution , fixAllContext . Document . Id , diagnostics , fixAllContext . CodeActionEquivalenceKey , fixAllContext . CancellationToken ) . ConfigureAwait ( false ) ;
8181 }
8282
83- private async Task < Solution > GetSolutionFixesAsync ( FixAllContext fixAllContext , ImmutableArray < Document > documents )
83+ private static async Task < Solution > GetSolutionFixesAsync ( FixAllContext fixAllContext , ImmutableArray < Document > documents )
8484 {
8585 var documentDiagnosticsToFix = await FixAllContextHelper . GetDocumentDiagnosticsToFixAsync ( fixAllContext ) . ConfigureAwait ( false ) ;
8686
@@ -99,15 +99,15 @@ private async Task<Solution> GetSolutionFixesAsync(FixAllContext fixAllContext,
9999 return solution ;
100100 }
101101
102- private Task < Solution > GetProjectFixesAsync ( FixAllContext fixAllContext , Project project )
102+ private static Task < Solution > GetProjectFixesAsync ( FixAllContext fixAllContext )
103103 {
104- return this . GetSolutionFixesAsync ( fixAllContext , project . Documents . ToImmutableArray ( ) ) ;
104+ return GetSolutionFixesAsync ( fixAllContext , fixAllContext . Project . Documents . ToImmutableArray ( ) ) ;
105105 }
106106
107- private Task < Solution > GetSolutionFixesAsync ( FixAllContext fixAllContext )
107+ private static Task < Solution > GetSolutionFixesAsync ( FixAllContext fixAllContext )
108108 {
109109 ImmutableArray < Document > documents = fixAllContext . Solution . Projects . SelectMany ( i => i . Documents ) . ToImmutableArray ( ) ;
110- return this . GetSolutionFixesAsync ( fixAllContext , documents ) ;
110+ return GetSolutionFixesAsync ( fixAllContext , documents ) ;
111111 }
112112 }
113113}
0 commit comments