Beispiel #1
0
 internal ProjectFixResult(
     ProjectFixKind kind,
     IEnumerable <DiagnosticInfo> fixedDiagnostics     = default,
     IEnumerable <DiagnosticInfo> unfixedDiagnostics   = default,
     IEnumerable <DiagnosticInfo> unfixableDiagnostics = default,
     int numberOfFormattedDocuments = -1,
     int numberOfAddedFileBanners   = -1)
 {
     Kind                       = kind;
     FixedDiagnostics           = fixedDiagnostics?.ToImmutableArray() ?? ImmutableArray <DiagnosticInfo> .Empty;
     UnfixedDiagnostics         = unfixedDiagnostics?.ToImmutableArray() ?? ImmutableArray <DiagnosticInfo> .Empty;
     UnfixableDiagnostics       = unfixableDiagnostics?.ToImmutableArray() ?? ImmutableArray <DiagnosticInfo> .Empty;
     NumberOfFormattedDocuments = numberOfFormattedDocuments;
     NumberOfAddedFileBanners   = numberOfAddedFileBanners;
 }
 internal ProjectFixResult(
     ProjectFixKind kind,
     IEnumerable <Diagnostic> fixedDiagnostics     = default,
     IEnumerable <Diagnostic> unfixedDiagnostics   = default,
     IEnumerable <Diagnostic> unfixableDiagnostics = default,
     IEnumerable <DiagnosticAnalyzer> analyzers    = default,
     IEnumerable <CodeFixProvider> fixers          = default,
     int formattedDocumentCount = 0)
 {
     Kind                   = kind;
     FixedDiagnostics       = fixedDiagnostics?.ToImmutableArray() ?? ImmutableArray <Diagnostic> .Empty;
     UnfixedDiagnostics     = unfixedDiagnostics?.ToImmutableArray() ?? ImmutableArray <Diagnostic> .Empty;
     UnfixableDiagnostics   = unfixableDiagnostics?.ToImmutableArray() ?? ImmutableArray <Diagnostic> .Empty;
     Analyzers              = analyzers?.ToImmutableArray() ?? ImmutableArray <DiagnosticAnalyzer> .Empty;
     Fixers                 = fixers?.ToImmutableArray() ?? ImmutableArray <CodeFixProvider> .Empty;
     FormattedDocumentCount = formattedDocumentCount;
 }
Beispiel #3
0
 internal ProjectFixResult(
     ProjectFixKind kind,
     IEnumerable <Diagnostic> fixedDiagnostics     = default,
     IEnumerable <Diagnostic> unfixedDiagnostics   = default,
     IEnumerable <Diagnostic> unfixableDiagnostics = default,
     IEnumerable <DiagnosticAnalyzer> analyzers    = default,
     IEnumerable <CodeFixProvider> fixers          = default,
     int numberOfFormattedDocuments = 0,
     int numberOfAddedFileBanners   = 0)
 {
     Kind                       = kind;
     FixedDiagnostics           = fixedDiagnostics?.ToImmutableArray() ?? ImmutableArray <Diagnostic> .Empty;
     UnfixedDiagnostics         = unfixedDiagnostics?.ToImmutableArray() ?? ImmutableArray <Diagnostic> .Empty;
     UnfixableDiagnostics       = unfixableDiagnostics?.ToImmutableArray() ?? ImmutableArray <Diagnostic> .Empty;
     Analyzers                  = analyzers?.ToImmutableArray() ?? ImmutableArray <DiagnosticAnalyzer> .Empty;
     Fixers                     = fixers?.ToImmutableArray() ?? ImmutableArray <CodeFixProvider> .Empty;
     NumberOfFormattedDocuments = numberOfFormattedDocuments;
     NumberOfAddedFileBanners   = numberOfAddedFileBanners;
 }