Skip to content

Commit 704e9fc

Browse files
committed
[IDE] Fix access control set completion as a declaration item
1 parent 3bb2da0 commit 704e9fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Parse/ParseDecl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2911,9 +2911,9 @@ ParserStatus Parser::parseNewDeclAttribute(DeclAttributes &Attributes,
29112911
if (CodeCompletionCallbacks) {
29122912
CodeCompletionCallbacks->completeDeclAttrParam(
29132913
ParameterizedDeclAttributeKind::AccessControl, 0, false);
2914+
consumeToken(tok::code_complete);
29142915
}
2915-
consumeToken(tok::code_complete);
2916-
return makeParserCodeCompletionStatus();
2916+
return makeParserSuccess();
29172917
}
29182918

29192919
// Parse the subject.

0 commit comments

Comments
 (0)