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

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

Issue 2951453002: [kernel] Make fasta call a new constructor on FallThroughError (Closed)
Patch Set: Addressed comments 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/target_implementation.dart ('k') | runtime/lib/errors_patch.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 70630430c7e1cff42a7c4143019f2b11de651fca..84bf835bd458230d0fa67658a32e217b599477b8 100644
--- a/pkg/kernel/lib/core_types.dart
+++ b/pkg/kernel/lib/core_types.dart
@@ -26,6 +26,7 @@ class CoreTypes {
'Function',
'Invocation',
'_ConstantExpressionError',
+ 'FallThroughError',
],
'dart:_internal': [
'Symbol',
@@ -63,6 +64,7 @@ class CoreTypes {
Procedure _printProcedure;
Procedure _identicalProcedure;
Constructor _constantExpressionErrorDefaultConstructor;
+ Constructor _fallThroughErrorUrlAndLineConstructor;
Constructor _compileTimeErrorDefaultConstructor;
Class _internalSymbolClass;
@@ -264,6 +266,11 @@ class CoreTypes {
_index.getMember('dart:core', '_ConstantExpressionError', '');
}
+ Constructor get fallThroughErrorUrlAndLineConstructor {
+ return _fallThroughErrorUrlAndLineConstructor ??=
+ _index.getMember('dart:core', 'FallThroughError', '_create');
+ }
+
Constructor get compileTimeErrorDefaultConstructor {
return _compileTimeErrorDefaultConstructor ??=
_index.getMember('dart:core', '_CompileTimeError', '');
« no previous file with comments | « pkg/front_end/lib/src/fasta/target_implementation.dart ('k') | runtime/lib/errors_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698