public const string DirectConstructionDiagnosticId = "FE0300"Diagnostic ID reported when a non-initial [Typestate] type is constructed outside a state transition.
All Types / Ferrous.States
public sealed class TypestateAnalyzer : DiagnosticAnalyzer
Roslyn diagnostic analyzer that enforces linear typestate protocols declared with [Typestate] and [ConsumesSelf].
public const string DirectConstructionDiagnosticId = "FE0300"Diagnostic ID reported when a non-initial [Typestate] type is constructed outside a state transition.
public const string MissingConsumesSelfDiagnosticId = "FE0301"Diagnostic ID reported when a transition method between [Typestate] types omits [ConsumesSelf].
public const string DiscardedTransitionDiagnosticId = "FE0302"Diagnostic ID reported when the resulting state of a [ConsumesSelf] transition is discarded.
public const string LeakedTypestateDiagnosticId = "FE0303"Diagnostic ID reported when a non-terminal [Typestate] local falls out of scope without transitioning, being consumed, or being returned.
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnosticspublic override void Initialize(AnalysisContext context)