[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

@@ -271,12 +271,6 @@ static void getResultStructure(
if (C.is(ChunkKind::BraceStmtWithCursor))
break;
if (C.is(ChunkKind::ThrowsKeyword) ||
C.is(ChunkKind::RethrowsKeyword)) {
structure.throwsRange.begin = textSize;
structure.throwsRange.end = textSize + C.getText().size();
}
if (C.is(ChunkKind::CallParameterBegin)) {
CodeCompletionInfo::ParameterStructure param;