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 @@ -1452,26 +1452,11 @@ class ParameterTypeFlags {
1452
1452
: value - ParameterTypeFlags::Shared);
1453
1453
}
1454
1454
1455
- ParameterTypeFlags withAutoClosure (bool isAutoClosure) const {
1456
- return ParameterTypeFlags (isAutoClosure
1457
- ? value | ParameterTypeFlags::AutoClosure
1458
- : value - ParameterTypeFlags::AutoClosure);
1459
- }
1460
-
1461
1455
bool operator ==(const ParameterTypeFlags &other) const {
1462
1456
return value.toRaw () == other.value .toRaw ();
1463
1457
}
1464
1458
1465
1459
uint8_t toRaw () const { return value.toRaw (); }
1466
-
1467
- static ParameterTypeFlags fromRaw (uint8_t value) {
1468
- return ParameterTypeFlags ()
1469
- .withVariadic (value & Variadic)
1470
- .withAutoClosure (value & AutoClosure)
1471
- .withEscaping (value & Escaping)
1472
- .withInOut (value & InOut)
1473
- .withShared (value & Shared);
1474
- }
1475
1460
};
1476
1461
1477
1462
// / 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