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

Unified Diff: pkg/compiler/lib/src/js/rewrite_async.dart

Issue 2969873002: Add NodeVisitor1 to js_ast (Closed)
Patch Set: Updated cf. comment Created 3 years, 5 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 | « pkg/compiler/lib/src/js/js.dart ('k') | pkg/js_ast/lib/src/nodes.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js/rewrite_async.dart
diff --git a/pkg/compiler/lib/src/js/rewrite_async.dart b/pkg/compiler/lib/src/js/rewrite_async.dart
index 179a37f4b1d14f444cd169843879d83399b6475e..0f6810d00bc84587b97c7a89a743e96d1e6eb358 100644
--- a/pkg/compiler/lib/src/js/rewrite_async.dart
+++ b/pkg/compiler/lib/src/js/rewrite_async.dart
@@ -363,14 +363,16 @@ abstract class AsyncRewriterBase extends js.NodeVisitor {
/// If the return value of visiting [node] is an expression guaranteed to have
/// no side effect, it is dropped.
void visitExpressionIgnoreResult(js.Expression node) {
- js.Expression result = node.accept(this);
+ // TODO(28763): Remove `<dynamic>` when issue 28763 is fixed.
+ js.Expression result = node.accept<dynamic>(this);
if (!(result is js.Literal || result is js.VariableUse)) {
addExpressionStatement(result);
}
}
js.Expression visitExpression(js.Expression node) {
- return node.accept(this);
+ // TODO(28763): Remove `<dynamic>` when issue 28763 is fixed.
+ return node.accept<dynamic>(this);
}
/// Calls [fn] with the value of evaluating [node1] and [node2].
« no previous file with comments | « pkg/compiler/lib/src/js/js.dart ('k') | pkg/js_ast/lib/src/nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698