Top | ![]() |
![]() |
![]() |
![]() |
IdeSourceLocation * | ide_diagnostic_get_location () |
guint | ide_diagnostic_get_num_fixits () |
IdeFixit * | ide_diagnostic_get_fixit () |
guint | ide_diagnostic_get_num_ranges () |
IdeSourceRange * | ide_diagnostic_get_range () |
IdeDiagnosticSeverity | ide_diagnostic_get_severity () |
const gchar * | ide_diagnostic_get_text () |
gchar * | ide_diagnostic_get_text_for_display () |
IdeDiagnostic * | ide_diagnostic_ref () |
void | ide_diagnostic_unref () |
const gchar * | ide_diagnostic_severity_to_string () |
IdeSourceLocation *
ide_diagnostic_get_location (IdeDiagnostic *self
);
Gets the location of a diagnostic.
IdeFixit * ide_diagnostic_get_fixit (IdeDiagnostic *self
,guint index
);
Gets the fixit denoted by index
. This value should be less than the value
returned from ide_diagnostic_get_num_fixits()
.
IdeSourceRange * ide_diagnostic_get_range (IdeDiagnostic *self
,guint index
);
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()
.
IdeDiagnosticSeverity
ide_diagnostic_get_severity (IdeDiagnostic *self
);
gchar *
ide_diagnostic_get_text_for_display (IdeDiagnostic *self
);
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.
const gchar *
ide_diagnostic_severity_to_string (IdeDiagnosticSeverity severity
);