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

Side by Side Diff: pkg/kernel/lib/transformations/continuation.dart

Issue 2890933002: Use LibraryIndex in CoreTypes instead of extending it. (Closed)
Patch Set: Make everything lazy in CoreTypes. Created 3 years, 7 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 unified diff | Download patch
« no previous file with comments | « pkg/kernel/lib/core_types.dart ('k') | pkg/kernel/lib/transformations/method_call.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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 kernel.transformations.continuation; 5 library kernel.transformations.continuation;
6 6
7 import 'dart:math' as math; 7 import 'dart:math' as math;
8 8
9 import '../ast.dart'; 9 import '../ast.dart';
10 import '../core_types.dart'; 10 import '../core_types.dart';
(...skipping 897 matching lines...) Expand 10 before | Expand all | Expand 10 after
908 this.futureMicrotaskConstructor, 908 this.futureMicrotaskConstructor,
909 this.streamControllerConstructor, 909 this.streamControllerConstructor,
910 this.asyncThenWrapper, 910 this.asyncThenWrapper,
911 this.asyncErrorWrapper, 911 this.asyncErrorWrapper,
912 this.awaitHelper, 912 this.awaitHelper,
913 this.coreTypes); 913 this.coreTypes);
914 914
915 factory HelperNodes.fromProgram(Program program) { 915 factory HelperNodes.fromProgram(Program program) {
916 var coreTypes = new CoreTypes(program); 916 var coreTypes = new CoreTypes(program);
917 return new HelperNodes( 917 return new HelperNodes(
918 coreTypes.getLibrary('dart:async'), 918 coreTypes.asyncLibrary,
919 coreTypes.getLibrary('dart:core'), 919 coreTypes.coreLibrary,
920 coreTypes.getClass('dart:core', 'Iterator'), 920 coreTypes.iteratorClass,
921 coreTypes.getClass('dart:async', 'Future'), 921 coreTypes.futureClass,
922 coreTypes.getClass('dart:async', 'FutureOr'), 922 coreTypes.futureOrClass,
923 coreTypes.getClass('dart:async', 'Completer'), 923 coreTypes.completerClass,
924 coreTypes.getTopLevelMember('dart:core', 'print'), 924 coreTypes.printProcedure,
925 coreTypes.getMember('dart:async', 'Completer', 'sync'), 925 coreTypes.completerSyncConstructor,
926 coreTypes.getMember('dart:core', '_SyncIterable', ''), 926 coreTypes.syncIterableDefaultConstructor,
927 coreTypes.getMember('dart:async', '_StreamIterator', ''), 927 coreTypes.streamIteratorDefaultConstructor,
928 coreTypes.getMember('dart:async', 'Future', 'microtask'), 928 coreTypes.futureMicrotaskConstructor,
929 coreTypes.getMember('dart:async', '_AsyncStarStreamController', ''), 929 coreTypes.asyncStarStreamControllerDefaultConstructor,
930 coreTypes.getTopLevelMember('dart:async', '_asyncThenWrapperHelper'), 930 coreTypes.asyncThenWrapperHelperProcedure,
931 coreTypes.getTopLevelMember('dart:async', '_asyncErrorWrapperHelper'), 931 coreTypes.asyncErrorWrapperHelperProcedure,
932 coreTypes.getTopLevelMember('dart:async', '_awaitHelper'), 932 coreTypes.awaitHelperProcedure,
933 coreTypes); 933 coreTypes);
934 } 934 }
935 } 935 }
OLDNEW
« no previous file with comments | « pkg/kernel/lib/core_types.dart ('k') | pkg/kernel/lib/transformations/method_call.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698