示例#1
0
/**
 * \brief Retrieve the physical location of the source constructor referenced
 * by the given cursor.
 *
 * The location of a declaration is typically the location of the name of that
 * declaration, where the name of that declaration would occur if it is
 * unnamed, or some keyword that introduces that particular declaration.
 * The location of a reference is where that reference occurs within the
 * source code.
 */
func (c Cursor) Location() SourceLocation {
	o := C.clang_getCursorLocation(c.c)
	return SourceLocation{o}
}
示例#2
0
/*
	Retrieve the physical location of the source constructor referenced
	by the given cursor.

	The location of a declaration is typically the location of the name of that
	declaration, where the name of that declaration would occur if it is
	unnamed, or some keyword that introduces that particular declaration.
	The location of a reference is where that reference occurs within the
	source code.
*/
func (c Cursor) Location() SourceLocation {
	return SourceLocation{C.clang_getCursorLocation(c.c)}
}