@@ -567,11 +567,34 @@ SWIFT_NAME("BridgedDeclAttributes.add(self:_:)")
567
567
void BridgedDeclAttributes_add(BridgedDeclAttributes *_Nonnull attrs,
568
568
BridgedDeclAttribute add);
569
569
570
+ // / Retrieve the attribute from \p cAttrs that comes after \p cPriorAttr .
571
+ // / If \c cPriorAttr is null, retrieves the first attribute. If there are no
572
+ // / more attributes, returns null.
573
+ SWIFT_NAME (" BridgedDeclAttributes.attr(self:after:)" )
574
+ BridgedNullableDeclAttribute BridgedDeclAttributes_getAttrAfter(
575
+ BridgedDeclAttributes cAttrs, BridgedNullableDeclAttribute cPriorAttr);
576
+
570
577
SWIFT_NAME (" BridgedDeclAttribute.createSimple(_:kind:atLoc:nameLoc:)" )
571
578
BridgedDeclAttribute BridgedDeclAttribute_createSimple(
572
579
BridgedASTContext cContext, BridgedDeclAttrKind cKind,
573
580
BridgedSourceLoc cAtLoc, BridgedSourceLoc cNameLoc);
574
581
582
+ SWIFT_NAME (" getter:BridgedDeclAttribute.asABIAttr(self:)" )
583
+ BridgedNullableABIAttr BridgedDeclAttribute_asABIAttr(
584
+ BridgedDeclAttribute cAttr);
585
+
586
+ SWIFT_NAME (" BridgedABIAttr.createParsed(_:atLoc:range:abiDecl:)" )
587
+ BridgedABIAttr BridgedABIAttr_createParsed(
588
+ BridgedASTContext cContext, BridgedSourceLoc atLoc,
589
+ BridgedSourceRange range, BridgedNullableDecl abiDecl);
590
+
591
+ SWIFT_NAME (" BridgedABIAttr.createImplicitInverse(_:)" )
592
+ BridgedABIAttr BridgedABIAttr_createImplicitInverse(
593
+ BridgedASTContext cContext);
594
+
595
+ SWIFT_NAME (" BridgedABIAttr.connectToInverse(self:attachedTo:)" )
596
+ void BridgedABIAttr_connectToInverse(BridgedABIAttr cAttr, BridgedDecl cOwner);
597
+
575
598
enum ENUM_EXTENSIBILITY_ATTR (closed) BridgedAccessLevel {
576
599
BridgedAccessLevelPrivate,
577
600
BridgedAccessLevelFilePrivate,
@@ -913,6 +936,10 @@ BridgedDeclAttributes BridgedDecl_getAttrs(BridgedDecl decl);
913
936
SWIFT_NAME (" setter:BridgedDecl.attrs(self:newValue:)" )
914
937
void BridgedDecl_setAttrs(BridgedDecl decl, BridgedDeclAttributes attrs);
915
938
939
+ SWIFT_NAME (" getter:BridgedDecl.asPatternBindingDecl(self:)" )
940
+ BridgedNullablePatternBindingDecl BridgedDecl_getAsPatternBindingDecl(
941
+ BridgedDecl decl);
942
+
916
943
enum ENUM_EXTENSIBILITY_ATTR (closed) BridgedStaticSpelling {
917
944
BridgedStaticSpellingNone,
918
945
BridgedStaticSpellingStatic,
@@ -948,6 +975,14 @@ BridgedPatternBindingDecl BridgedPatternBindingDecl_createParsed(
948
975
BridgedSourceLoc cBindingKeywordLoc, BridgedArrayRef cBindingEntries, BridgedDeclAttributes cAttrs,
949
976
bool isStatic, bool isLet);
950
977
978
+ SWIFT_NAME (" getter:BridgedPatternBindingDecl.patternCount(self:)" )
979
+ SwiftInt BridgedPatternBindingDecl_getNumPatternEntries(
980
+ BridgedPatternBindingDecl cPBD);
981
+
982
+ SWIFT_NAME (" BridgedPatternBindingDecl.pattern(self:at:)" )
983
+ BridgedPattern BridgedPatternBindingDecl_getPattern(
984
+ BridgedPatternBindingDecl cPBD, SwiftInt i);
985
+
951
986
SWIFT_NAME (" BridgedParamDecl.createParsed(_:declContext:specifierLoc:argName:"
952
987
" argNameLoc:paramName:paramNameLoc:type:defaultValue:)" )
953
988
BridgedParamDecl BridgedParamDecl_createParsed(
@@ -2105,6 +2140,21 @@ void BridgedTypeRepr_dump(BridgedTypeRepr type);
2105
2140
SWIFT_NAME (" getter:BridgedPattern.singleVar(self:)" )
2106
2141
BridgedNullableVarDecl BridgedPattern_getSingleVar(BridgedPattern cPattern);
2107
2142
2143
+ // / Iterates over the pattern, collecting and returning all of the BridgedVarDecls
2144
+ // / referenced by its subpatterns.
2145
+ // /
2146
+ // / The exact semantics of this are as follows:
2147
+ // /
2148
+ // / \li This method always returns the current count of BridgedVarDecls in the
2149
+ // / pattern.
2150
+ // / \li If \p capacity is greater than or equal to the current count \em and
2151
+ // / \p varDeclArrayOut is non-null, this method also writes the
2152
+ // / BridgedVarDecls into the buffer starting at \p varDeclArrayOut .
2153
+ SWIFT_NAME (" BridgedPattern.unsafeFetchVarDecls(self:into:capacity:)" )
2154
+ SwiftInt BridgedPattern_unsafeFetchVarDecls(
2155
+ BridgedPattern cPattern, BridgedVarDecl * _Nullable varDeclArrayOut,
2156
+ SwiftInt capacity);
2157
+
2108
2158
SWIFT_NAME (" BridgedAnyPattern.createParsed(_:loc:)" )
2109
2159
BridgedAnyPattern BridgedAnyPattern_createParsed(BridgedASTContext cContext,
2110
2160
BridgedSourceLoc cLoc);
0 commit comments