Udostępnij za pośrednictwem


CompilationWithAnalyzers.GetEffectiveDiagnostics Method

Definition

Overloads

GetEffectiveDiagnostics(ImmutableArray<Diagnostic>, Compilation)

Given a set of compiler or DiagnosticAnalyzer generated diagnostics, returns the effective diagnostics after applying the below filters:

  1. SpecificDiagnosticOptions specified for the given compilation.
  2. GeneralDiagnosticOption specified for the given compilation.
  3. Diagnostic suppression through applied SuppressMessageAttribute.
  4. Pragma directives for the given compilation.
GetEffectiveDiagnostics(IEnumerable<Diagnostic>, Compilation)

Given a set of compiler or DiagnosticAnalyzer generated diagnostics, returns the effective diagnostics after applying the below filters:

  1. SpecificDiagnosticOptions specified for the given compilation.
  2. GeneralDiagnosticOption specified for the given compilation.
  3. Diagnostic suppression through applied SuppressMessageAttribute.
  4. Pragma directives for the given compilation.

GetEffectiveDiagnostics(ImmutableArray<Diagnostic>, Compilation)

Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs

Given a set of compiler or DiagnosticAnalyzer generated diagnostics, returns the effective diagnostics after applying the below filters:

  1. SpecificDiagnosticOptions specified for the given compilation.
  2. GeneralDiagnosticOption specified for the given compilation.
  3. Diagnostic suppression through applied SuppressMessageAttribute.
  4. Pragma directives for the given compilation.
public:
 static System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::Diagnostic ^> ^ GetEffectiveDiagnostics(System::Collections::Immutable::ImmutableArray<Microsoft::CodeAnalysis::Diagnostic ^> diagnostics, Microsoft::CodeAnalysis::Compilation ^ compilation);
public static System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Diagnostic> GetEffectiveDiagnostics (System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostic> diagnostics, Microsoft.CodeAnalysis.Compilation compilation);
static member GetEffectiveDiagnostics : System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostic> * Microsoft.CodeAnalysis.Compilation -> seq<Microsoft.CodeAnalysis.Diagnostic>
Public Shared Function GetEffectiveDiagnostics (diagnostics As ImmutableArray(Of Diagnostic), compilation As Compilation) As IEnumerable(Of Diagnostic)

Parameters

diagnostics
ImmutableArray<Diagnostic>
compilation
Compilation

Returns

Applies to

GetEffectiveDiagnostics(IEnumerable<Diagnostic>, Compilation)

Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs
Source:
CompilationWithAnalyzers.cs

Given a set of compiler or DiagnosticAnalyzer generated diagnostics, returns the effective diagnostics after applying the below filters:

  1. SpecificDiagnosticOptions specified for the given compilation.
  2. GeneralDiagnosticOption specified for the given compilation.
  3. Diagnostic suppression through applied SuppressMessageAttribute.
  4. Pragma directives for the given compilation.
public:
 static System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::Diagnostic ^> ^ GetEffectiveDiagnostics(System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::Diagnostic ^> ^ diagnostics, Microsoft::CodeAnalysis::Compilation ^ compilation);
public static System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Diagnostic> GetEffectiveDiagnostics (System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Diagnostic> diagnostics, Microsoft.CodeAnalysis.Compilation compilation);
static member GetEffectiveDiagnostics : seq<Microsoft.CodeAnalysis.Diagnostic> * Microsoft.CodeAnalysis.Compilation -> seq<Microsoft.CodeAnalysis.Diagnostic>
Public Shared Function GetEffectiveDiagnostics (diagnostics As IEnumerable(Of Diagnostic), compilation As Compilation) As IEnumerable(Of Diagnostic)

Parameters

diagnostics
IEnumerable<Diagnostic>
compilation
Compilation

Returns

Applies to