the severity of the diagnostic
the diagnostic message text
the location of the diagnostic
Adds the range to the diagnostic. This allows diagnostic tools to highlight the errored text appropriately.
An #IdeSourceRange.
Gets the fixit denoted by index
. This value should be less than the value
returned from ide_diagnostic_get_num_fixits().
The index of the fixit.
Gets the location of a diagnostic.
Retrieves the range found at index
. It is a programming error to call this
function with a value greater or equal to ide_diagnostic_get_num_ranges().
This creates a new string that is formatted using the diagnostics line number, column, severity, and message text in the format "line:column: severity: message".
This can be convenient when wanting to quickly display a diagnostic such as in a tooltip.
Adds the suggested fixit to the diagnostic while transfering ownership
of fixit
to self
.
An #IdeFixit.
Steals the ownership of range
and adds to the diagnostic.
This saves multiple atomic references of range
which could be expensive
if you are doing lots of diagnostics.
An #IdeSourceRange.
Creates a new diagnostic.
If you want to set a range for the diagnostic, see ide_diagnostic_add_range() or ide_diagnostic_take_range().
the severity of the diagnostic
the diagnostic message text
the location of the diagnostic
Creates a new diagnostic.
If you want to set a range for the diagnostic, see ide_diagnostic_add_range() or ide_diagnostic_take_range().