RaiseInFlowAnalyzerModule

PackageAxial.Guardrails
The `RaiseInFlow` analyzer: flags `raise`/`failwith`/`failwithf`/`invalidOp`/`invalidArg` called directly inside a `flow { }` computation expression. A `Flow<'env, 'error, 'value>` already has a typed `'error` channel for expected failures. Reaching for an ordinary F# exception idiom inside `flow { }` is the single most common mistake when writing Axial code for the first time - it's the natural instinct carried over from plain F#/C#, and it silently turns what should be a `'error` value into a defect (`Cause.Die`) instead, which callers matching on the `'error` type never see coming.

Summary

NameSignatureSynopsis
Operations
raiseNamesraiseNames The exception-raising names AXG003 reports; Fast's syntax advice uses the same set.
flowBodyRangesflowBodyRanges ctxThe ranges of every flow { } body in the file, for rules that apply only inside a flow.
rawRangesrawRanges ctxNo description available.
raiseInFlowAnalyzerraiseInFlowAnalyzer ctxNo description available.

Operations

kind:member

raiseNames

raiseNames
Member
The exception-raising names AXG003 reports; Fast's syntax advice uses the same set.

Returns

Set<string>
kind:member

flowBodyRanges

flowBodyRanges ctx
Member
The ranges of every `flow { }` body in the file, for rules that apply only inside a flow.

Parameters

NameTypeDescription
ctxCliContext

Returns

range list
kind:member

rawRanges

rawRanges ctx
Member

Parameters

NameTypeDescription
ctxCliContext

Returns

range list
kind:member

raiseInFlowAnalyzer

raiseInFlowAnalyzer ctx
Member

Parameters

NameTypeDescription
ctxCliContext

Returns

Async<Message list>