Пример #1
0
/*
	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
/**
 * \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))
}