Ferrous API Reference

All Types / Ferrous.Ownership

class OwnershipAnalyzer

public sealed class OwnershipAnalyzer : DiagnosticAnalyzer

Flow-sensitive Roslyn diagnostic analyzer built on Roslyn's ControlFlowGraph that enforces affine move semantics for [Consuming] parameters and [ConsumesSelf] methods.

Constants

public const string UseAfterMoveDiagnosticId = "FE0200"

Diagnostic ID reported when a value is definitely used after being moved/consumed.

public const string UseAfterPossibleMoveDiagnosticId = "FE0201"

Diagnostic ID reported when a value may have been moved on a preceding branch or loop iteration.

Properties

public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics

Methods

public override void Initialize(AnalysisContext context)