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

Unified Diff: pkg/compiler/lib/src/resolution/signatures.dart

Issue 2653203002: Use entities in CommonElements interface. (Closed)
Patch Set: Created 3 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 | « pkg/compiler/lib/src/resolution/resolution.dart ('k') | pkg/compiler/lib/src/ssa/builder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/resolution/signatures.dart
diff --git a/pkg/compiler/lib/src/resolution/signatures.dart b/pkg/compiler/lib/src/resolution/signatures.dart
index ae39454ca961667060499877c13bbffcf1d8e08f..07f3bbaf9407b7761bd184a3d20b4ad4d7d5a0ef 100644
--- a/pkg/compiler/lib/src/resolution/signatures.dart
+++ b/pkg/compiler/lib/src/resolution/signatures.dart
@@ -390,13 +390,19 @@ class SignatureResolver extends MappingVisitor<FormalElementX> {
returnType = visitor.resolveReturnType(returnNode);
break;
case AsyncMarker.SYNC_STAR:
- returnType = resolution.commonElements.iterableType();
+ ResolutionInterfaceType iterableType =
+ resolution.commonElements.iterableType();
+ returnType = iterableType;
break;
case AsyncMarker.ASYNC:
- returnType = resolution.commonElements.futureType();
+ ResolutionInterfaceType futureType =
+ resolution.commonElements.futureType();
+ returnType = futureType;
break;
case AsyncMarker.ASYNC_STAR:
- returnType = resolution.commonElements.streamType();
+ ResolutionInterfaceType streamType =
+ resolution.commonElements.streamType();
+ returnType = streamType;
break;
}
}
« no previous file with comments | « pkg/compiler/lib/src/resolution/resolution.dart ('k') | pkg/compiler/lib/src/ssa/builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698