GeneratedCodeAnalysisFlags Enum
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.
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
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. |
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. |
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈