@@ -415,6 +415,15 @@ namespace {
415415 std::optional<SyntacticElementTarget> target;
416416 bool SuppressDiagnostics;
417417
418+ ExprRewriter (ConstraintSystem &cs, Solution &solution,
419+ std::optional<SyntacticElementTarget> target,
420+ bool suppressDiagnostics)
421+ : cs(cs), dc(target ? target->getDeclContext () : cs.DC),
422+ solution(solution), target(target),
423+ SuppressDiagnostics(suppressDiagnostics) {}
424+
425+ ConstraintSystem &getConstraintSystem () const { return cs; }
426+
418427 // / Coerce the given tuple to another tuple type.
419428 // /
420429 // / \param expr The expression we're converting.
@@ -2631,15 +2640,6 @@ namespace {
26312640 }
26322641
26332642 public:
2634- ExprRewriter (ConstraintSystem &cs, Solution &solution,
2635- std::optional<SyntacticElementTarget> target,
2636- bool suppressDiagnostics)
2637- : cs(cs), dc(target ? target->getDeclContext () : cs.DC),
2638- solution(solution), target(target),
2639- SuppressDiagnostics(suppressDiagnostics) {}
2640-
2641- ConstraintSystem &getConstraintSystem () const { return cs; }
2642-
26432643 // / Simplify the expression type and return the expression.
26442644 // /
26452645 // / This routine is used for 'simple' expressions that only need their
0 commit comments