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

Unified Diff: pkg/compiler/lib/src/js_backend/backend_helpers.dart

Issue 1418043005: dart2js: Set inferred return types for async, async*, and sync* methods. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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/js_backend/backend.dart ('k') | pkg/compiler/lib/src/types/types.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_backend/backend_helpers.dart
diff --git a/pkg/compiler/lib/src/js_backend/backend_helpers.dart b/pkg/compiler/lib/src/js_backend/backend_helpers.dart
index 2650a7e940ee73f8125ba8af90f832b34ed66c79..affed935385c6c6a7057d40f4ffe737770ea9541 100644
--- a/pkg/compiler/lib/src/js_backend/backend_helpers.dart
+++ b/pkg/compiler/lib/src/js_backend/backend_helpers.dart
@@ -586,6 +586,18 @@ class BackendHelpers {
return classElement;
}
+ Element get futureImplementation {
+ ClassElement classElement = findAsyncHelper('_Future');
+ classElement.ensureResolved(resolution);
+ return classElement;
+ }
+
+ Element get controllerStream {
+ ClassElement classElement = findAsyncHelper("_ControllerStream");
+ classElement.ensureResolved(resolution);
+ return classElement;
+ }
+
Element get syncStarIterableConstructor {
ClassElement classElement = syncStarIterable;
classElement.ensureResolved(resolution);
@@ -667,4 +679,4 @@ class BackendHelpers {
Element get convertRtiToRuntimeType {
return findHelper('convertRtiToRuntimeType');
}
-}
+}
« no previous file with comments | « pkg/compiler/lib/src/js_backend/backend.dart ('k') | pkg/compiler/lib/src/types/types.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698