Chromium Code Reviews| 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 be97bfb0d091b1169d926c789a362dbf04581183..f333826b7a384291a422eaeeeaed76669587e4f1 100644 |
| --- a/pkg/analyzer/lib/src/summary/resynthesize.dart |
| +++ b/pkg/analyzer/lib/src/summary/resynthesize.dart |
| @@ -1764,6 +1764,11 @@ class _LibraryResynthesizer { |
| } |
| FunctionElementImpl initializerElement = |
| buildLocalFunction(serializedInitializer); |
| + // TODO(scheglov) The flag `hasImplicitReturnType` is `true` now because we |
|
Paul Berry
2016/02/18 16:40:00
FYI, I'm about to make a change to the element mod
|
| + // don't serialize the return type. But once we do, the next two statements |
| + // can be removed. |
| + assert(initializerElement.hasImplicitReturnType == true); |
| + initializerElement.hasImplicitReturnType = false; |
| initializerElement.synthetic = true; |
| variable.initializer = initializerElement; |
| } |