| Top |
| IdeSourceLocation * | ide_source_location_ref () |
| void | ide_source_location_unref () |
| IdeSourceLocation * | ide_source_location_new () |
| guint | ide_source_location_get_line () |
| guint | ide_source_location_get_line_offset () |
| guint | ide_source_location_get_offset () |
| IdeFile * | ide_source_location_get_file () |
| IdeUri * | ide_source_location_get_uri () |
IdeSourceLocation *
ide_source_location_ref (IdeSourceLocation *self);
Increments the reference count of self
by one.
void
ide_source_location_unref (IdeSourceLocation *self);
Decrements the reference count of self
by one. If the reference count
reaches zero, then the structure is freed.
IdeSourceLocation * ide_source_location_new (IdeFile *file,guint line,guint line_offset,guint offset);
Creates a new IdeSourceLocation, using the file, line, column, and character offset provided.
file |
an IdeFile |
|
line |
the line number starting from zero |
|
line_offset |
the character offset within the line |
|
offset |
the character offset in the file |
guint
ide_source_location_get_line (IdeSourceLocation *self);
Retrieves the target line number starting from 0.
guint
ide_source_location_get_line_offset (IdeSourceLocation *self);
Retrieves the character offset within the line.
guint
ide_source_location_get_offset (IdeSourceLocation *self);
Retrieves the character offset within the file.
IdeFile *
ide_source_location_get_file (IdeSourceLocation *self);
The file represented by this source location.