CompilationWithAnalyzers.GetEffectiveDiagnostics Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetEffectiveDiagnostics(ImmutableArray<Diagnostic>, Compilation) |
Given a set of compiler or DiagnosticAnalyzer generated
|
GetEffectiveDiagnostics(IEnumerable<Diagnostic>, Compilation) |
Given a set of compiler or DiagnosticAnalyzer generated
|
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:
- SpecificDiagnosticOptions specified for the given
compilation
. - GeneralDiagnosticOption specified for the given
compilation
. - Diagnostic suppression through applied SuppressMessageAttribute.
- 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:
- SpecificDiagnosticOptions specified for the given
compilation
. - GeneralDiagnosticOption specified for the given
compilation
. - Diagnostic suppression through applied SuppressMessageAttribute.
- 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