コード例 #1
0
ファイル: completionstring_gen.go プロジェクト: go-clang/v3.4
/*
	Determine the kind of a particular chunk within a completion string.

	Parameter completion_string the completion string to query.

	Parameter chunk_number the 0-based index of the chunk in the completion string.

	Returns the kind of the chunk at the index chunk_number.
*/
func (cs CompletionString) ChunkKind(chunkNumber uint32) CompletionChunkKind {
	return CompletionChunkKind(C.clang_getCompletionChunkKind(cs.c, C.uint(chunkNumber)))
}
コード例 #2
0
ファイル: complete.go プロジェクト: zimmski/go-clang
/**
 * \brief Determine the kind of a particular chunk within a completion string.
 *
 * \param completion_string the completion string to query.
 *
 * \param chunk_number the 0-based index of the chunk in the completion string.
 *
 * \returns the kind of the chunk at the index \c chunk_number.
 */
func (cs CompletionChunk) Kind() CompletionChunkKind {
	return CompletionChunkKind(C.clang_getCompletionChunkKind(cs.cs, cs.number))
}