mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[CS] NFC: Remove CTP_ComposedPropertyWrapper
This has been unused since we added a custom `AllowWrappedValueMismatch` fix.
This commit is contained in:
@@ -77,8 +77,6 @@ enum ContextualTypePurpose : uint8_t {
|
||||
/// to a type of a switch subject or an `Error` type.
|
||||
CTP_ForEachSequence, ///< Sequence expression associated with `for-in` loop.
|
||||
CTP_WrappedProperty, ///< Property type expected to match 'wrappedValue' type
|
||||
CTP_ComposedPropertyWrapper, ///< Composed wrapper type expected to match
|
||||
///< former 'wrappedValue' type
|
||||
|
||||
CTP_SingleValueStmtBranch, ///< The contextual type for a branch in a single
|
||||
///< value statement expression.
|
||||
|
||||
@@ -9616,7 +9616,6 @@ ExprWalker::rewriteTarget(SyntacticElementTarget target) {
|
||||
case CTP_SubscriptAssignSource:
|
||||
case CTP_Condition:
|
||||
case CTP_WrappedProperty:
|
||||
case CTP_ComposedPropertyWrapper:
|
||||
case CTP_CannotFail:
|
||||
case CTP_SingleValueStmtBranch:
|
||||
result.setExpr(rewrittenExpr);
|
||||
|
||||
@@ -863,7 +863,6 @@ GenericArgumentsMismatchFailure::getDiagnosticFor(
|
||||
case CTP_CaseStmt:
|
||||
case CTP_ThrowStmt:
|
||||
case CTP_ForEachSequence:
|
||||
case CTP_ComposedPropertyWrapper:
|
||||
case CTP_Unused:
|
||||
case CTP_CannotFail:
|
||||
case CTP_YieldByReference:
|
||||
@@ -2965,7 +2964,6 @@ getContextualNilDiagnostic(ContextualTypePurpose CTP) {
|
||||
case CTP_ForEachSequence:
|
||||
case CTP_YieldByReference:
|
||||
case CTP_WrappedProperty:
|
||||
case CTP_ComposedPropertyWrapper:
|
||||
case CTP_ExprPattern:
|
||||
case CTP_SingleValueStmtBranch:
|
||||
return std::nullopt;
|
||||
@@ -3750,7 +3748,6 @@ ContextualFailure::getDiagnosticFor(ContextualTypePurpose context,
|
||||
|
||||
case CTP_ThrowStmt:
|
||||
case CTP_ForEachSequence:
|
||||
case CTP_ComposedPropertyWrapper:
|
||||
case CTP_Unused:
|
||||
case CTP_CannotFail:
|
||||
case CTP_YieldByReference:
|
||||
|
||||
@@ -16711,7 +16711,6 @@ void ConstraintSystem::addContextualConversionConstraint(
|
||||
case CTP_CoerceOperand:
|
||||
case CTP_SubscriptAssignSource:
|
||||
case CTP_WrappedProperty:
|
||||
case CTP_ComposedPropertyWrapper:
|
||||
case CTP_ExprPattern:
|
||||
case CTP_SingleValueStmtBranch:
|
||||
break;
|
||||
|
||||
@@ -273,7 +273,6 @@ bool SyntacticElementTarget::contextualTypeIsOnlyAHint() const {
|
||||
case CTP_SubscriptAssignSource:
|
||||
case CTP_Condition:
|
||||
case CTP_WrappedProperty:
|
||||
case CTP_ComposedPropertyWrapper:
|
||||
case CTP_CannotFail:
|
||||
case CTP_ExprPattern:
|
||||
case CTP_SingleValueStmtBranch:
|
||||
|
||||
Reference in New Issue
Block a user