2828
2929SWIFT_BEGIN_NULLABILITY_ANNOTATIONS
3030
31+ namespace llvm {
32+ template <typename T> class ArrayRef ;
33+ }
34+
3135namespace swift {
3236class Argument ;
3337class ASTContext ;
@@ -42,6 +46,8 @@ class Identifier;
4246class IfConfigClauseRangeInfo ;
4347struct LabeledStmtInfo ;
4448class ProtocolConformanceRef ;
49+ class RegexLiteralPatternFeature ;
50+ class RegexLiteralPatternFeatureKind ;
4551class Type ;
4652class CanType ;
4753class TypeBase ;
@@ -1351,6 +1357,68 @@ BridgedPrefixUnaryExpr
13511357BridgedPrefixUnaryExpr_createParsed(BridgedASTContext cContext,
13521358 BridgedExpr oper, BridgedExpr operand);
13531359
1360+ class BridgedRegexLiteralPatternFeatureKind final {
1361+ unsigned RawValue;
1362+
1363+ public:
1364+ BRIDGED_INLINE
1365+ SWIFT_NAME (" init(rawValue:)" )
1366+ BridgedRegexLiteralPatternFeatureKind (SwiftInt rawValue);
1367+
1368+ using UnbridgedTy = swift::RegexLiteralPatternFeatureKind;
1369+
1370+ BRIDGED_INLINE
1371+ BridgedRegexLiteralPatternFeatureKind (UnbridgedTy kind);
1372+
1373+ BRIDGED_INLINE
1374+ UnbridgedTy unbridged () const ;
1375+ };
1376+
1377+ class BridgedRegexLiteralPatternFeature final {
1378+ BridgedCharSourceRange Range;
1379+ BridgedRegexLiteralPatternFeatureKind Kind;
1380+
1381+ public:
1382+ SWIFT_NAME (" init(kind:at:)" )
1383+ BridgedRegexLiteralPatternFeature (BridgedRegexLiteralPatternFeatureKind kind,
1384+ BridgedCharSourceRange range)
1385+ : Range(range), Kind(kind) {}
1386+
1387+ using UnbridgedTy = swift::RegexLiteralPatternFeature;
1388+
1389+ BRIDGED_INLINE
1390+ BridgedRegexLiteralPatternFeature (UnbridgedTy feature);
1391+
1392+ BRIDGED_INLINE
1393+ UnbridgedTy unbridged () const ;
1394+ };
1395+
1396+ class BridgedRegexLiteralPatternFeatures final {
1397+ BridgedRegexLiteralPatternFeature *_Nullable Data;
1398+ SwiftInt Count;
1399+
1400+ public:
1401+ BridgedRegexLiteralPatternFeatures () : Data(nullptr ), Count(0 ) {}
1402+
1403+ SWIFT_NAME (" init(baseAddress:count:)" )
1404+ BridgedRegexLiteralPatternFeatures (
1405+ BridgedRegexLiteralPatternFeature *_Nullable data, SwiftInt count)
1406+ : Data(data), Count(count) {}
1407+
1408+ using UnbridgedTy = llvm::ArrayRef<BridgedRegexLiteralPatternFeature>;
1409+
1410+ BRIDGED_INLINE
1411+ UnbridgedTy unbridged () const ;
1412+
1413+ SWIFT_IMPORT_UNSAFE
1414+ BridgedRegexLiteralPatternFeature *_Nullable getData () const {
1415+ return Data;
1416+ }
1417+ SwiftInt getCount () const {
1418+ return Count;
1419+ }
1420+ };
1421+
13541422SWIFT_NAME (" BridgedRegexLiteralExpr.createParsed(_:loc:regexText:)" )
13551423BridgedRegexLiteralExpr
13561424BridgedRegexLiteralExpr_createParsed(BridgedASTContext cContext,
0 commit comments