Skip to content

Commit fbf1446

Browse files
committed
Better Map debugging
1 parent 256f05b commit fbf1446

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

debugger.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -452,10 +452,10 @@ inline void debug_ast(AST_Node* node, string ind = "", Env* env = 0)
452452
cerr << ind << "Map " << expression;
453453
cerr << " (" << pstate_source_position(node) << ")";
454454
cerr << " [Hashed]" << endl;
455-
// for (auto i : expression->elements()) {
456-
// debug_ast(i.first, ind + " key: ");
457-
// debug_ast(i.second, ind + " val: ");
458-
// }
455+
for (auto i : expression->elements()) {
456+
debug_ast(i.first, ind + " key: ");
457+
debug_ast(i.second, ind + " val: ");
458+
}
459459
} else if (dynamic_cast<List*>(node)) {
460460
List* expression = dynamic_cast<List*>(node);
461461
cerr << ind << "List " << expression;

0 commit comments

Comments
 (0)