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

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

Issue 1569633003: Fix resynthesis of variables/fields with implicit types. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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 | pkg/analyzer/test/src/summary/resynthesize_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a091a6ec65241f3a060585b11fd4187747735e06..168069365dddb201aa3788b24a14d9be42f23456 100644
--- a/pkg/analyzer/lib/src/summary/resynthesize.dart
+++ b/pkg/analyzer/lib/src/summary/resynthesize.dart
@@ -513,6 +513,7 @@ class _LibraryResynthesizer {
getter.returnType = type;
getter.type = new FunctionTypeImpl(getter);
getter.variable = element;
+ getter.hasImplicitReturnType = element.hasImplicitType;
holder.addAccessor(getter);
element.getter = getter;
if (!(element.isConst || element.isFinal)) {
@@ -879,6 +880,7 @@ class _LibraryResynthesizer {
UnlinkedVariable serializedVariable) {
element.type = buildType(serializedVariable.type);
element.const3 = serializedVariable.isConst;
+ element.hasImplicitType = serializedVariable.hasImplicitType;
}
/**
« no previous file with comments | « no previous file | pkg/analyzer/test/src/summary/resynthesize_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698