private static void DumpScope(StringBuilder output, EnvironmentRecord curScope, int level = 0) { curScope.DumpScope(output, level); foreach (var child in curScope.Children) { DumpScope(output, child, level + 1); } }