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

Unified Diff: sdk/lib/_internal/compiler/implementation/use_unused_api.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/use_unused_api.dart
diff --git a/sdk/lib/_internal/compiler/implementation/use_unused_api.dart b/sdk/lib/_internal/compiler/implementation/use_unused_api.dart
index bdd26d19b047d47df4b34be46fea21373b4cae97..a381aaa009a4d955d412e48f2fa24bc67f2ffa06 100644
--- a/sdk/lib/_internal/compiler/implementation/use_unused_api.dart
+++ b/sdk/lib/_internal/compiler/implementation/use_unused_api.dart
@@ -72,6 +72,8 @@ void useConstant(constants.ConstantValue constant,
void useNode(tree.Node node) {
node
+ ..asAsyncModifier()
+ ..asAwait()
..asBreakStatement()
..asCascade()
..asCatchBlock()
@@ -110,7 +112,8 @@ void useNode(tree.Node node) {
..asTypeAnnotation()
..asTypeVariable()
..asTypedef()
- ..asWhile();
+ ..asWhile()
+ ..asYield();
}
void useUtil(util.Link link) {
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/typechecker.dart ('k') | sdk/lib/_internal/compiler/implementation/warnings.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698