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

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

Issue 2927613002: Improve NSM handling. (Closed)
Patch Set: Address review 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
Index: pkg/kernel/lib/core_types.dart
diff --git a/pkg/kernel/lib/core_types.dart b/pkg/kernel/lib/core_types.dart
index c80447aeaf127fa41845da4298c9c9a03d19cb0d..31df9490f82d39d7670279a6d0bfc1d7b5c60fc7 100644
--- a/pkg/kernel/lib/core_types.dart
+++ b/pkg/kernel/lib/core_types.dart
@@ -57,6 +57,7 @@ class CoreTypes {
Class _invocationMirrorClass;
Constructor _invocationMirrorDefaultConstructor;
Class _noSuchMethodErrorClass;
+ Constructor _noSuchMethodErrorImplementationConstructor;
Procedure _listFromConstructor;
Procedure _printProcedure;
Procedure _identicalProcedure;
@@ -206,6 +207,13 @@ class CoreTypes {
_index.getClass('dart:core', 'NoSuchMethodError');
}
+ /// An implementation-specific constructor suitable for use by
+ /// `Target.instantiateNoSuchMethodError`.
+ Constructor get noSuchMethodErrorImplementationConstructor {
+ return _noSuchMethodErrorImplementationConstructor ??=
+ _index.getMember('dart:core', 'NoSuchMethodError', '_withType');
+ }
+
Class get nullClass {
return _nullClass ??= _index.getClass('dart:core', 'Null');
}

Powered by Google App Engine
This is Rietveld 408576698