Udostępnij za pośrednictwem


SymbolAnalysisContext Constructor

Definition

Caution

Use CompilationWithAnalyzers instead. See https://github.com/dotnet/roslyn/issues/63440 for more details.

public:
 SymbolAnalysisContext(Microsoft::CodeAnalysis::ISymbol ^ symbol, 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 SymbolAnalysisContext (Microsoft.CodeAnalysis.ISymbol symbol, 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 SymbolAnalysisContext (Microsoft.CodeAnalysis.ISymbol symbol, 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.SymbolAnalysisContext : Microsoft.CodeAnalysis.ISymbol * Microsoft.CodeAnalysis.Compilation * Microsoft.CodeAnalysis.Diagnostics.AnalyzerOptions * Action<Microsoft.CodeAnalysis.Diagnostic> * Func<Microsoft.CodeAnalysis.Diagnostic, bool> * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.Diagnostics.SymbolAnalysisContext
[<System.Obsolete("Use CompilationWithAnalyzers instead. See https://github.com/dotnet/roslyn/issues/63440 for more details.")>]
new Microsoft.CodeAnalysis.Diagnostics.SymbolAnalysisContext : Microsoft.CodeAnalysis.ISymbol * Microsoft.CodeAnalysis.Compilation * Microsoft.CodeAnalysis.Diagnostics.AnalyzerOptions * Action<Microsoft.CodeAnalysis.Diagnostic> * Func<Microsoft.CodeAnalysis.Diagnostic, bool> * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.Diagnostics.SymbolAnalysisContext
Public Sub New (symbol As ISymbol, compilation As Compilation, options As AnalyzerOptions, reportDiagnostic As Action(Of Diagnostic), isSupportedDiagnostic As Func(Of Diagnostic, Boolean), cancellationToken As CancellationToken)

Parameters

symbol
ISymbol
compilation
Compilation
options
AnalyzerOptions
reportDiagnostic
Action<Diagnostic>
isSupportedDiagnostic
Func<Diagnostic,Boolean>
cancellationToken
CancellationToken
Attributes

Applies to