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

Unified Diff: runtime/vm/parser.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/parser.cc
===================================================================
--- runtime/vm/parser.cc (revision 2646)
+++ runtime/vm/parser.cc (working copy)
@@ -3436,6 +3436,10 @@
SequenceNode* Parser::CloseBlock() {
SequenceNode* statements = current_block_->statements;
+ if (current_block_->scope != NULL) {
+ // Record the end token index of the scope.
+ current_block_->scope->set_end_token_index(token_index_);
+ }
current_block_ = current_block_->parent;
return statements;
}

Powered by Google App Engine
This is Rietveld 408576698