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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library dart2js.js_backend.helpers; 5 library dart2js.js_backend.helpers;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../common/names.dart' show 8 import '../common/names.dart' show
9 Uris; 9 Uris;
10 import '../common/resolution.dart' show 10 import '../common/resolution.dart' show
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 classElement.ensureResolved(resolution); 579 classElement.ensureResolved(resolution);
580 return classElement.lookupLocalMember("endOfIteration"); 580 return classElement.lookupLocalMember("endOfIteration");
581 } 581 }
582 582
583 Element get syncStarIterable { 583 Element get syncStarIterable {
584 ClassElement classElement = findAsyncHelper("_SyncStarIterable"); 584 ClassElement classElement = findAsyncHelper("_SyncStarIterable");
585 classElement.ensureResolved(resolution); 585 classElement.ensureResolved(resolution);
586 return classElement; 586 return classElement;
587 } 587 }
588 588
589 Element get futureImplementation {
590 ClassElement classElement = findAsyncHelper('_Future');
591 classElement.ensureResolved(resolution);
592 return classElement;
593 }
594
595 Element get controllerStream {
596 ClassElement classElement = findAsyncHelper("_ControllerStream");
597 classElement.ensureResolved(resolution);
598 return classElement;
599 }
600
589 Element get syncStarIterableConstructor { 601 Element get syncStarIterableConstructor {
590 ClassElement classElement = syncStarIterable; 602 ClassElement classElement = syncStarIterable;
591 classElement.ensureResolved(resolution); 603 classElement.ensureResolved(resolution);
592 return classElement.lookupConstructor(""); 604 return classElement.lookupConstructor("");
593 } 605 }
594 606
595 Element get syncCompleterConstructor { 607 Element get syncCompleterConstructor {
596 ClassElement classElement = find(compiler.asyncLibrary, "Completer"); 608 ClassElement classElement = find(compiler.asyncLibrary, "Completer");
597 classElement.ensureResolved(resolution); 609 classElement.ensureResolved(resolution);
598 return classElement.lookupConstructor("sync"); 610 return classElement.lookupConstructor("sync");
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 return find(isolateHelperLibrary, '_callInIsolate'); 672 return find(isolateHelperLibrary, '_callInIsolate');
661 } 673 }
662 674
663 Element get findIndexForNativeSubclassType { 675 Element get findIndexForNativeSubclassType {
664 return findInterceptor('findIndexForNativeSubclassType'); 676 return findInterceptor('findIndexForNativeSubclassType');
665 } 677 }
666 678
667 Element get convertRtiToRuntimeType { 679 Element get convertRtiToRuntimeType {
668 return findHelper('convertRtiToRuntimeType'); 680 return findHelper('convertRtiToRuntimeType');
669 } 681 }
670 } 682 }
OLDNEW
« 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