@@ -998,8 +998,7 @@ class Parser {
998998
999999 // / Parse an #if ... #endif containing only attributes.
10001000 ParserStatus parseIfConfigAttributes (
1001- DeclAttributes &attributes, bool ifConfigsAreDeclAttrs,
1002- PatternBindingInitializer *initContext);
1001+ DeclAttributes &attributes, bool ifConfigsAreDeclAttrs);
10031002
10041003 // / Parse a #error or #warning diagnostic.
10051004 ParserResult<PoundDiagnosticDecl> parseDeclPoundDiagnostic ();
@@ -1022,13 +1021,6 @@ class Parser {
10221021 ParserStatus parseDeclAttributeList (DeclAttributes &Attributes,
10231022 bool IfConfigsAreDeclAttrs = false );
10241023
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-
10321024 // / Parse the optional attributes before a closure declaration.
10331025 ParserStatus parseClosureDeclAttributeList (DeclAttributes &Attributes);
10341026
@@ -1162,7 +1154,6 @@ class Parser {
11621154 // / Parse a specific attribute.
11631155 ParserStatus parseDeclAttribute (DeclAttributes &Attributes, SourceLoc AtLoc,
11641156 SourceLoc AtEndLoc,
1165- PatternBindingInitializer *&initContext,
11661157 bool isFromClangAttribute = false );
11671158
11681159 bool isCustomAttributeArgument ();
@@ -1171,13 +1162,7 @@ class Parser {
11711162 // / Parse a custom attribute after the initial '@'.
11721163 // /
11731164 // / \param atLoc The location of the already-parsed '@'.
1174- // /
1175- // / \param initContext A reference to the initializer context used
1176- // / for the set of custom attributes. This should start as nullptr, and
1177- // / will get filled in by this function. The same variable should be provided
1178- // / for every custom attribute within the same attribute list.
1179- ParserResult<CustomAttr> parseCustomAttribute (
1180- SourceLoc atLoc, PatternBindingInitializer *&initContext);
1165+ ParserResult<CustomAttr> parseCustomAttribute (SourceLoc atLoc);
11811166
11821167 ParserStatus parseNewDeclAttribute (DeclAttributes &Attributes,
11831168 SourceLoc AtLoc, DeclAttrKind DK,
@@ -1479,7 +1464,6 @@ class Parser {
14791464
14801465 ParserStatus parseTypeAttribute (TypeOrCustomAttr &result, SourceLoc AtLoc,
14811466 SourceLoc AtEndLoc, ParseTypeReason reason,
1482- PatternBindingInitializer *&initContext,
14831467 bool justChecking = false );
14841468
14851469 ParserResult<TypeRepr> parseOldStyleProtocolComposition ();
0 commit comments