mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Gardening] 'throw' is not an expression keyword
Remove the workaround in CodeCompletion for this.
This commit is contained in:
@@ -4887,9 +4887,6 @@ static void addStmtKeywords(CodeCompletionResultSink &Sink, bool MaybeFuncBody)
|
||||
};
|
||||
#define STMT_KEYWORD(kw) AddKeyword(#kw, CodeCompletionKeywordKind::kw_##kw);
|
||||
#include "swift/Syntax/TokenKinds.def"
|
||||
|
||||
// Throw is not marked as a STMT_KEYWORD.
|
||||
AddKeyword("throw", CodeCompletionKeywordKind::kw_throw);
|
||||
}
|
||||
|
||||
static void addLetVarKeywords(CodeCompletionResultSink &Sink) {
|
||||
|
||||
Reference in New Issue
Block a user