FSharpDiagnostic Type
Represents a diagnostic produced by the F# compiler
Instance members
Instance member |
Description
|
Gets the end position for the diagnostic
|
|
Full Usage:
this.EndColumn
Returns: int
|
Gets the end column for the diagnostic
|
Full Usage:
this.EndLine
Returns: int
|
Gets the end line for the diagnostic
|
Full Usage:
this.ErrorNumber
Returns: int
|
Gets the number for the diagnostic
|
Full Usage:
this.ErrorNumberPrefix
Returns: string
|
Gets the number prefix for the diagnostic, usually "FS" but may differ for analyzers
|
Full Usage:
this.ErrorNumberText
Returns: string
|
Gets the full error number text e.g "FS0031"
|
|
Gets the contextually-relevant data to each particular diagnostic for things like code fixes
|
Full Usage:
this.FileName
Returns: string
|
Gets the file name for the diagnostic
|
Full Usage:
this.Message
Returns: string
|
Gets the message for the diagnostic
|
|
Gets the range for the diagnostic
|
|
Gets the severity for the diagnostic
|
|
Gets the start position for the diagnostic
|
Full Usage:
this.StartColumn
Returns: int
|
Gets the start column for the diagnostic
|
Full Usage:
this.StartLine
Returns: int
|
Gets the start line for the diagnostic
|
Full Usage:
this.Subcategory
Returns: string
|
Gets the sub-category for the diagnostic
|
Static members
Static member |
Description
|
Full Usage:
FSharpDiagnostic.Create(severity, message, number, range, ?numberPrefix, ?subcategory)
Parameters:
FSharpDiagnosticSeverity
message : string
number : int
range : range
?numberPrefix : string
?subcategory : string
Returns: FSharpDiagnostic
|
Creates a diagnostic, e.g. for reporting from an analyzer
|
Full Usage:
FSharpDiagnostic.NewlineifyErrorString(message)
Parameters:
string
Returns: string
|
Newlines are recognized and replaced with (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:
FSharpDiagnostic.NormalizeErrorString(text)
Parameters:
string
Returns: string
|
Newlines are recognized and replaced with (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
|