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

Unified Diff: pkg/compiler/lib/src/inferrer/inferrer_visitor.dart

Issue 1069983005: Model 'await for' as an explicit node in tree and fix its handling. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix failing assertion rebase Created 5 years, 8 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: pkg/compiler/lib/src/inferrer/inferrer_visitor.dart
diff --git a/pkg/compiler/lib/src/inferrer/inferrer_visitor.dart b/pkg/compiler/lib/src/inferrer/inferrer_visitor.dart
index a969baab43bb2fa8244f3963aef6900a984cb7e4..889827e9b86c4237bcf0e4357cdf187c31c897c9 100644
--- a/pkg/compiler/lib/src/inferrer/inferrer_visitor.dart
+++ b/pkg/compiler/lib/src/inferrer/inferrer_visitor.dart
@@ -269,6 +269,8 @@ class ArgumentsTypes<T> extends IterableMixin<T> {
assert(this.named.values.every((T type) => type != null));
}
+ ArgumentsTypes.empty() : positional = const [], named = const {};
+
int get length => positional.length + named.length;
Iterator<T> get iterator => new ArgumentsTypesIterator(this);
@@ -713,7 +715,9 @@ abstract class InferrerVisitor
T visitDynamicSend(Send node);
- T visitForIn(ForIn node);
+ T visitAsyncForIn(AsyncForIn node);
+
+ T visitSyncForIn(SyncForIn node);
T visitReturn(Return node);

Powered by Google App Engine
This is Rietveld 408576698