共用方式為


CompilationWithAnalyzers 建構函式

定義

多載

CompilationWithAnalyzers(Compilation, ImmutableArray<DiagnosticAnalyzer>, AnalyzerOptions)

將診斷分析器附加至現有的編譯,以建立新的編譯。

CompilationWithAnalyzers(Compilation, ImmutableArray<DiagnosticAnalyzer>, CompilationWithAnalyzersOptions)

將診斷分析器附加至現有的編譯,以建立新的編譯。

CompilationWithAnalyzers(Compilation, ImmutableArray<DiagnosticAnalyzer>, AnalyzerOptions, CancellationToken)
已淘汰.

將診斷分析器附加至現有的編譯,以建立新的編譯。

CompilationWithAnalyzers(Compilation, ImmutableArray<DiagnosticAnalyzer>, AnalyzerOptions)

來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs

將診斷分析器附加至現有的編譯,以建立新的編譯。

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)

參數

compilation
Compilation

原始編譯。

analyzers
ImmutableArray<DiagnosticAnalyzer>

要包含在未來分析中的分析器集。

options
AnalyzerOptions

傳遞至分析器的選項。

適用於

CompilationWithAnalyzers(Compilation, ImmutableArray<DiagnosticAnalyzer>, CompilationWithAnalyzersOptions)

來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs

將診斷分析器附加至現有的編譯,以建立新的編譯。

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)

參數

compilation
Compilation

原始編譯。

analyzers
ImmutableArray<DiagnosticAnalyzer>

要包含在未來分析中的分析器集。

analysisOptions
CompilationWithAnalyzersOptions

設定分析器執行的選項。

適用於

CompilationWithAnalyzers(Compilation, ImmutableArray<DiagnosticAnalyzer>, AnalyzerOptions, CancellationToken)

來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs
來源:
CompilationWithAnalyzers.cs

警告

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);
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)

參數

compilation
Compilation

原始編譯。

analyzers
ImmutableArray<DiagnosticAnalyzer>

要包含在未來分析中的分析器集。

options
AnalyzerOptions

傳遞至分析器的選項。

cancellationToken
CancellationToken

可用來中止分析的取消標記。

屬性

適用於