CompilationAnalysisContext Constructor
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Precaución
Use CompilationWithAnalyzers instead. See https://github.com/dotnet/roslyn/issues/63440 for more details.
public:
CompilationAnalysisContext(Microsoft::CodeAnalysis::Compilation ^ compilation, Microsoft::CodeAnalysis::Diagnostics::AnalyzerOptions ^ options, Action<Microsoft::CodeAnalysis::Diagnostic ^> ^ reportDiagnostic, Func<Microsoft::CodeAnalysis::Diagnostic ^, bool> ^ isSupportedDiagnostic, System::Threading::CancellationToken cancellationToken);
public CompilationAnalysisContext (Microsoft.CodeAnalysis.Compilation compilation, Microsoft.CodeAnalysis.Diagnostics.AnalyzerOptions options, Action<Microsoft.CodeAnalysis.Diagnostic> reportDiagnostic, Func<Microsoft.CodeAnalysis.Diagnostic,bool> isSupportedDiagnostic, System.Threading.CancellationToken cancellationToken);
[System.Obsolete("Use CompilationWithAnalyzers instead. See https://github.com/dotnet/roslyn/issues/63440 for more details.")]
public CompilationAnalysisContext (Microsoft.CodeAnalysis.Compilation compilation, Microsoft.CodeAnalysis.Diagnostics.AnalyzerOptions options, Action<Microsoft.CodeAnalysis.Diagnostic> reportDiagnostic, Func<Microsoft.CodeAnalysis.Diagnostic,bool> isSupportedDiagnostic, System.Threading.CancellationToken cancellationToken);
new Microsoft.CodeAnalysis.Diagnostics.CompilationAnalysisContext : Microsoft.CodeAnalysis.Compilation * Microsoft.CodeAnalysis.Diagnostics.AnalyzerOptions * Action<Microsoft.CodeAnalysis.Diagnostic> * Func<Microsoft.CodeAnalysis.Diagnostic, bool> * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.Diagnostics.CompilationAnalysisContext
[<System.Obsolete("Use CompilationWithAnalyzers instead. See https://github.com/dotnet/roslyn/issues/63440 for more details.")>]
new Microsoft.CodeAnalysis.Diagnostics.CompilationAnalysisContext : Microsoft.CodeAnalysis.Compilation * Microsoft.CodeAnalysis.Diagnostics.AnalyzerOptions * Action<Microsoft.CodeAnalysis.Diagnostic> * Func<Microsoft.CodeAnalysis.Diagnostic, bool> * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.Diagnostics.CompilationAnalysisContext
Public Sub New (compilation As Compilation, options As AnalyzerOptions, reportDiagnostic As Action(Of Diagnostic), isSupportedDiagnostic As Func(Of Diagnostic, Boolean), cancellationToken As CancellationToken)
Parámetros
- compilation
- Compilation
- options
- AnalyzerOptions
- reportDiagnostic
- Action<Diagnostic>
- isSupportedDiagnostic
- Func<Diagnostic,Boolean>
- cancellationToken
- CancellationToken
- Atributos
Se aplica a
Colaborar con nosotros en GitHub
El origen de este contenido se puede encontrar en GitHub, donde también puede crear y revisar problemas y solicitudes de incorporación de cambios. Para más información, consulte nuestra guía para colaboradores.