| Top |
| IdeDiagnostic * | ide_diagnostic_new () |
| IdeDiagnostic * | ide_diagnostic_new_from_variant () |
| guint | ide_diagnostic_hash () |
| IdeLocation * | ide_diagnostic_get_location () |
| const gchar * | ide_diagnostic_get_text () |
| IdeDiagnosticSeverity | ide_diagnostic_get_severity () |
| GFile * | ide_diagnostic_get_file () |
| gchar * | ide_diagnostic_get_text_for_display () |
| const gchar * | ide_diagnostic_severity_to_string () |
| guint | ide_diagnostic_get_n_ranges () |
| IdeRange * | ide_diagnostic_get_range () |
| guint | ide_diagnostic_get_n_fixits () |
| IdeTextEdit * | ide_diagnostic_get_fixit () |
| void | ide_diagnostic_add_range () |
| void | ide_diagnostic_take_range () |
| void | ide_diagnostic_add_fixit () |
| void | ide_diagnostic_take_fixit () |
| gboolean | ide_diagnostic_compare () |
| GVariant * | ide_diagnostic_to_variant () |
| gchar * | display-text | Read |
| IdeLocation * | location | Read / Write / Construct Only |
| IdeDiagnosticSeverity | severity | Read / Write / Construct Only |
| gchar * | text | Read / Write / Construct Only |
| #define | IDE_TYPE_DIAGNOSTIC |
| enum | IdeDiagnosticSeverity |
| struct | IdeDiagnosticClass |
| IdeDiagnostic |
IdeDiagnostic * ide_diagnostic_new (IdeDiagnosticSeverity severity,const gchar *message,IdeLocation *location);
IdeDiagnostic *
ide_diagnostic_new_from_variant (GVariant *variant);
Creates a new GVariant using the data contained in variant
.
If variant
is NULL or Upon failure, NULL is returned.
Since: 3.32
IdeLocation *
ide_diagnostic_get_location (IdeDiagnostic *self);
Gets the location of the diagnostic.
See also: ide_diagnostic_get_range().
Since: 3.32
IdeDiagnosticSeverity
ide_diagnostic_get_severity (IdeDiagnostic *self);
GFile *
ide_diagnostic_get_file (IdeDiagnostic *self);
Gets the file containing the diagnostic, if any.
Since: 3.32
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.
Since: 3.32
const gchar *
ide_diagnostic_severity_to_string (IdeDiagnosticSeverity severity);
Returns a string suitable to represent the diagnsotic severity.
Since: 3.32
IdeRange * 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_n_ranges().
Since: 3.32
IdeTextEdit * 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_n_fixits().
Since: 3.32
void ide_diagnostic_add_range (IdeDiagnostic *self,IdeRange *range);
Adds a source range to the diagnostic.
Since: 3.32
void ide_diagnostic_take_range (IdeDiagnostic *self,IdeRange *range);
Adds a source range to the diagnostic, but does not increment the
reference count of range
.
Since: 3.32
void ide_diagnostic_add_fixit (IdeDiagnostic *self,IdeTextEdit *fixit);
Adds a source fixit to the diagnostic.
Since: 3.32
void ide_diagnostic_take_fixit (IdeDiagnostic *self,IdeTextEdit *fixit);
Adds a source fixit to the diagnostic, but does not increment the
reference count of fixit
.
Since: 3.32
GVariant *
ide_diagnostic_to_variant (IdeDiagnostic *self);
Creates a GVariant to represent the diagnostic. This can be useful when working in subprocesses to serialize the diagnostic.
This function will never return a floating variant.
Since: 3.32
“display-text” property “display-text” gchar *
The text formatted for display.
Flags: Read
Default value: NULL
“location” property“location” IdeLocation *
The location of the diagnostic.
Flags: Read / Write / Construct Only
“severity” property“severity” IdeDiagnosticSeverity
The severity of the diagnostic.
Flags: Read / Write / Construct Only
Default value: IDE_DIAGNOSTIC_IGNORED