File tree Expand file tree Collapse file tree 1 file changed +21
-3
lines changed Expand file tree Collapse file tree 1 file changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -467,10 +467,28 @@ class ComponentStep final : public SolverStep {
467
467
if (IsSingle)
468
468
return ;
469
469
470
- if (CS.isDebugMode ())
471
- getDebugLogger () << " (solving component #" << Index << ' \n ' ;
472
-
473
470
ComponentScope = std::make_unique<Scope>(*this );
471
+
472
+ if (CS.isDebugMode ()) {
473
+ auto &log = getDebugLogger ();
474
+ log << " (solving component #" << Index << ' \n ' ;
475
+
476
+ log.indent (CS.solverState ->depth * 2 + 2 );
477
+ log << " (type variables in scope = " << " [" ;
478
+ auto typeVars = CS.getTypeVariables ();
479
+ PrintOptions PO;
480
+ PO.PrintTypesForDebugging = true ;
481
+ interleave (typeVars, [&](TypeVariableType *typeVar) {
482
+ Type (typeVar).print (log, PO);
483
+ },
484
+ [&] {
485
+ log << ' ' ;
486
+ });
487
+ log << " ])" << ' \n ' ;
488
+
489
+ log.indent (CS.solverState ->depth * 2 + 2 );
490
+ log << " (initial state: " << ' \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