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'); |
} |