@@ -415,6 +415,15 @@ namespace {
415
415
std::optional<SyntacticElementTarget> target;
416
416
bool SuppressDiagnostics;
417
417
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
+
418
427
// / Coerce the given tuple to another tuple type.
419
428
// /
420
429
// / \param expr The expression we're converting.
@@ -2631,15 +2640,6 @@ namespace {
2631
2640
}
2632
2641
2633
2642
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
-
2643
2643
// / Simplify the expression type and return the expression.
2644
2644
// /
2645
2645
// / This routine is used for 'simple' expressions that only need their
0 commit comments