mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #85525 from hamishknight/yeet
[CS] Remove `getImplicitValueConversionLocator` & `ImplicitConversion`
This commit is contained in:
@@ -1010,26 +1010,6 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
class LocatorPathElt::ImplicitConversion final
|
||||
: public StoredIntegerElement<1> {
|
||||
public:
|
||||
ImplicitConversion(ConversionRestrictionKind kind)
|
||||
: StoredIntegerElement(ConstraintLocator::ImplicitConversion,
|
||||
static_cast<unsigned>(kind)) {}
|
||||
|
||||
ConversionRestrictionKind getConversionKind() const {
|
||||
return static_cast<ConversionRestrictionKind>(getValue());
|
||||
}
|
||||
|
||||
bool is(ConversionRestrictionKind kind) const {
|
||||
return getConversionKind() == kind;
|
||||
}
|
||||
|
||||
static bool classof(const LocatorPathElt *elt) {
|
||||
return elt->getKind() == ConstraintLocator::ImplicitConversion;
|
||||
}
|
||||
};
|
||||
|
||||
class LocatorPathElt::ContextualType final : public StoredIntegerElement<1> {
|
||||
public:
|
||||
ContextualType(ContextualTypePurpose purpose)
|
||||
|
||||
Reference in New Issue
Block a user