CompilationWithAnalyzers Costruttori
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
CompilationWithAnalyzers(Compilation, ImmutableArray<DiagnosticAnalyzer>, AnalyzerOptions) |
Crea una nuova compilazione associando analizzatori di diagnostica a una compilazione esistente. |
CompilationWithAnalyzers(Compilation, ImmutableArray<DiagnosticAnalyzer>, CompilationWithAnalyzersOptions) |
Crea una nuova compilazione associando analizzatori di diagnostica a una compilazione esistente. |
CompilationWithAnalyzers(Compilation, ImmutableArray<DiagnosticAnalyzer>, AnalyzerOptions, CancellationToken) |
Obsoleti.
Crea una nuova compilazione associando analizzatori di diagnostica a una compilazione esistente. |
CompilationWithAnalyzers(Compilation, ImmutableArray<DiagnosticAnalyzer>, AnalyzerOptions)
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
Crea una nuova compilazione associando analizzatori di diagnostica a una compilazione esistente.
public CompilationWithAnalyzers (Microsoft.CodeAnalysis.Compilation compilation, System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer> analyzers, Microsoft.CodeAnalysis.Diagnostics.AnalyzerOptions? options);
new Microsoft.CodeAnalysis.Diagnostics.CompilationWithAnalyzers : Microsoft.CodeAnalysis.Compilation * System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer> * Microsoft.CodeAnalysis.Diagnostics.AnalyzerOptions -> Microsoft.CodeAnalysis.Diagnostics.CompilationWithAnalyzers
Public Sub New (compilation As Compilation, analyzers As ImmutableArray(Of DiagnosticAnalyzer), options As AnalyzerOptions)
Parametri
- compilation
- Compilation
Compilazione originale.
- analyzers
- ImmutableArray<DiagnosticAnalyzer>
Set di analizzatori da includere nelle analisi future.
- options
- AnalyzerOptions
Opzioni passate agli analizzatori.
Si applica a
CompilationWithAnalyzers(Compilation, ImmutableArray<DiagnosticAnalyzer>, CompilationWithAnalyzersOptions)
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
Crea una nuova compilazione associando analizzatori di diagnostica a una compilazione esistente.
public:
CompilationWithAnalyzers(Microsoft::CodeAnalysis::Compilation ^ compilation, System::Collections::Immutable::ImmutableArray<Microsoft::CodeAnalysis::Diagnostics::DiagnosticAnalyzer ^> analyzers, Microsoft::CodeAnalysis::Diagnostics::CompilationWithAnalyzersOptions ^ analysisOptions);
public CompilationWithAnalyzers (Microsoft.CodeAnalysis.Compilation compilation, System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer> analyzers, Microsoft.CodeAnalysis.Diagnostics.CompilationWithAnalyzersOptions analysisOptions);
new Microsoft.CodeAnalysis.Diagnostics.CompilationWithAnalyzers : Microsoft.CodeAnalysis.Compilation * System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer> * Microsoft.CodeAnalysis.Diagnostics.CompilationWithAnalyzersOptions -> Microsoft.CodeAnalysis.Diagnostics.CompilationWithAnalyzers
Public Sub New (compilation As Compilation, analyzers As ImmutableArray(Of DiagnosticAnalyzer), analysisOptions As CompilationWithAnalyzersOptions)
Parametri
- compilation
- Compilation
Compilazione originale.
- analyzers
- ImmutableArray<DiagnosticAnalyzer>
Set di analizzatori da includere nelle analisi future.
- analysisOptions
- CompilationWithAnalyzersOptions
Opzioni per configurare l'esecuzione dell'analizzatore.
Si applica a
CompilationWithAnalyzers(Compilation, ImmutableArray<DiagnosticAnalyzer>, AnalyzerOptions, CancellationToken)
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
- Origine:
- CompilationWithAnalyzers.cs
Attenzione
Use constructor without a cancellation token
Crea una nuova compilazione associando analizzatori di diagnostica a una compilazione esistente.
public:
CompilationWithAnalyzers(Microsoft::CodeAnalysis::Compilation ^ compilation, System::Collections::Immutable::ImmutableArray<Microsoft::CodeAnalysis::Diagnostics::DiagnosticAnalyzer ^> analyzers, Microsoft::CodeAnalysis::Diagnostics::AnalyzerOptions ^ options, System::Threading::CancellationToken cancellationToken);
public CompilationWithAnalyzers (Microsoft.CodeAnalysis.Compilation compilation, System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer> analyzers, Microsoft.CodeAnalysis.Diagnostics.AnalyzerOptions options, System.Threading.CancellationToken cancellationToken);
public CompilationWithAnalyzers (Microsoft.CodeAnalysis.Compilation compilation, System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer> analyzers, Microsoft.CodeAnalysis.Diagnostics.AnalyzerOptions? options, System.Threading.CancellationToken cancellationToken);
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("Use constructor without a cancellation token")]
public CompilationWithAnalyzers (Microsoft.CodeAnalysis.Compilation compilation, System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer> analyzers, Microsoft.CodeAnalysis.Diagnostics.AnalyzerOptions? options, System.Threading.CancellationToken cancellationToken);
new Microsoft.CodeAnalysis.Diagnostics.CompilationWithAnalyzers : Microsoft.CodeAnalysis.Compilation * System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer> * Microsoft.CodeAnalysis.Diagnostics.AnalyzerOptions * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.Diagnostics.CompilationWithAnalyzers
[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]
[<System.Obsolete("Use constructor without a cancellation token")>]
new Microsoft.CodeAnalysis.Diagnostics.CompilationWithAnalyzers : Microsoft.CodeAnalysis.Compilation * System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer> * Microsoft.CodeAnalysis.Diagnostics.AnalyzerOptions * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.Diagnostics.CompilationWithAnalyzers
Public Sub New (compilation As Compilation, analyzers As ImmutableArray(Of DiagnosticAnalyzer), options As AnalyzerOptions, cancellationToken As CancellationToken)
Parametri
- compilation
- Compilation
Compilazione originale.
- analyzers
- ImmutableArray<DiagnosticAnalyzer>
Set di analizzatori da includere nelle analisi future.
- options
- AnalyzerOptions
Opzioni passate agli analizzatori.
- cancellationToken
- CancellationToken
Token di annullamento che può essere usato per interrompere l'analisi.
- Attributi