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

Unified Diff: runtime/vm/scopes.cc

Issue 23460040: Make hidden initializing formal parameters invisible to the debugger (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 months 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
« no previous file with comments | « runtime/vm/scopes.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/scopes.cc
===================================================================
--- runtime/vm/scopes.cc (revision 27498)
+++ runtime/vm/scopes.cc (working copy)
@@ -220,8 +220,8 @@
}
-// Add variables that are declared in this scope to vars, then collect
-// variables of children, followed by siblings.
+// Add visible variables that are declared in this scope to vars, then
+// collect visible variables of children, followed by siblings.
void LocalScope::CollectLocalVariables(GrowableArray<VarDesc>* vars,
int16_t* scope_id) {
(*scope_id)++;
@@ -242,7 +242,7 @@
}
for (int i = 0; i < this->variables_.length(); i++) {
LocalVariable* var = variables_[i];
- if (var->owner() == this) {
+ if ((var->owner() == this) && !var->is_invisible()) {
if (!IsInternalIdentifier(var->name())) {
// This is a regular Dart variable, either stack-based or captured.
VarDesc desc;
« no previous file with comments | « runtime/vm/scopes.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698