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

Unified Diff: lib/ast.dart

Issue 2502943002: Fix parent pointer issue in async rewriter. (Closed)
Patch Set: Created 4 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
« no previous file with comments | « no previous file | lib/transformations/async.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/ast.dart
diff --git a/lib/ast.dart b/lib/ast.dart
index ab0a3b5356f9f1a293343ade2ed21479d8d2273a..b8f08976ecb666e2f0f822969922e2133ff45f14 100644
--- a/lib/ast.dart
+++ b/lib/ast.dart
@@ -2455,6 +2455,11 @@ class Block extends Statement {
transformChildren(Transformer v) {
transformList(statements, v, this);
}
+
+ void addStatement(Statement node) {
+ statements.add(node);
+ node.parent = this;
+ }
}
class EmptyStatement extends Statement {
« no previous file with comments | « no previous file | lib/transformations/async.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698