@@ -396,7 +396,7 @@ ParserResult<AvailableAttr> Parser::parseExtendedAvailabilitySpecList(
396396 .highlight (SourceRange (ArgumentLoc));
397397 if (Tok.is (tok::code_complete) && CodeCompletionCallbacks) {
398398 CodeCompletionCallbacks->completeDeclAttrParam (
399- CustomSyntaxAttributeKind ::Available, ParamIndex,
399+ ParameterizedDeclAttributeKind ::Available, ParamIndex,
400400 /* HasLabel=*/ false );
401401 consumeToken (tok::code_complete);
402402 } else {
@@ -737,7 +737,7 @@ bool Parser::parseAvailability(
737737 !(Tok.isAnyOperator () && Tok.getText () == " *" )) {
738738 if (Tok.is (tok::code_complete) && CodeCompletionCallbacks) {
739739 CodeCompletionCallbacks->completeDeclAttrParam (
740- CustomSyntaxAttributeKind ::Available, 0 , /* HasLabel=*/ false );
740+ ParameterizedDeclAttributeKind ::Available, 0 , /* HasLabel=*/ false );
741741 consumeToken (tok::code_complete);
742742 }
743743 diagnose (Tok.getLoc (), diag::attr_availability_platform, AttrName)
@@ -993,7 +993,7 @@ Parser::parseStorageRestrictionsAttribute(SourceLoc AtLoc, SourceLoc Loc) {
993993 }
994994 }
995995 this ->CodeCompletionCallbacks ->completeDeclAttrParam (
996- CustomSyntaxAttributeKind ::StorageRestrictions,
996+ ParameterizedDeclAttributeKind ::StorageRestrictions,
997997 static_cast <int >(completionKind), /* HasLabel=*/ false );
998998 }
999999 } else if (parseIdentifier (propertyName, propertyNameLoc,
@@ -1026,7 +1026,7 @@ Parser::parseStorageRestrictionsAttribute(SourceLoc AtLoc, SourceLoc Loc) {
10261026 if (consumeIf (tok::code_complete)) {
10271027 if (this ->CodeCompletionCallbacks ) {
10281028 this ->CodeCompletionCallbacks ->completeDeclAttrParam (
1029- CustomSyntaxAttributeKind ::StorageRestrictions,
1029+ ParameterizedDeclAttributeKind ::StorageRestrictions,
10301030 static_cast <int >(StorageRestrictionsCompletionKind::Label),
10311031 /* HasLabel=*/ false );
10321032 }
@@ -2214,11 +2214,11 @@ std::optional<MacroRole> getMacroRole(StringRef roleName) {
22142214 .Default (std::nullopt );
22152215}
22162216
2217- static CustomSyntaxAttributeKind getCustomSyntaxAttributeKind (bool isAttached) {
2217+ static ParameterizedDeclAttributeKind getParameterizedDeclAttributeKind (bool isAttached) {
22182218 if (isAttached) {
2219- return CustomSyntaxAttributeKind ::AttachedMacro;
2219+ return ParameterizedDeclAttributeKind ::AttachedMacro;
22202220 } else {
2221- return CustomSyntaxAttributeKind ::FreestandingMacro;
2221+ return ParameterizedDeclAttributeKind ::FreestandingMacro;
22222222 }
22232223}
22242224
@@ -2265,13 +2265,13 @@ Parser::parseMacroRoleAttribute(
22652265 sawRole = true ;
22662266 if (this ->CodeCompletionCallbacks ) {
22672267 this ->CodeCompletionCallbacks ->completeDeclAttrParam (
2268- getCustomSyntaxAttributeKind (isAttached), 0 ,
2268+ getParameterizedDeclAttributeKind (isAttached), 0 ,
22692269 /* HasLabel=*/ false );
22702270 }
22712271 } else if (!sawNames) {
22722272 if (this ->CodeCompletionCallbacks ) {
22732273 this ->CodeCompletionCallbacks ->completeDeclAttrParam (
2274- getCustomSyntaxAttributeKind (isAttached), 1 ,
2274+ getParameterizedDeclAttributeKind (isAttached), 1 ,
22752275 /* HasLabel=*/ false );
22762276 }
22772277 }
@@ -2373,7 +2373,7 @@ Parser::parseMacroRoleAttribute(
23732373 status.setHasCodeCompletionAndIsError ();
23742374 if (this ->CodeCompletionCallbacks ) {
23752375 this ->CodeCompletionCallbacks ->completeDeclAttrParam (
2376- getCustomSyntaxAttributeKind (isAttached), 1 , /* HasLabel=*/ true );
2376+ getParameterizedDeclAttributeKind (isAttached), 1 , /* HasLabel=*/ true );
23772377 }
23782378 } else if (parseIdentifier (introducedNameKind, introducedNameKindLoc,
23792379 diag::macro_attribute_unknown_argument_form,
0 commit comments