Top | ![]() |
![]() |
![]() |
![]() |
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.
Flags: Read
Default value: FALSE
“has-warnings”
property“has-warnings” gboolean
If there are any warnings in the diagnostic set.
Flags: Read
Default value: FALSE
“n-errors”
property“n-errors” guint
Number of errors in diagnostic set.
Flags: Read
Default value: 0
“n-warnings”
property“n-warnings” guint
Number of warnings in diagnostic set.
Flags: Read
Default value: 0