@@ -998,8 +998,7 @@ class Parser {
998
998
999
999
// / Parse an #if ... #endif containing only attributes.
1000
1000
ParserStatus parseIfConfigAttributes (
1001
- DeclAttributes &attributes, bool ifConfigsAreDeclAttrs,
1002
- PatternBindingInitializer *initContext);
1001
+ DeclAttributes &attributes, bool ifConfigsAreDeclAttrs);
1003
1002
1004
1003
// / Parse a #error or #warning diagnostic.
1005
1004
ParserResult<PoundDiagnosticDecl> parseDeclPoundDiagnostic ();
@@ -1022,13 +1021,6 @@ class Parser {
1022
1021
ParserStatus parseDeclAttributeList (DeclAttributes &Attributes,
1023
1022
bool IfConfigsAreDeclAttrs = false );
1024
1023
1025
- // / Parse the optional attributes before a declaration.
1026
- // /
1027
- // / This is the inner loop, which can be called recursively.
1028
- ParserStatus parseDeclAttributeList (DeclAttributes &Attributes,
1029
- bool IfConfigsAreDeclAttrs,
1030
- PatternBindingInitializer *initContext);
1031
-
1032
1024
// / Parse the optional attributes before a closure declaration.
1033
1025
ParserStatus parseClosureDeclAttributeList (DeclAttributes &Attributes);
1034
1026
@@ -1163,7 +1155,6 @@ class Parser {
1163
1155
// / Parse a specific attribute.
1164
1156
ParserStatus parseDeclAttribute (DeclAttributes &Attributes, SourceLoc AtLoc,
1165
1157
SourceLoc AtEndLoc,
1166
- PatternBindingInitializer *&initContext,
1167
1158
bool isFromClangAttribute = false );
1168
1159
1169
1160
bool isCustomAttributeArgument ();
@@ -1172,13 +1163,7 @@ class Parser {
1172
1163
// / Parse a custom attribute after the initial '@'.
1173
1164
// /
1174
1165
// / \param atLoc The location of the already-parsed '@'.
1175
- // /
1176
- // / \param initContext A reference to the initializer context used
1177
- // / for the set of custom attributes. This should start as nullptr, and
1178
- // / will get filled in by this function. The same variable should be provided
1179
- // / for every custom attribute within the same attribute list.
1180
- ParserResult<CustomAttr> parseCustomAttribute (
1181
- SourceLoc atLoc, PatternBindingInitializer *&initContext);
1166
+ ParserResult<CustomAttr> parseCustomAttribute (SourceLoc atLoc);
1182
1167
1183
1168
ParserStatus parseNewDeclAttribute (DeclAttributes &Attributes,
1184
1169
SourceLoc AtLoc, DeclAttrKind DK,
@@ -1480,7 +1465,6 @@ class Parser {
1480
1465
1481
1466
ParserStatus parseTypeAttribute (TypeOrCustomAttr &result, SourceLoc AtLoc,
1482
1467
SourceLoc AtEndLoc, ParseTypeReason reason,
1483
- PatternBindingInitializer *&initContext,
1484
1468
bool justChecking = false );
1485
1469
1486
1470
ParserResult<TypeRepr> parseOldStyleProtocolComposition ();
0 commit comments