Fix extraneous parameter in FixAllContextExtensions
This commit is contained in:
Родитель
27c3390294
Коммит
5544984b59
|
@ -4,11 +4,9 @@
|
|||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Reflection;
|
||||
using System.Threading;
|
||||
using Microsoft.CodeAnalysis.CodeFixes;
|
||||
using Microsoft.CodeAnalysis.Diagnostics;
|
||||
using Microsoft.CodeAnalysis.Text;
|
||||
|
||||
namespace Microsoft.CodeAnalysis.Testing.Extensions;
|
||||
|
@ -20,7 +18,7 @@ internal static class FixAllContextExtensions
|
|||
|
||||
static FixAllContextExtensions()
|
||||
{
|
||||
var constructorInfo = typeof(FixAllContext).GetConstructor(new[] { typeof(Document), typeof(TextSpan?), typeof(CodeFixProvider), typeof(FixAllScope), typeof(string), typeof(IEnumerable<string>), typeof(DiagnosticSeverity), typeof(ImmutableArray<DiagnosticAnalyzer>), typeof(FixAllContext.DiagnosticProvider), typeof(CancellationToken) });
|
||||
var constructorInfo = typeof(FixAllContext).GetConstructor(new[] { typeof(Document), typeof(TextSpan?), typeof(CodeFixProvider), typeof(FixAllScope), typeof(string), typeof(IEnumerable<string>), typeof(DiagnosticSeverity), typeof(FixAllContext.DiagnosticProvider), typeof(CancellationToken) });
|
||||
if (constructorInfo is not null)
|
||||
{
|
||||
s_createFixAllContextDocument = (document, diagnosticSpan, codeFixProvider, scope, codeActionEquivalenceKey, diagnosticIds, minimumSeverity, fixAllDiagnosticProvider, cancellationToken) =>
|
||||
|
@ -30,7 +28,7 @@ internal static class FixAllContextExtensions
|
|||
}
|
||||
else
|
||||
{
|
||||
constructorInfo = typeof(FixAllContext).GetConstructor(new[] { typeof(Document), typeof(TextSpan?), typeof(CodeFixProvider), typeof(FixAllScope), typeof(string), typeof(IEnumerable<string>), typeof(ImmutableArray<DiagnosticAnalyzer>), typeof(FixAllContext.DiagnosticProvider), typeof(CancellationToken) });
|
||||
constructorInfo = typeof(FixAllContext).GetConstructor(new[] { typeof(Document), typeof(TextSpan?), typeof(CodeFixProvider), typeof(FixAllScope), typeof(string), typeof(IEnumerable<string>), typeof(FixAllContext.DiagnosticProvider), typeof(CancellationToken) });
|
||||
if (constructorInfo is not null)
|
||||
{
|
||||
s_createFixAllContextDocument = (document, diagnosticSpan, codeFixProvider, scope, codeActionEquivalenceKey, diagnosticIds, minimumSeverity, fixAllDiagnosticProvider, cancellationToken) =>
|
||||
|
@ -45,7 +43,7 @@ internal static class FixAllContextExtensions
|
|||
}
|
||||
}
|
||||
|
||||
constructorInfo = typeof(FixAllContext).GetConstructor(new[] { typeof(Project), typeof(CodeFixProvider), typeof(FixAllScope), typeof(string), typeof(IEnumerable<string>), typeof(DiagnosticSeverity), typeof(ImmutableArray<DiagnosticAnalyzer>), typeof(FixAllContext.DiagnosticProvider), typeof(CancellationToken) });
|
||||
constructorInfo = typeof(FixAllContext).GetConstructor(new[] { typeof(Project), typeof(CodeFixProvider), typeof(FixAllScope), typeof(string), typeof(IEnumerable<string>), typeof(DiagnosticSeverity), typeof(FixAllContext.DiagnosticProvider), typeof(CancellationToken) });
|
||||
if (constructorInfo is not null)
|
||||
{
|
||||
s_createFixAllContextProject = (project, codeFixProvider, scope, codeActionEquivalenceKey, diagnosticIds, minimumSeverity, fixAllDiagnosticProvider, cancellationToken) =>
|
||||
|
|
Загрузка…
Ссылка в новой задаче