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

Unified Diff: sdk/lib/_internal/compiler/implementation/ssa/builder.dart

Issue 675113002: Support async/await in the dart2js frontend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments Created 6 years, 1 month 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/ssa/builder.dart
diff --git a/sdk/lib/_internal/compiler/implementation/ssa/builder.dart b/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
index 923b6e5b7dc3b37e76b866d4a3699a1fbde9381d..abd5e29594869b5486b149f52854b583ddcb859b 100644
--- a/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
+++ b/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
@@ -5058,6 +5058,17 @@ class SsaBuilder extends ResolvedVisitor {
}
}
+ visitYield(ast.Yield node) {
+ // Dummy implementation.
+ visit(node.expression);
+ pop();
+ }
+
+ visitAwait(ast.Await node) {
+ // Dummy implementation.
+ visit(node.expression);
+ }
+
visitTypeAnnotation(ast.TypeAnnotation node) {
compiler.internalError(node,
'Visiting type annotation in SSA builder.');

Powered by Google App Engine
This is Rietveld 408576698