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

Unified Diff: runtime/vm/parser.cc

Issue 9116002: Reverting r2970 to fix Dartium break (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 12 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser.cc
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc
index d15b44f3d63fd0364a4abdd5795d57a911258692..c0e7e6554594525c0f41cb6feca63f2b8f19260e 100644
--- a/runtime/vm/parser.cc
+++ b/runtime/vm/parser.cc
@@ -1834,7 +1834,6 @@ SequenceNode* Parser::ParseFunc(const Function& func,
}
}
- OpenBlock(); // Open a nested scope for the outermost function block.
if (CurrentToken() == Token::kLBRACE) {
ConsumeToken();
ParseStatementSequence();
@@ -1850,8 +1849,6 @@ SequenceNode* Parser::ParseFunc(const Function& func,
} else {
UnexpectedToken();
}
- SequenceNode* body = CloseBlock();
- current_block_->statements->Add(body);
return CloseBlock();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698