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

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

Issue 2931423002: Prepare for improved error recovery from compile-time errors. (Closed)
Patch Set: Rebased on 11f82b12d2fb4f2c323cbc5a25de9835cc8e5031 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/lib/src/fasta/source/source_loader.dart ('k') | pkg/kernel/lib/target/targets.dart » ('j') | 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 31df9490f82d39d7670279a6d0bfc1d7b5c60fc7..eeb3700757792eb236aa086361414990f08c8251 100644
--- a/pkg/kernel/lib/core_types.dart
+++ b/pkg/kernel/lib/core_types.dart
@@ -61,6 +61,8 @@ class CoreTypes {
Procedure _listFromConstructor;
Procedure _printProcedure;
Procedure _identicalProcedure;
+ Constructor _constantExpressionErrorDefaultConstructor;
+ Constructor _compileTimeErrorDefaultConstructor;
Class _internalSymbolClass;
@@ -255,4 +257,14 @@ class CoreTypes {
Class get typeClass {
return _typeClass ??= _index.getClass('dart:core', 'Type');
}
+
+ Constructor get constantExpressionErrorDefaultConstructor {
+ return _constantExpressionErrorDefaultConstructor ??=
+ _index.getMember('dart:core', '_ConstantExpressionError', '');
+ }
+
+ Constructor get compileTimeErrorDefaultConstructor {
+ return _compileTimeErrorDefaultConstructor ??=
+ _index.getMember('dart:core', '_CompileTimeError', '');
+ }
}
« no previous file with comments | « pkg/front_end/lib/src/fasta/source/source_loader.dart ('k') | pkg/kernel/lib/target/targets.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698