GeneratedCodeAnalysisFlags Enum

Definition

Flags to configure mode of generated code analysis.

This enumeration supports a bitwise combination of its member values.

public enum class GeneratedCodeAnalysisFlags
[System.Flags]
public enum GeneratedCodeAnalysisFlags
[<System.Flags>]
type GeneratedCodeAnalysisFlags = 
Public Enum GeneratedCodeAnalysisFlags
Inheritance
GeneratedCodeAnalysisFlags
Attributes

Fields

Name Value Description
None 0

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.

Analyze 1

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.

ReportDiagnostics 2

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.

Applies to