ConstraintSystem: Move key path type utilities to AST.

This commit is contained in:
Allan Shortlidge
2025-09-24 17:27:37 -07:00
parent 8f7af45115
commit 2467b931a7
10 changed files with 28 additions and 22 deletions

View File

@@ -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);