Click or drag to resize

GeneratedCodeAnalysisFlags Class



Flags to configure mode of generated code analysis.
Inheritance Hierarchy
SystemEnum
  Microsoft.CodeAnalysis.DiagnosticsGeneratedCodeAnalysisFlags

Namespace:  Microsoft.CodeAnalysis.Diagnostics
Assembly:  Microsoft.CodeAnalysis (in Microsoft.CodeAnalysis.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
[FlagsAttribute]
public sealed class GeneratedCodeAnalysisFlags : Enum

The GeneratedCodeAnalysisFlags type exposes the following members.

Fields
  NameDescription
Public fieldStatic memberAnalyze
Enable analyzer action callbacks for generated code. Analyzer driver will make callbacks into the analyzer for all entities (source files, symbols, etc.) in the compilation, including generated code.
Public fieldStatic memberNone
Disable analyzer action callbacks and diagnostic reporting for generated code. Analyzer driver will not make callbacks into the analyzer for entities (source files, symbols, etc.) that it classifies as generated code. Additionally, any diagnostic reported by the analyzer with location in generated code will not be reported.
Public fieldStatic memberReportDiagnostics
Enable reporting diagnostics on generated code. Analyzer driver will not suppress any analyzer diagnostic based on whether or not it's location is in generated code.
Public fieldvalue__
Top
See Also