File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -1451,26 +1451,11 @@ class ParameterTypeFlags {
1451
1451
: value - ParameterTypeFlags::Shared);
1452
1452
}
1453
1453
1454
- ParameterTypeFlags withAutoClosure (bool isAutoClosure) const {
1455
- return ParameterTypeFlags (isAutoClosure
1456
- ? value | ParameterTypeFlags::AutoClosure
1457
- : value - ParameterTypeFlags::AutoClosure);
1458
- }
1459
-
1460
1454
bool operator ==(const ParameterTypeFlags &other) const {
1461
1455
return value.toRaw () == other.value .toRaw ();
1462
1456
}
1463
1457
1464
1458
uint8_t toRaw () const { return value.toRaw (); }
1465
-
1466
- static ParameterTypeFlags fromRaw (uint8_t value) {
1467
- return ParameterTypeFlags ()
1468
- .withVariadic (value & Variadic)
1469
- .withAutoClosure (value & AutoClosure)
1470
- .withEscaping (value & Escaping)
1471
- .withInOut (value & InOut)
1472
- .withShared (value & Shared);
1473
- }
1474
1459
};
1475
1460
1476
1461
// / ParenType - A paren type is a type that's been written in parentheses.
You can’t perform that action at this time.
0 commit comments