mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
ConstraintSystem: Move key path type utilities to AST.
This commit is contained in:
@@ -4363,12 +4363,6 @@ Solution::getFunctionArgApplyInfo(ConstraintLocator *locator) const {
|
||||
fnInterfaceType, fnType, callee);
|
||||
}
|
||||
|
||||
bool constraints::isKnownKeyPathType(Type type) {
|
||||
return type->isKeyPath() || type->isWritableKeyPath() ||
|
||||
type->isReferenceWritableKeyPath() || type->isPartialKeyPath() ||
|
||||
type->isAnyKeyPath();
|
||||
}
|
||||
|
||||
bool constraints::isTypeErasedKeyPathType(Type type) {
|
||||
assert(type);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user