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

Unified Diff: pkg/kernel/lib/ast.dart

Issue 2956153002: Fix order of visitChildren in Constructors. (Closed)
Patch Set: . Created 3 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/lib/ast.dart
diff --git a/pkg/kernel/lib/ast.dart b/pkg/kernel/lib/ast.dart
index ef9ad9eb115e11a12a3ce6dfd1abe8a5e2b42370..f08c1c00b37bdb71462e0b4a6f5e1d86a46c24f4 100644
--- a/pkg/kernel/lib/ast.dart
+++ b/pkg/kernel/lib/ast.dart
@@ -1085,17 +1085,17 @@ class Constructor extends Member {
visitChildren(Visitor v) {
visitList(annotations, v);
name?.accept(v);
- function?.accept(v);
visitList(initializers, v);
+ function?.accept(v);
}
transformChildren(Transformer v) {
transformList(annotations, v, this);
+ transformList(initializers, v, this);
if (function != null) {
function = function.accept(v);
function?.parent = this;
}
- transformList(initializers, v, this);
}
DartType get getterType => const BottomType();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698