Example #1
0
// Retrieve a source range that covers the given token.
func (tu TranslationUnit) TokenExtent(t Token) SourceRange {
	return SourceRange{C.clang_getTokenExtent(tu.c, t.c)}
}
Example #2
0
/**
 * \brief Retrieve a source range that covers the given token.
 */
func (tu TranslationUnit) TokenExtent(tok Token) SourceRange {
	o := C.clang_getTokenExtent(tu.c, tok.c)
	return SourceRange{o}
}