SemanticModelAnalysisContext Constructor
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.
Caution
Use CompilationWithAnalyzers instead. See https://github.com/dotnet/roslyn/issues/63440 for more details.
public:
SemanticModelAnalysisContext(Microsoft::CodeAnalysis::SemanticModel ^ semanticModel, Microsoft::CodeAnalysis::Diagnostics::AnalyzerOptions ^ options, Action<Microsoft::CodeAnalysis::Diagnostic ^> ^ reportDiagnostic, Func<Microsoft::CodeAnalysis::Diagnostic ^, bool> ^ isSupportedDiagnostic, System::Threading::CancellationToken cancellationToken);
public SemanticModelAnalysisContext (Microsoft.CodeAnalysis.SemanticModel semanticModel, 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 SemanticModelAnalysisContext (Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.Diagnostics.AnalyzerOptions options, Action<Microsoft.CodeAnalysis.Diagnostic> reportDiagnostic, Func<Microsoft.CodeAnalysis.Diagnostic,bool> isSupportedDiagnostic, System.Threading.CancellationToken cancellationToken);
new Microsoft.CodeAnalysis.Diagnostics.SemanticModelAnalysisContext : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.Diagnostics.AnalyzerOptions * Action<Microsoft.CodeAnalysis.Diagnostic> * Func<Microsoft.CodeAnalysis.Diagnostic, bool> * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.Diagnostics.SemanticModelAnalysisContext
[<System.Obsolete("Use CompilationWithAnalyzers instead. See https://github.com/dotnet/roslyn/issues/63440 for more details.")>]
new Microsoft.CodeAnalysis.Diagnostics.SemanticModelAnalysisContext : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.Diagnostics.AnalyzerOptions * Action<Microsoft.CodeAnalysis.Diagnostic> * Func<Microsoft.CodeAnalysis.Diagnostic, bool> * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.Diagnostics.SemanticModelAnalysisContext
Public Sub New (semanticModel As SemanticModel, options As AnalyzerOptions, reportDiagnostic As Action(Of Diagnostic), isSupportedDiagnostic As Func(Of Diagnostic, Boolean), cancellationToken As CancellationToken)
Parameters
- semanticModel
- SemanticModel
- options
- AnalyzerOptions
- reportDiagnostic
- Action<Diagnostic>
- isSupportedDiagnostic
- Func<Diagnostic,Boolean>
- cancellationToken
- CancellationToken
- Attributes
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.