File tree Expand file tree Collapse file tree 1 file changed +22
-4
lines changed Expand file tree Collapse file tree 1 file changed +22
-4
lines changed Original file line number Diff line number Diff line change @@ -466,11 +466,29 @@ class ComponentStep final : public SolverStep {
466
466
// to preliminary modify constraint system or log anything.
467
467
if (IsSingle)
468
468
return ;
469
-
470
- if (CS.isDebugMode ())
471
- getDebugLogger () << " (solving component #" << Index << ' \n ' ;
472
-
469
+
470
+ if (CS.isDebugMode ()) {
471
+ auto &log = getDebugLogger ();
472
+ log << " (solving component #" << Index << ' \n ' ;
473
+ }
474
+
473
475
ComponentScope = std::make_unique<Scope>(*this );
476
+
477
+ if (CS.isDebugMode ()) {
478
+ auto &log = getDebugLogger ();
479
+ log << " Type variables in scope = "
480
+ << " [" ;
481
+ auto typeVars = CS.getTypeVariables ();
482
+ PrintOptions PO;
483
+ PO.PrintTypesForDebugging = true ;
484
+ interleave (typeVars, [&](TypeVariableType *typeVar) {
485
+ Type (typeVar).print (log, PO);
486
+ },
487
+ [&] {
488
+ log << " , " ;
489
+ });
490
+ log << " ]" << ' \n ' ;
491
+ }
474
492
475
493
// If this component has orphaned constraint attached,
476
494
// let's return it to the graph.
You can’t perform that action at this time.
0 commit comments