Method

IdeDiagnosticsforeach_line_in_range

Declaration

void
ide_diagnostics_foreach_line_in_range (
  IdeDiagnostics* self,
  GFile* file,
  guint begin_line,
  guint end_line,
  IdeDiagnosticsLineCallback callback,
  gpointer user_data
)

Description

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.

Parameters

file

Type: GFile

A GFile.

The data is owned by the caller of the method.
begin_line

Type: guint

The starting line.

end_line

Type: guint

The ending line.

callback

Type: IdeDiagnosticsLineCallback

A callback to execute for each matching line.

user_data

Type: gpointer

User data for callback.

The argument can be NULL.
The data is owned by the caller of the method.