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 |