[CS] NFC: Factor out Solution::hasAppliedSelf

This commit is contained in:
Hamish Knight
2025-07-17 22:49:18 +01:00
parent 8a689bb4d3
commit 33b58d25d8
3 changed files with 10 additions and 6 deletions

View File

@@ -6093,6 +6093,7 @@ bool isAutoClosureArgument(Expr *argExpr);
/// parameter being applied, meaning that it's dropped from the type of the
/// reference.
bool hasAppliedSelf(ConstraintSystem &cs, const OverloadChoice &choice);
bool hasAppliedSelf(const Solution &S, const OverloadChoice &choice);
bool hasAppliedSelf(const OverloadChoice &choice,
llvm::function_ref<Type(Type)> getFixedType);