Top | ![]() |
![]() |
![]() |
![]() |
void | (*IdeDiagnosticsLineCallback) () |
IdeDiagnostics * | ide_diagnostics_new () |
IdeDiagnostics * | ide_diagnostics_new_from_array () |
void | ide_diagnostics_add () |
void | ide_diagnostics_take () |
void | ide_diagnostics_merge () |
guint | ide_diagnostics_get_n_errors () |
gboolean | ide_diagnostics_get_has_errors () |
guint | ide_diagnostics_get_n_warnings () |
gboolean | ide_diagnostics_get_has_warnings () |
void | ide_diagnostics_foreach_line_in_range () |
IdeDiagnostic * | ide_diagnostics_get_diagnostic_at_line () |
#define | ide_diagnostics_get_size() |
gboolean | has-errors | Read |
gboolean | has-warnings | Read |
guint | n-errors | Read |
guint | n-warnings | Read |
void (*IdeDiagnosticsLineCallback) (guint line
,IdeDiagnosticSeverity severity
,gpointer user_data
);
This function prototype is used to notify a caller of every line that has a diagnostic, and the most severe IdeDiagnosticSeverity for that line.
line |
the line number, starting from 0 |
|
severity |
the severity of the diagnostic |
|
user_data |
user data provided with callback |
Since: 3.32
IdeDiagnostics *
ide_diagnostics_new_from_array (GPtrArray *array
);
Since: 3.32
void ide_diagnostics_take (IdeDiagnostics *self
,IdeDiagnostic *diagnostic
);
gboolean
ide_diagnostics_get_has_warnings (IdeDiagnostics *self
);
void ide_diagnostics_foreach_line_in_range (IdeDiagnostics *self
,GFile *file
,guint begin_line
,guint end_line
,IdeDiagnosticsLineCallback callback
,gpointer user_data
);
This function calls callback
for every line with diagnostics between
begin_line
and end_line
. This is useful when drawing information about
diagnostics in an editor where a known number of lines are visible.
self |
||
file |
a GFile |
|
begin_line |
the starting line |
|
end_line |
the ending line |
|
callback |
a callback to execute for each matching line. |
[scope call] |
user_data |
user data for |
Since: 3.32
IdeDiagnostic * ide_diagnostics_get_diagnostic_at_line (IdeDiagnostics *self
,GFile *file
,guint line
);
Locates an IdeDiagnostic in file
at line
.
Since: 3.32
“has-errors”
property “has-errors” gboolean
If there are any errors in the diagnostic set.
Owner: IdeDiagnostics
Flags: Read
Default value: FALSE
“has-warnings”
property “has-warnings” gboolean
If there are any warnings in the diagnostic set.
Owner: IdeDiagnostics
Flags: Read
Default value: FALSE
“n-errors”
property “n-errors” guint
Number of errors in diagnostic set.
Owner: IdeDiagnostics
Flags: Read
Default value: 0