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

Unified Diff: pkg/dev_compiler/lib/src/js_ast/template.dart

Issue 2797873002: Preserve async markers when parsing js_ast (Closed)
Patch Set: Add comments to test Created 3 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
« no previous file with comments | « no previous file | tests/language_strong/async_cascade_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dev_compiler/lib/src/js_ast/template.dart
diff --git a/pkg/dev_compiler/lib/src/js_ast/template.dart b/pkg/dev_compiler/lib/src/js_ast/template.dart
index efac3f4e3544ab4a789adf240ec714e13d7ad402..20fb6b62a7130d3361f6bbef911cc223c5952d97 100644
--- a/pkg/dev_compiler/lib/src/js_ast/template.dart
+++ b/pkg/dev_compiler/lib/src/js_ast/template.dart
@@ -670,7 +670,8 @@ class InstantiatorGeneratorVisitor implements NodeVisitor<Instantiator> {
if (node is ArrowFun) {
return new ArrowFun(params, body);
} else if (node is Fun) {
- return new Fun(params, body);
+ return new Fun(params, body,
+ isGenerator: node.isGenerator, asyncModifier: node.asyncModifier);
} else {
throw "Unknown FunctionExpression type ${node.runtimeType}: $node";
}
« no previous file with comments | « no previous file | tests/language_strong/async_cascade_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698