Ferrous API Reference

All Types / Ferrous.Pedantic

class InterproceduralContractAnalyzer

public sealed class InterproceduralContractAnalyzer : DiagnosticAnalyzer

Inter-procedural Roslyn diagnostic analyzer (FE0421–FE0422) that summarizes same-compilation helper methods via operation blocks and flags transitive throws inside [NoThrow]/Result methods and transitive heap allocations inside [NoAlloc] methods.

Constants

public const string ThrowingHelperCallDiagnosticId = "FE0421"

Diagnostic ID for calling a throwing helper inside a [NoThrow] or Result-returning method.

public const string AllocatingHelperCallDiagnosticId = "FE0422"

Diagnostic ID for calling an allocating helper inside a [NoAlloc] method.

Properties

public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics

Methods

public override void Initialize(AnalysisContext context)