Exemplo n.º 1
0
/** \brief For a cursor that is a reference, retrieve a cursor representing the
 * entity that it references.
 *
 * Reference cursors refer to other entities in the AST. For example, an
 * Objective-C superclass reference cursor refers to an Objective-C class.
 * This function produces the cursor for the Objective-C class from the
 * cursor for the superclass reference. If the input cursor is a declaration or
 * definition, it returns that declaration or definition unchanged.
 * Otherwise, returns the NULL cursor.
 */
func (c Cursor) Referenced() Cursor {
	o := C.clang_getCursorReferenced(c.c)
	return Cursor{o}
}
Exemplo n.º 2
0
/*
	For a cursor that is a reference, retrieve a cursor representing the
	entity that it references.

	Reference cursors refer to other entities in the AST. For example, an
	Objective-C superclass reference cursor refers to an Objective-C class.
	This function produces the cursor for the Objective-C class from the
	cursor for the superclass reference. If the input cursor is a declaration or
	definition, it returns that declaration or definition unchanged.
	Otherwise, returns the NULL cursor.
*/
func (c Cursor) Referenced() Cursor {
	return Cursor{C.clang_getCursorReferenced(c.c)}
}