Table of Contents

Class AsyncReentrantReleaserAnalyzer

Namespace
CryptoHives.Foundation.Threading.Analyzers
Assembly
CryptoHives.Foundation.Threading.Analyzers.dll

Detects async methods, local functions and lambdas that return an AsyncReentrantLock.Releaser, which hides the hold from the caller and deadlocks its next nested acquisition.

[DiagnosticAnalyzer("C#", new string[] { })]
public sealed class AsyncReentrantReleaserAnalyzer : DiagnosticAnalyzer
Inheritance
AsyncReentrantReleaserAnalyzer
Inherited Members

Properties

SupportedDiagnostics

Returns a set of descriptors for the diagnostics that this analyzer is capable of producing.

public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; }

Property Value

ImmutableArray<DiagnosticDescriptor>

Methods

Initialize(AnalysisContext)

Called once at session start to register actions in the analysis context.

public override void Initialize(AnalysisContext context)

Parameters

context AnalysisContext