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

Side by Side Diff: pkg/kernel/lib/core_types.dart

Issue 2954823002: Implement type inference for try/catch blocks. (Closed)
Patch Set: Created 3 years, 5 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/front_end/testcases/kompile.status ('k') | no next file » | 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 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 Procedure _printProcedure; 64 Procedure _printProcedure;
65 Procedure _identicalProcedure; 65 Procedure _identicalProcedure;
66 Constructor _constantExpressionErrorDefaultConstructor; 66 Constructor _constantExpressionErrorDefaultConstructor;
67 Constructor _fallThroughErrorUrlAndLineConstructor; 67 Constructor _fallThroughErrorUrlAndLineConstructor;
68 Constructor _compileTimeErrorDefaultConstructor; 68 Constructor _compileTimeErrorDefaultConstructor;
69 69
70 Class _internalSymbolClass; 70 Class _internalSymbolClass;
71 71
72 Library _asyncLibrary; 72 Library _asyncLibrary;
73 Class _futureClass; 73 Class _futureClass;
74 Class _stackTraceClass;
74 Class _streamClass; 75 Class _streamClass;
75 Class _completerClass; 76 Class _completerClass;
76 Class _futureOrClass; 77 Class _futureOrClass;
77 Procedure _completerSyncConstructor; 78 Procedure _completerSyncConstructor;
78 Procedure _futureMicrotaskConstructor; 79 Procedure _futureMicrotaskConstructor;
79 Constructor _syncIterableDefaultConstructor; 80 Constructor _syncIterableDefaultConstructor;
80 Constructor _streamIteratorDefaultConstructor; 81 Constructor _streamIteratorDefaultConstructor;
81 Constructor _asyncStarStreamControllerDefaultConstructor; 82 Constructor _asyncStarStreamControllerDefaultConstructor;
82 Procedure _asyncThenWrapperHelperProcedure; 83 Procedure _asyncThenWrapperHelperProcedure;
83 Procedure _asyncErrorWrapperHelperProcedure; 84 Procedure _asyncErrorWrapperHelperProcedure;
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 } 229 }
229 230
230 Class get objectClass { 231 Class get objectClass {
231 return _objectClass ??= _index.getClass('dart:core', 'Object'); 232 return _objectClass ??= _index.getClass('dart:core', 'Object');
232 } 233 }
233 234
234 Procedure get printProcedure { 235 Procedure get printProcedure {
235 return _printProcedure ??= _index.getTopLevelMember('dart:core', 'print'); 236 return _printProcedure ??= _index.getTopLevelMember('dart:core', 'print');
236 } 237 }
237 238
239 Class get stackTraceClass {
240 return _stackTraceClass ??= _index.getClass('dart:core', 'StackTrace');
241 }
242
238 Class get streamClass { 243 Class get streamClass {
239 return _streamClass ??= _index.getClass('dart:async', 'Stream'); 244 return _streamClass ??= _index.getClass('dart:async', 'Stream');
240 } 245 }
241 246
242 Constructor get streamIteratorDefaultConstructor { 247 Constructor get streamIteratorDefaultConstructor {
243 return _streamIteratorDefaultConstructor ??= 248 return _streamIteratorDefaultConstructor ??=
244 _index.getMember('dart:async', '_StreamIterator', ''); 249 _index.getMember('dart:async', '_StreamIterator', '');
245 } 250 }
246 251
247 Class get stringClass { 252 Class get stringClass {
(...skipping 21 matching lines...) Expand all
269 Constructor get fallThroughErrorUrlAndLineConstructor { 274 Constructor get fallThroughErrorUrlAndLineConstructor {
270 return _fallThroughErrorUrlAndLineConstructor ??= 275 return _fallThroughErrorUrlAndLineConstructor ??=
271 _index.getMember('dart:core', 'FallThroughError', '_create'); 276 _index.getMember('dart:core', 'FallThroughError', '_create');
272 } 277 }
273 278
274 Constructor get compileTimeErrorDefaultConstructor { 279 Constructor get compileTimeErrorDefaultConstructor {
275 return _compileTimeErrorDefaultConstructor ??= 280 return _compileTimeErrorDefaultConstructor ??=
276 _index.getMember('dart:core', '_CompileTimeError', ''); 281 _index.getMember('dart:core', '_CompileTimeError', '');
277 } 282 }
278 } 283 }
OLDNEW
« no previous file with comments | « pkg/front_end/testcases/kompile.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698