28
28
29
29
SWIFT_BEGIN_NULLABILITY_ANNOTATIONS
30
30
31
+ namespace llvm {
32
+ template <typename T> class ArrayRef ;
33
+ }
34
+
31
35
namespace swift {
32
36
class Argument ;
33
37
class ASTContext ;
@@ -42,6 +46,8 @@ class Identifier;
42
46
class IfConfigClauseRangeInfo ;
43
47
struct LabeledStmtInfo ;
44
48
class ProtocolConformanceRef ;
49
+ class RegexLiteralPatternFeature ;
50
+ class RegexLiteralPatternFeatureKind ;
45
51
class Type ;
46
52
class CanType ;
47
53
class TypeBase ;
@@ -1351,6 +1357,68 @@ BridgedPrefixUnaryExpr
1351
1357
BridgedPrefixUnaryExpr_createParsed(BridgedASTContext cContext,
1352
1358
BridgedExpr oper, BridgedExpr operand);
1353
1359
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
+
1354
1422
SWIFT_NAME (" BridgedRegexLiteralExpr.createParsed(_:loc:regexText:)" )
1355
1423
BridgedRegexLiteralExpr
1356
1424
BridgedRegexLiteralExpr_createParsed(BridgedASTContext cContext,
0 commit comments