Beispiel #1
0
/**
 * \brief Retrieve the physical extent of the source construct referenced by
 * the given cursor.
 *
 * The extent of a cursor starts with the file/line/column pointing at the
 * first character within the source construct that the cursor refers to and
 * ends with the last character withinin that source construct. For a
 * declaration, the extent covers the declaration itself. For a reference,
 * the extent covers the location of the reference (e.g., where the referenced
 * entity was actually used).
 */
func (c Cursor) Extent() SourceRange {
	o := C.clang_getCursorExtent(c.c)
	return SourceRange{o}
}
Beispiel #2
0
/*
	Retrieve the physical extent of the source construct referenced by
	the given cursor.

	The extent of a cursor starts with the file/line/column pointing at the
	first character within the source construct that the cursor refers to and
	ends with the last character within that source construct. For a
	declaration, the extent covers the declaration itself. For a reference,
	the extent covers the location of the reference (e.g., where the referenced
	entity was actually used).
*/
func (c Cursor) Extent() SourceRange {
	return SourceRange{C.clang_getCursorExtent(c.c)}
}