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

Unified Diff: pkg/kernel/lib/core_types.dart

Issue 2954823002: Implement type inference for try/catch blocks. (Closed)
Patch Set: Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/front_end/testcases/kompile.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/lib/core_types.dart
diff --git a/pkg/kernel/lib/core_types.dart b/pkg/kernel/lib/core_types.dart
index 84bf835bd458230d0fa67658a32e217b599477b8..13c1a63417d9c951ee49f31a5ac86e810f9aeece 100644
--- a/pkg/kernel/lib/core_types.dart
+++ b/pkg/kernel/lib/core_types.dart
@@ -71,6 +71,7 @@ class CoreTypes {
Library _asyncLibrary;
Class _futureClass;
+ Class _stackTraceClass;
Class _streamClass;
Class _completerClass;
Class _futureOrClass;
@@ -235,6 +236,10 @@ class CoreTypes {
return _printProcedure ??= _index.getTopLevelMember('dart:core', 'print');
}
+ Class get stackTraceClass {
+ return _stackTraceClass ??= _index.getClass('dart:core', 'StackTrace');
+ }
+
Class get streamClass {
return _streamClass ??= _index.getClass('dart:async', 'Stream');
}
« 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