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

Unified Diff: pkg/analyzer/lib/src/generated/testing/element_factory.dart

Issue 1679923002: Resynthesize constructor initializers. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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
Index: pkg/analyzer/lib/src/generated/testing/element_factory.dart
diff --git a/pkg/analyzer/lib/src/generated/testing/element_factory.dart b/pkg/analyzer/lib/src/generated/testing/element_factory.dart
index 448a2da6b7173ff330fc88bfbec8f28a18085023..72d8acff08648a7ba3b61ef71ef25e88aa69fbe9 100644
--- a/pkg/analyzer/lib/src/generated/testing/element_factory.dart
+++ b/pkg/analyzer/lib/src/generated/testing/element_factory.dart
@@ -118,6 +118,9 @@ class ElementFactory {
constructor.returnType = type;
constructor.enclosingElement = definingClass;
constructor.type = new FunctionTypeImpl(constructor);
+ if (!constructor.isSynthetic) {
+ constructor.constantInitializers = <ConstructorInitializer>[];
+ }
return constructor;
}

Powered by Google App Engine
This is Rietveld 408576698