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 |