@@ -37,6 +37,7 @@ class AvailabilityDomain;
3737class Argument ;
3838class ASTContext ;
3939struct ASTNode ;
40+ struct CaptureListEntry ;
4041class DeclAttributes ;
4142class DeclBaseName ;
4243class DeclNameLoc ;
@@ -55,6 +56,7 @@ enum class PlatformKind : uint8_t;
5556class ProtocolConformanceRef ;
5657class RegexLiteralPatternFeature ;
5758class RegexLiteralPatternFeatureKind ;
59+ enum class ReferenceOwnership : uint8_t ;
5860class Type ;
5961class CanType ;
6062class TypeBase ;
@@ -114,6 +116,10 @@ inline const void *_Nullable BridgedIdentifier_raw(BridgedIdentifier ident) {
114116 return ident.Raw ;
115117}
116118
119+ SWIFT_NAME (" getter:BridgedIdentifier.str(self:)" )
120+ BRIDGED_INLINE BridgedStringRef
121+ BridgedIdentifier_getStr(BridgedIdentifier ident);
122+
117123SWIFT_NAME (" getter:BridgedIdentifier.isOperator(self:)" )
118124BRIDGED_INLINE bool BridgedIdentifier_isOperator(const BridgedIdentifier);
119125
@@ -1104,11 +1110,14 @@ BridgedRawDocCommentAttr_createParsed(BridgedASTContext cContext,
11041110 BridgedCharSourceRange cRange);
11051111
11061112enum ENUM_EXTENSIBILITY_ATTR (closed) BridgedReferenceOwnership {
1113+ BridgedReferenceOwnershipStrong,
11071114 BridgedReferenceOwnershipWeak,
11081115 BridgedReferenceOwnershipUnowned,
11091116 BridgedReferenceOwnershipUnmanaged,
11101117};
11111118
1119+ swift::ReferenceOwnership unbridged (BridgedReferenceOwnership kind);
1120+
11121121SWIFT_NAME (" BridgedReferenceOwnershipAttr.createParsed(_:atLoc:range:kind:)" )
11131122BridgedReferenceOwnershipAttr BridgedReferenceOwnershipAttr_createParsed(
11141123 BridgedASTContext cContext, BridgedSourceLoc cAtLoc,
@@ -1625,6 +1634,33 @@ BridgedCallExpr BridgedCallExpr_createParsed(BridgedASTContext cContext,
16251634 BridgedExpr fn,
16261635 BridgedArgumentList args);
16271636
1637+ class BridgedCaptureListEntry {
1638+ swift::PatternBindingDecl *_Nonnull PBD;
1639+
1640+ public:
1641+ BRIDGED_INLINE BridgedCaptureListEntry (swift::CaptureListEntry CLE);
1642+
1643+ BRIDGED_INLINE swift::CaptureListEntry unbridged () const ;
1644+ };
1645+
1646+ SWIFT_NAME (" BridgedCaptureListEntry.createParsed(_:declContext:ownership:"
1647+ " ownershipRange:name:nameLoc:equalLoc:initializer:)" )
1648+ BridgedCaptureListEntry BridegedCaptureListEntry_createParsed(
1649+ BridgedASTContext cContext, BridgedDeclContext cDeclContext,
1650+ BridgedReferenceOwnership cOwnershipKind,
1651+ BridgedSourceRange cOwnershipRange, BridgedIdentifier cName,
1652+ BridgedSourceLoc cNameLoc, BridgedSourceLoc cEqualLoc,
1653+ BridgedExpr cInitializer);
1654+
1655+ SWIFT_NAME (" getter:BridgedCaptureListEntry.varDecl(self:)" )
1656+ BRIDGED_INLINE BridgedVarDecl
1657+ BridegedCaptureListEntry_getVar(BridgedCaptureListEntry entry);
1658+
1659+ SWIFT_NAME (" BridgedCaptureListExpr.createParsed(_:captureList:closure:)" )
1660+ BridgedCaptureListExpr BridgedCaptureListExpr_createParsed(BridgedASTContext cContext,
1661+ BridgedArrayRef cCaptureList,
1662+ BridgedClosureExpr cClosure);
1663+
16281664SWIFT_NAME (" BridgedClosureExpr.createParsed(_:declContext:attributes:"
16291665 " bracketRange:capturedSelfDecl:parameterList:asyncLoc:throwsLoc:"
16301666 " thrownType:arrowLoc:explicitResultType:inLoc:)" )
0 commit comments