@@ -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 ;
@@ -221,6 +223,11 @@ class BridgedASTContext {
221223 BRIDGED_INLINE swift::ASTContext &unbridged () const ;
222224};
223225
226+ #define IDENTIFIER_WITH_NAME (Name, _ ) \
227+ SWIFT_NAME (" getter:BridgedASTContext.id_" #Name " (self:)" ) \
228+ BRIDGED_INLINE BridgedIdentifier BridgedASTContext_id_##Name(BridgedASTContext bridged);
229+ #include " swift/AST/KnownIdentifiers.def"
230+
224231SWIFT_NAME (" getter:BridgedASTContext.raw(self:)" )
225232BRIDGED_INLINE
226233void * _Nonnull BridgedASTContext_raw(BridgedASTContext bridged);
@@ -1104,11 +1111,14 @@ BridgedRawDocCommentAttr_createParsed(BridgedASTContext cContext,
11041111 BridgedCharSourceRange cRange);
11051112
11061113enum ENUM_EXTENSIBILITY_ATTR (closed) BridgedReferenceOwnership {
1114+ BridgedReferenceOwnershipStrong,
11071115 BridgedReferenceOwnershipWeak,
11081116 BridgedReferenceOwnershipUnowned,
11091117 BridgedReferenceOwnershipUnmanaged,
11101118};
11111119
1120+ swift::ReferenceOwnership unbridged (BridgedReferenceOwnership kind);
1121+
11121122SWIFT_NAME (" BridgedReferenceOwnershipAttr.createParsed(_:atLoc:range:kind:)" )
11131123BridgedReferenceOwnershipAttr BridgedReferenceOwnershipAttr_createParsed(
11141124 BridgedASTContext cContext, BridgedSourceLoc cAtLoc,
@@ -1625,6 +1635,33 @@ BridgedCallExpr BridgedCallExpr_createParsed(BridgedASTContext cContext,
16251635 BridgedExpr fn,
16261636 BridgedArgumentList args);
16271637
1638+ class BridgedCaptureListEntry {
1639+ swift::PatternBindingDecl *_Nonnull PBD;
1640+
1641+ public:
1642+ BRIDGED_INLINE BridgedCaptureListEntry (swift::CaptureListEntry CLE);
1643+
1644+ BRIDGED_INLINE swift::CaptureListEntry unbridged () const ;
1645+ };
1646+
1647+ SWIFT_NAME (" BridgedCaptureListEntry.createParsed(_:declContext:ownership:"
1648+ " ownershipRange:name:nameLoc:equalLoc:initializer:)" )
1649+ BridgedCaptureListEntry BridegedCaptureListEntry_createParsed(
1650+ BridgedASTContext cContext, BridgedDeclContext cDeclContext,
1651+ BridgedReferenceOwnership cOwnershipKind,
1652+ BridgedSourceRange cOwnershipRange, BridgedIdentifier cName,
1653+ BridgedSourceLoc cNameLoc, BridgedSourceLoc cEqualLoc,
1654+ BridgedExpr cInitializer);
1655+
1656+ SWIFT_NAME (" getter:BridgedCaptureListEntry.varDecl(self:)" )
1657+ BRIDGED_INLINE BridgedVarDecl
1658+ BridegedCaptureListEntry_getVar(BridgedCaptureListEntry entry);
1659+
1660+ SWIFT_NAME (" BridgedCaptureListExpr.createParsed(_:captureList:closure:)" )
1661+ BridgedCaptureListExpr BridgedCaptureListExpr_createParsed(BridgedASTContext cContext,
1662+ BridgedArrayRef cCaptureList,
1663+ BridgedClosureExpr cClosure);
1664+
16281665SWIFT_NAME (" BridgedClosureExpr.createParsed(_:declContext:attributes:"
16291666 " bracketRange:capturedSelfDecl:parameterList:asyncLoc:throwsLoc:"
16301667 " thrownType:arrowLoc:explicitResultType:inLoc:)" )
0 commit comments