Ferrous API Reference

All Types / Ferrous.Annotations

class MustUseCodeFixProvider

public sealed class MustUseCodeFixProvider : CodeFixProvider

Roslyn code fix provider for MustUseAnalyzer.DiagnosticId (FE0001) that inserts an explicit discard (_ = ...).

Constants

public const string EquivalenceKey = "Ferrous.InsertExplicitDiscard"

Equivalence key for the explicit-discard code fix.

Properties

public override ImmutableArray<string> FixableDiagnosticIds

Methods

public override FixAllProvider GetFixAllProvider()
public override async Task RegisterCodeFixesAsync(CodeFixContext context)