@@ -80,6 +80,8 @@ Optional<constraints::SolutionApplicationTarget>
8080typeCheckExpression (constraints::SolutionApplicationTarget &target,
8181 OptionSet<TypeCheckExprFlags> options);
8282
83+ Type typeCheckParameterDefault (Expr *&, DeclContext *, Type, bool );
84+
8385} // end namespace TypeChecker
8486
8587} // end namespace swift
@@ -3045,6 +3047,10 @@ class ConstraintSystem {
30453047 swift::TypeChecker::typeCheckExpression (
30463048 SolutionApplicationTarget &target, OptionSet<TypeCheckExprFlags> options);
30473049
3050+ friend Type swift::TypeChecker::typeCheckParameterDefault (Expr *&,
3051+ DeclContext *, Type,
3052+ bool );
3053+
30483054 // / Emit the fixes computed as part of the solution, returning true if we were
30493055 // / able to emit an error message, or false if none of the fixits worked out.
30503056 bool applySolutionFixes (const Solution &solution);
@@ -4167,6 +4173,13 @@ class ConstraintSystem {
41674173 OpenedTypeMap &replacements,
41684174 ConstraintLocatorBuilder locator);
41694175
4176+ // / Open a generic parameter into a type variable and record
4177+ // / it in \c replacements.
4178+ TypeVariableType *openGenericParameter (DeclContext *outerDC,
4179+ GenericTypeParamType *parameter,
4180+ OpenedTypeMap &replacements,
4181+ ConstraintLocatorBuilder locator);
4182+
41704183 // / Given generic signature open its generic requirements,
41714184 // / using substitution function, and record them in the
41724185 // / constraint system for further processing.
@@ -4176,6 +4189,14 @@ class ConstraintSystem {
41764189 ConstraintLocatorBuilder locator,
41774190 llvm::function_ref<Type(Type)> subst);
41784191
4192+ // Record the given requirement in the constraint system.
4193+ void openGenericRequirement (DeclContext *outerDC,
4194+ unsigned index,
4195+ const Requirement &requirement,
4196+ bool skipProtocolSelfConstraint,
4197+ ConstraintLocatorBuilder locator,
4198+ llvm::function_ref<Type(Type)> subst);
4199+
41794200 // / Record the set of opened types for the given locator.
41804201 void recordOpenedTypes (
41814202 ConstraintLocatorBuilder locator,
0 commit comments