Example #1
0
// Retrieve the source location of the given token.
func (tu TranslationUnit) TokenLocation(t Token) SourceLocation {
	return SourceLocation{C.clang_getTokenLocation(tu.c, t.c)}
}
Example #2
0
/**
 * \brief Retrieve the source location of the given token.
 */
func (tu TranslationUnit) TokenLocation(tok Token) SourceLocation {
	o := C.clang_getTokenLocation(tu.c, tok.c)
	return SourceLocation{o}
}