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

Unified Diff: pkg/analyzer/lib/src/summary/resynthesize.dart

Issue 2033293003: Compute ConstructorElement.returnType/type dynamically. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
Index: pkg/analyzer/lib/src/summary/resynthesize.dart
diff --git a/pkg/analyzer/lib/src/summary/resynthesize.dart b/pkg/analyzer/lib/src/summary/resynthesize.dart
index dc673e69a137b06d102bde2f151a5a8e2c2d067f..e6729c51d171f5942eaea3a84d661b0e1fc15f53 100644
--- a/pkg/analyzer/lib/src/summary/resynthesize.dart
+++ b/pkg/analyzer/lib/src/summary/resynthesize.dart
@@ -1724,9 +1724,6 @@ class _UnitResynthesizer {
// Synthesize implicit constructors.
ConstructorElementImpl constructor = new ConstructorElementImpl('', -1);
constructor.synthetic = true;
- constructor.returnType = classElement.type;
- constructor.type = new FunctionTypeImpl.elementWithNameAndArgs(
- constructor, null, classElement.type.typeArguments, false);
memberHolder.addConstructor(constructor);
}
classElement.constructors = memberHolder.constructors;

Powered by Google App Engine
This is Rietveld 408576698