[CodeCompletion/SourceKit] Consolidate some chunk kinds

Consolidate ThrowsKeyword, RethrowsKeyword, and AsyncKeyword to
EffectsSpecifierKeyword.
Abolish 'key.throwsoffset' and 'key.throwslength' as they aren't used.
This commit is contained in:
Rintaro Ishizaki
2020-12-14 12:25:30 -08:00
parent 5a7af5c673
commit 4286c44e72
10 changed files with 14 additions and 42 deletions

View File

@@ -38,9 +38,7 @@ static std::string toInsertableString(CodeCompletionResult *Result) {
switch (C.getKind()) {
case CodeCompletionString::Chunk::ChunkKind::AccessControlKeyword:
case CodeCompletionString::Chunk::ChunkKind::OverrideKeyword:
case CodeCompletionString::Chunk::ChunkKind::ThrowsKeyword:
case CodeCompletionString::Chunk::ChunkKind::RethrowsKeyword:
case CodeCompletionString::Chunk::ChunkKind::AsyncKeyword:
case CodeCompletionString::Chunk::ChunkKind::EffectsSpecifierKeyword:
case CodeCompletionString::Chunk::ChunkKind::DeclAttrKeyword:
case CodeCompletionString::Chunk::ChunkKind::DeclIntroducer:
case CodeCompletionString::Chunk::ChunkKind::Keyword: