Skip to content

Commit 9767cc1

Browse files
committed
[IDE] Remove duplicate code & add parameter label
1 parent c871e49 commit 9767cc1

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

lib/Parse/ParseDecl.cpp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2837,7 +2837,7 @@ ParserStatus Parser::parseNewDeclAttribute(DeclAttributes &Attributes,
28372837
[&] () {
28382838
if (CodeCompletionCallbacks) {
28392839
CodeCompletionCallbacks->completeDeclAttrParam(
2840-
ParameterizedDeclAttributeKind::Unowned, 0, false);
2840+
ParameterizedDeclAttributeKind::Unowned, 0, /*HasLabel=*/false);
28412841
consumeToken(tok::code_complete);
28422842
}
28432843
})
@@ -2929,15 +2929,6 @@ ParserStatus Parser::parseNewDeclAttribute(DeclAttributes &Attributes,
29292929

29302930
const Token &Tok2 = peekToken();
29312931

2932-
if (Tok.is(tok::code_complete)) {
2933-
if (CodeCompletionCallbacks) {
2934-
CodeCompletionCallbacks->completeDeclAttrParam(
2935-
ParameterizedDeclAttributeKind::AccessControl, 0, false);
2936-
}
2937-
consumeToken(tok::code_complete);
2938-
return makeParserCodeCompletionStatus();
2939-
}
2940-
29412932
if (Tok2.is(tok::code_complete) && Tok.is(tok::identifier) &&
29422933
!Tok.isContextualDeclKeyword()) {
29432934
consumeToken(tok::identifier);

0 commit comments

Comments
 (0)