Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(325)

Unified Diff: runtime/vm/ast_printer.cc

Issue 8992020: First part of inspecting local variables (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/vm/ast_printer.cc
===================================================================
--- runtime/vm/ast_printer.cc (revision 2646)
+++ runtime/vm/ast_printer.cc (working copy)
@@ -417,7 +417,7 @@
} else if (var->owner()->function_level() != 0) {
OS::Print(" lev %d", var->owner()->function_level());
}
- OS::Print(")");
+ OS::Print(" valid %d-%d)", var->token_index(), scope->end_token_index());
}
const LocalScope* child = scope->child();
while (child != NULL) {
@@ -465,7 +465,7 @@
OS::Print(" ctx %d", param->owner()->context_level());
}
}
- OS::Print(")");
+ OS::Print(" valid %d-%d)", param->token_index(), scope->end_token_index());
pos++;
}
// Visit remaining non-parameter variables and children scopes.

Powered by Google App Engine
This is Rietveld 408576698