Remove __consuming from CodeCompletion

Set the UserInaccessible bit to remove __consuming from code
completion until we commit to a real keyword.

rdar://40828289
This commit is contained in:
Robert Widmann
2018-06-10 14:18:30 -07:00
parent 47b93abb0c
commit df698d2ee8
3 changed files with 6 additions and 9 deletions

View File

@@ -4845,6 +4845,11 @@ static void addDeclKeywords(CodeCompletionResultSink &Sink) {
// Treat keywords that could be the start of a pattern specially.
return;
}
// FIXME: __consuming should not appear in CodeCompletion until it is
// finalized in a language proposal.
if (Name == "__consuming")
return;
CodeCompletionResultBuilder Builder(
Sink, CodeCompletionResult::ResultKind::Keyword,
SemanticContextKind::None, {});