Lines Matching refs:Chunk
81 CodeCompletionString::Chunk::Chunk(ChunkKind Kind, const char *Text)
155 CodeCompletionString::Chunk
156 CodeCompletionString::Chunk::CreateText(const char *Text) {
157 return Chunk(CK_Text, Text);
160 CodeCompletionString::Chunk
161 CodeCompletionString::Chunk::CreateOptional(CodeCompletionString *Optional) {
162 Chunk Result;
168 CodeCompletionString::Chunk
169 CodeCompletionString::Chunk::CreatePlaceholder(const char *Placeholder) {
170 return Chunk(CK_Placeholder, Placeholder);
173 CodeCompletionString::Chunk
174 CodeCompletionString::Chunk::CreateInformative(const char *Informative) {
175 return Chunk(CK_Informative, Informative);
178 CodeCompletionString::Chunk
179 CodeCompletionString::Chunk::CreateResultType(const char *ResultType) {
180 return Chunk(CK_ResultType, ResultType);
183 CodeCompletionString::Chunk
184 CodeCompletionString::Chunk::CreateCurrentParameter(
186 return Chunk(CK_CurrentParameter, CurrentParameter);
189 CodeCompletionString::CodeCompletionString(const Chunk *Chunks,
204 Chunk *StoredChunks = reinterpret_cast<Chunk *>(this + 1);
330 sizeof(CodeCompletionString) + sizeof(Chunk) * Chunks.size()
343 Chunks.push_back(Chunk(CodeCompletionString::CK_TypedText, Text));
347 Chunks.push_back(Chunk::CreateText(Text));
351 Chunks.push_back(Chunk::CreateOptional(Optional));
355 Chunks.push_back(Chunk::CreatePlaceholder(Placeholder));
359 Chunks.push_back(Chunk::CreateInformative(Text));
363 Chunks.push_back(Chunk::CreateResultType(ResultType));
368 Chunks.push_back(Chunk::CreateCurrentParameter(CurrentParameter));
373 Chunks.push_back(Chunk(CK, Text));