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

Unified Diff: runtime/vm/parser.cc

Issue 11230011: Make hasNext a getter instead of a method. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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
Index: runtime/vm/parser.cc
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc
index b8941e2c54f2d11715bf120edd4a14bd2bdeca3e..9058b8dbba1cbbf5f03f4e9243f1c342543ddb49 100644
--- a/runtime/vm/parser.cc
+++ b/runtime/vm/parser.cc
@@ -5688,11 +5688,10 @@ AstNode* Parser::ParseForInStatement(intptr_t forin_pos,
current_block_->statements->Add(iterator_init);
// Generate while loop condition.
- AstNode* iterator_has_next = new InstanceCallNode(
+ AstNode* iterator_has_next = new InstanceGetterNode(
collection_pos,
new LoadLocalNode(collection_pos, iterator_var),
- String::ZoneHandle(Symbols::HasNext()),
- no_args);
+ String::ZoneHandle(Symbols::HasNext()));
// Parse the for loop body. Ideally, we would use ParseNestedStatement()
// here, but that does not work well because we have to insert an implicit

Powered by Google App Engine
This is Rietveld 408576698