Logo fantomas

Validation Module

Functions and values

Function or value Description

invalidatingDiagnostics diagnostics

Full Usage: invalidatingDiagnostics diagnostics

Parameters:
Returns: FSharpParserDiagnostic list

The diagnostics that make source invalid, rather than only whether any of them do: every error, and every warning that is not one of the few `safeToIgnoreWarnings` names. Empty when there is nothing among them Fantomas would refuse.

diagnostics : FSharpParserDiagnostic list
Returns: FSharpParserDiagnostic list

noWarningOrErrorDiagnostics diagnostics

Full Usage: noWarningOrErrorDiagnostics diagnostics

Parameters:
Returns: bool
diagnostics : FSharpParserDiagnostic list
Returns: bool

validateFSharpCode isSignature source

Full Usage: validateFSharpCode isSignature source

Parameters:
    isSignature : bool
    source : string

Returns: Async<ValidationResult>

Parse an input string and report what about it, if anything, Fantomas will not accept.

isSignature : bool
source : string
Returns: Async<ValidationResult>

Type something to start searching.