DiagnosticTools Class

Definition

public static class DiagnosticTools
type DiagnosticTools = class
Public Module DiagnosticTools
Inheritance
DiagnosticTools

Methods

Copy(Diagnostic)

Returns a new Diagnostic, making a deep copy of message (in particular a deep copy of it's Range).

ErrorType(ErrorCode[])

Returns a function that returns true if the ErrorType(ErrorCode[]) of the given Diagnostic exists in types.

Filter(IEnumerable<Diagnostic>, Func<Diagnostic,Boolean>, Int32)

Extracts all elements satisfying condition and which start at a line that is larger or equal to lowerBound.

Filter(IEnumerable<Diagnostic>, Func<Diagnostic,Boolean>, Int32, Int32)

Extracts all elements satisfying condition and which start at a line that is larger or equal to lowerBound and smaller than upperBound.

Filter(IEnumerable<Diagnostic>, Int32)

Extracts all elements which start at a line that is larger or equal to lowerBound.

Filter(IEnumerable<Diagnostic>, Int32, Int32)

Extracts all elements which start at a line that is larger or equal to lowerBound and smaller than upperBound.

IsError(Diagnostic)

Returns true if m is an error.

IsInformation(Diagnostic)

Returns true if m is an information.

IsWarning(Diagnostic)

Returns true if m is a warning.

SymbolPosition(QsLocation, QsNullable<Position>, Range)

Returns the zero-based line and character index indicating the position of a symbol in the file.

WarningType(WarningCode[])

Returns a function that returns true if the WarningType(WarningCode[]) of the given Diagnostic exists in types.

WithLineNumOffset(Diagnostic, Int32)

Returns a copy of diagnostic with offset added to the line numbers.

Applies to