mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user