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

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

Issue 2974803002: Store FunctionType(s) of local functions by value. (Closed)
Patch Set: Store FunctionElement(s) by value, but keep also 'localIndex'. Created 3 years, 5 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 | « pkg/analyzer/lib/src/summary/link.dart ('k') | no next file » | 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 66f6878c3074c8ebecc19345331624cf5d4ef60f..f6855dbc12ca0fa3c6a38b5a47c9795b5e830dc3 100644
--- a/pkg/analyzer/lib/src/summary/resynthesize.dart
+++ b/pkg/analyzer/lib/src/summary/resynthesize.dart
@@ -1655,7 +1655,7 @@ class _UnitResynthesizer {
GenericFunctionTypeElement element =
new GenericFunctionTypeElementImpl.forSerialized(context, type);
return element.type;
- } else if (type.syntheticReturnType != null) {
+ } else if (type.syntheticReturnType != null && type.reference == 0) {
FunctionElementImpl element =
new FunctionElementImpl_forLUB(context, type);
return element.type;
« no previous file with comments | « pkg/analyzer/lib/src/summary/link.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698