DiagnosticsLogger Module
Types and nested modules
Type/Module | Description |
Literal build phase subcategory strings. |
|
|
|
|
|
|
|
Closed enumeration of build phases. |
|
Represents a DiagnosticsLogger that captures all diagnostics, optionally formatting them eagerly. |
|
This represents the global state established as each task function runs as part of the build. Use to reset error and warning handlers. |
|
|
|
A diagnostic that is raised when enabled manually, or by default with a language feature |
|
Represents the style being used to format errors |
|
|
|
Represents a diagnostic exeption whose text comes via SR.* |
|
Represents a capability to log diagnostics |
|
Thread statics for the installed diagnostic logger |
|
Represnts an early exit from parsing, checking etc, for example because 'maxerrors' has been reached. |
|
|
|
|
|
|
|
|
|
|
|
The result type of a computational modality to collect warnings and possibly fail |
|
|
|
|
|
Thrown when immediate, local error recovery is not possible. This indicates we've reported an error but need to make a non-local transfer of control. Error recovery may catch this and continue (see 'errorRecovery') The exception that caused the report is carried as data because in some situations (LazyWithContext) we may need to re-report the original error when a lazy thunk is re-evaluated. |
|
|
|
An exiter that raises StopProcessingException if Exit is called, saving the exit code in ExitCode. |
|
Thrown when we stop processing the F# Interactive entry or #load. |
|
|
|
Indicates whether a language feature check should be skipped. Typically used in recursive functions where we don't want repeated recursive calls to raise the same diagnostic multiple times. |
|
|
|
|
|
|
|
|
|
|
|
|
|
Thrown when we want to add some range information to a .NET exception |
Functions and values
Function or value |
Description
|
|
Represents a DiagnosticsLogger that ignores diagnostics and asserts
|
Full Usage:
AtLeastOne2D f xs ys
Parameters:
'T -> 'b -> OperationResult<bool>
xs : 'T list
ys : 'b list
Returns: OperationResult<bool>
Modifiers: inline Type parameters: 'T, 'b |
|
Full Usage:
AtLeastOneD f l
Parameters:
'T -> OperationResult<bool>
l : 'T list
Returns: OperationResult<bool>
Modifiers: inline Type parameters: 'T |
|
|
|
Full Usage:
CheckNoErrorsAndGetWarnings res
Parameters:
OperationResult<'T>
Returns: (exn list * 'T) option
|
|
|
|
|
|
|
Represents a DiagnosticsLogger that discards diagnostics
|
|
Creates a diagnostic exeption whose text comes via SR.*
|
Full Usage:
ErrorD err
Parameters:
exn
Returns: OperationResult<'T>
Modifiers: inline Type parameters: 'T |
|
Full Usage:
ErrorEnabledWithLanguageFeature (arg1, arg2, arg3)
Parameters:
int * string
arg1 : range
arg2 : bool
Returns: exn
|
Creates a DiagnosticEnabledWithLanguageFeature whose text comes via SR.*
|
Full Usage:
ErrorWithSuggestions (arg1, arg2, arg3, arg4)
Parameters:
int * string
arg1 : range
arg2 : string
arg3 : Suggestions
Returns: exn
|
Creates a DiagnosticWithSuggestions whose text comes via SR.*
|
Full Usage:
Iterate2D f xs ys
Parameters:
'T -> 'b -> OperationResult<unit>
xs : 'T list
ys : 'b list
Returns: OperationResult<unit>
|
Stop on first error. Accumulate warnings and continue.
|
Full Usage:
IterateD f xs
Parameters:
'T -> OperationResult<unit>
xs : 'T list
Returns: OperationResult<unit>
|
Stop on first error. Accumulate warnings and continue.
|
Full Usage:
IterateIdxD f xs
Parameters:
int -> 'T -> OperationResult<unit>
xs : 'T list
Returns: OperationResult<unit>
|
|
Full Usage:
MapD f xs
Parameters:
'T -> OperationResult<'b>
xs : 'T list
Returns: OperationResult<'b list>
|
|
Full Usage:
MapReduce2D mapper zero reducer xs ys
Parameters:
'T -> 'T2 -> OperationResult<'c>
zero : 'c
reducer : 'c -> 'c -> 'c
xs : 'T list
ys : 'T2 list
Returns: OperationResult<'c>
Modifiers: inline Type parameters: 'T, 'T2, 'c |
|
Full Usage:
MapReduceD mapper zero reducer l
Parameters:
'T -> OperationResult<'b>
zero : 'b
reducer : 'b -> 'b -> 'b
l : 'T list
Returns: OperationResult<'b>
Modifiers: inline Type parameters: 'T, 'b |
|
Full Usage:
NewlineifyErrorString message
Parameters:
string
Returns: string
|
|
|
|
Full Usage:
NormalizeErrorString text
Parameters:
string
Returns: string
|
fixes given string by replacing all control chars with spaces. NOTE: newlines are recognized and replaced with stringThatIsAProxyForANewlineInFlatErrors (ASCII 29, the 'group separator'), which is decoded by the IDE with 'NewlineifyErrorString' back into newlines, so that multi-line errors can be displayed in QuickInfo
|
Full Usage:
OptionD f xs
Parameters:
'T -> OperationResult<unit>
xs : 'T option
Returns: OperationResult<unit>
|
|
|
An exiter that quits the process if Exit is called.
|
|
|
Full Usage:
RepeatWhileD nDeep body
Parameters:
int
body : int -> OperationResult<bool>
Returns: OperationResult<unit>
|
|
Full Usage:
ReportWarnings warns
Parameters:
'a list
|
|
Full Usage:
ResultD x
Parameters:
'T
Returns: OperationResult<'T>
Modifiers: inline Type parameters: 'T |
|
|
|
Full Usage:
SetThreadDiagnosticsLoggerNoUnwind diagnosticsLogger
Parameters:
DiagnosticsLogger
|
|
Full Usage:
StopProcessing
Returns: exn
|
|
Full Usage:
TryD f g
Parameters:
unit -> OperationResult<'T>
g : exn -> OperationResult<'T>
Returns: OperationResult<'T>
|
|
|
NOTE: The change will be undone when the returned "unwind" object disposes
|
Full Usage:
UseDiagnosticsLogger newLogger
Parameters:
DiagnosticsLogger
Returns: IDisposable
|
|
Full Usage:
UseTransformedDiagnosticsLogger transformer
Parameters:
DiagnosticsLogger -> DiagnosticsLogger
Returns: IDisposable
|
NOTE: The change will be undone when the returned "unwind" object disposes
|
|
|
Full Usage:
WhileD gd body
Parameters:
unit -> bool
body : unit -> OperationResult<unit>
Returns: OperationResult<unit>
|
|
Full Usage:
bind f res
Parameters:
'T -> OperationResult<'b>
res : OperationResult<'T>
Returns: OperationResult<'b>
Modifiers: inline Type parameters: 'T, 'b |
The bind in the monad. Stop on first error. Accumulate warnings and continue.
|
Full Usage:
checkLanguageFeatureAndRecover langVersion langFeature m
Parameters:
LanguageVersion
langFeature : LanguageFeature
m : range
|
|
Full Usage:
checkLanguageFeatureError langVersion langFeature m
Parameters:
LanguageVersion
langFeature : LanguageFeature
m : range
|
|
Full Usage:
conditionallySuppressErrorReporting cond f
Parameters:
bool
f : unit -> 'T
Returns: 'T
|
|
|
|
|
|
Full Usage:
diagnosticSink (diagnostic, severity)
Parameters:
PhasedDiagnostic
severity : FSharpDiagnosticSeverity
|
|
Full Usage:
error exn
Parameters:
exn
Returns: 'T
|
Reports an error and raises a ReportedError exception
|
Full Usage:
errorR exn
Parameters:
exn
|
Reports an error diagnostic and continues
|
|
|
Full Usage:
errorRecoveryNoRange exn
Parameters:
exn
|
|
|
|
Full Usage:
findOriginalException err
Parameters:
exn
Returns: exn
|
|
Full Usage:
informationalWarning exn
Parameters:
exn
|
Reports an informational diagnostic
|
Full Usage:
languageFeatureError langVersion langFeature m
Parameters:
LanguageVersion
langFeature : LanguageFeature
m : range
Returns: exn
|
|
Full Usage:
languageFeatureNotSupportedInLibraryError langFeature m
Parameters:
LanguageFeature
m : range
Returns: 'T
|
|
|
|
|
|
|
|
|
|
Full Usage:
protectAssemblyExploration dflt f
Parameters:
'T
f : unit -> 'T
Returns: 'T
Modifiers: inline Type parameters: 'T |
|
Full Usage:
protectAssemblyExplorationF dflt f
Parameters:
string * string -> 'T
f : unit -> 'T
Returns: 'T
Modifiers: inline Type parameters: 'T |
|
Full Usage:
protectAssemblyExplorationNoReraise dflt1 dflt2 f
Parameters:
'T
dflt2 : 'T
f : unit -> 'T
Returns: 'T
Modifiers: inline Type parameters: 'T |
|
|
|
|
|
|
|
Full Usage:
suppressErrorReporting f
Parameters:
unit -> 'T
Returns: 'T
|
|
|
|
Full Usage:
tryCheckLanguageFeatureAndRecover langVersion langFeature m
Parameters:
LanguageVersion
langFeature : LanguageFeature
m : range
Returns: bool
|
|
Full Usage:
tryLanguageFeatureErrorOption langVersion langFeature m
Parameters:
LanguageVersion
langFeature : LanguageFeature
m : range
Returns: exn option
|
|
|
|
Full Usage:
warning exn
Parameters:
exn
|
Reports a warning diagnostic
|
Active patterns
Active pattern |
Description
|
Full Usage:
(|StopProcessing|_|) exn
Parameters:
exn
Returns: unit voption
|
|