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

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: Remove unused variable. 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
« no previous file with comments | « runtime/vm/intrinsifier_x64.cc ('k') | samples/ui_lib/util/CollectionUtils.dart » ('j') | 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 5f16e5c57ce908afa8f58b43c6900d05857b902e..5f1e87c7deaf82ac09d378fd997f367ca96e4be3 100644
--- a/runtime/vm/parser.cc
+++ b/runtime/vm/parser.cc
@@ -5696,11 +5696,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
« no previous file with comments | « runtime/vm/intrinsifier_x64.cc ('k') | samples/ui_lib/util/CollectionUtils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698