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

Unified Diff: sdk/lib/_internal/compiler/implementation/resolution/members.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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: sdk/lib/_internal/compiler/implementation/resolution/members.dart
diff --git a/sdk/lib/_internal/compiler/implementation/resolution/members.dart b/sdk/lib/_internal/compiler/implementation/resolution/members.dart
index e944505601164c668aab42a308a9f4e9e0d11feb..278e8009aefd1f5e80cbc64889ec83823f4221ee 100644
--- a/sdk/lib/_internal/compiler/implementation/resolution/members.dart
+++ b/sdk/lib/_internal/compiler/implementation/resolution/members.dart
@@ -2359,10 +2359,10 @@ class ResolverVisitor extends CommonResolverVisitor<Element> {
visitForIn(ForIn node) {
for (final name in const [
const SourceString('iterator'),
- const SourceString('next')]) {
- registerImplicitInvocation(name, 0);
+ const SourceString('current')]) {
+ registerImplicitFieldGet(name);
}
- registerImplicitFieldGet(const SourceString('hasNext'));
+ registerImplicitInvocation(const SourceString('moveNext'), 0);
visit(node.expression);
Scope blockScope = new BlockScope(scope);
Node declaration = node.declaredIdentifier;

Powered by Google App Engine
This is Rietveld 408576698