| OLD | NEW |
| 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 library kernel.core_types; | 4 library kernel.core_types; |
| 5 | 5 |
| 6 import 'ast.dart'; | 6 import 'ast.dart'; |
| 7 import 'library_index.dart'; | 7 import 'library_index.dart'; |
| 8 | 8 |
| 9 /// Provides access to the classes and libraries in the core libraries. | 9 /// Provides access to the classes and libraries in the core libraries. |
| 10 class CoreTypes { | 10 class CoreTypes { |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 Library _asyncLibrary; | 70 Library _asyncLibrary; |
| 71 Class _futureClass; | 71 Class _futureClass; |
| 72 Class _streamClass; | 72 Class _streamClass; |
| 73 Class _completerClass; | 73 Class _completerClass; |
| 74 Class _futureOrClass; | 74 Class _futureOrClass; |
| 75 Procedure _completerSyncConstructor; | 75 Procedure _completerSyncConstructor; |
| 76 Procedure _futureMicrotaskConstructor; | 76 Procedure _futureMicrotaskConstructor; |
| 77 Constructor _syncIterableDefaultConstructor; | 77 Constructor _syncIterableDefaultConstructor; |
| 78 Constructor _streamIteratorDefaultConstructor; | 78 Constructor _streamIteratorDefaultConstructor; |
| 79 Constructor _asyncStarStreamControllerDefaultConstructor; | 79 Constructor _asyncStarStreamControllerDefaultConstructor; |
| 80 Procedure _asyncStackTraceHelperProcedure; | |
| 81 Procedure _asyncThenWrapperHelperProcedure; | 80 Procedure _asyncThenWrapperHelperProcedure; |
| 82 Procedure _asyncErrorWrapperHelperProcedure; | 81 Procedure _asyncErrorWrapperHelperProcedure; |
| 83 Procedure _awaitHelperProcedure; | 82 Procedure _awaitHelperProcedure; |
| 84 | 83 |
| 85 /// The `dart:mirrors` library, or `null` if the program does not use it. | 84 /// The `dart:mirrors` library, or `null` if the program does not use it. |
| 86 Library _mirrorsLibrary; | 85 Library _mirrorsLibrary; |
| 87 | 86 |
| 88 CoreTypes(Program program) : _index = new LibraryIndex.coreLibraries(program); | 87 CoreTypes(Program program) : _index = new LibraryIndex.coreLibraries(program); |
| 89 | 88 |
| 90 Procedure get asyncErrorWrapperHelperProcedure { | 89 Procedure get asyncErrorWrapperHelperProcedure { |
| 91 return _asyncErrorWrapperHelperProcedure ??= | 90 return _asyncErrorWrapperHelperProcedure ??= |
| 92 _index.getTopLevelMember('dart:async', '_asyncErrorWrapperHelper'); | 91 _index.getTopLevelMember('dart:async', '_asyncErrorWrapperHelper'); |
| 93 } | 92 } |
| 94 | 93 |
| 95 Library get asyncLibrary { | 94 Library get asyncLibrary { |
| 96 return _asyncLibrary ??= _index.getLibrary('dart:async'); | 95 return _asyncLibrary ??= _index.getLibrary('dart:async'); |
| 97 } | 96 } |
| 98 | 97 |
| 99 Constructor get asyncStarStreamControllerDefaultConstructor { | 98 Constructor get asyncStarStreamControllerDefaultConstructor { |
| 100 return _asyncStarStreamControllerDefaultConstructor ??= | 99 return _asyncStarStreamControllerDefaultConstructor ??= |
| 101 _index.getMember('dart:async', '_AsyncStarStreamController', ''); | 100 _index.getMember('dart:async', '_AsyncStarStreamController', ''); |
| 102 } | 101 } |
| 103 | 102 |
| 104 Procedure get asyncStackTraceHelperProcedure { | |
| 105 return _asyncStackTraceHelperProcedure ??= | |
| 106 _index.getTopLevelMember('dart:async', '_asyncStackTraceHelper'); | |
| 107 } | |
| 108 | |
| 109 Procedure get asyncThenWrapperHelperProcedure { | 103 Procedure get asyncThenWrapperHelperProcedure { |
| 110 return _asyncThenWrapperHelperProcedure ??= | 104 return _asyncThenWrapperHelperProcedure ??= |
| 111 _index.getTopLevelMember('dart:async', '_asyncThenWrapperHelper'); | 105 _index.getTopLevelMember('dart:async', '_asyncThenWrapperHelper'); |
| 112 } | 106 } |
| 113 | 107 |
| 114 Procedure get awaitHelperProcedure { | 108 Procedure get awaitHelperProcedure { |
| 115 return _awaitHelperProcedure ??= | 109 return _awaitHelperProcedure ??= |
| 116 _index.getTopLevelMember('dart:async', '_awaitHelper'); | 110 _index.getTopLevelMember('dart:async', '_awaitHelper'); |
| 117 } | 111 } |
| 118 | 112 |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 Constructor get constantExpressionErrorDefaultConstructor { | 262 Constructor get constantExpressionErrorDefaultConstructor { |
| 269 return _constantExpressionErrorDefaultConstructor ??= | 263 return _constantExpressionErrorDefaultConstructor ??= |
| 270 _index.getMember('dart:core', '_ConstantExpressionError', ''); | 264 _index.getMember('dart:core', '_ConstantExpressionError', ''); |
| 271 } | 265 } |
| 272 | 266 |
| 273 Constructor get compileTimeErrorDefaultConstructor { | 267 Constructor get compileTimeErrorDefaultConstructor { |
| 274 return _compileTimeErrorDefaultConstructor ??= | 268 return _compileTimeErrorDefaultConstructor ??= |
| 275 _index.getMember('dart:core', '_CompileTimeError', ''); | 269 _index.getMember('dart:core', '_CompileTimeError', ''); |
| 276 } | 270 } |
| 277 } | 271 } |
| OLD | NEW |