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

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

Issue 2627723003: Improvements to the kernel tree shaker. (Closed)
Patch Set: Fix issue with async method whose body becomes tree shaken, but not its interface Created 3 years, 11 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 790b3fd75dca028ad0d21ed8ae2bcef7608980c9..28ce858e35d891b08969c33208f083373b244464 100644
--- a/pkg/kernel/lib/core_types.dart
+++ b/pkg/kernel/lib/core_types.dart
@@ -25,8 +25,9 @@ class CoreTypes {
Class internalSymbolClass;
Class typeClass;
Class functionClass;
+ Class invocationClass;
- Library getCoreLibrary(String uri) => _dartLibraries[uri].library;
+ Library getCoreLibrary(String uri) => _dartLibraries[uri]?.library;
Class getCoreClass(String libraryUri, String className) {
return _dartLibraries[libraryUri].require(className);
@@ -63,6 +64,7 @@ class CoreTypes {
symbolClass = dartCore.require('Symbol');
typeClass = dartCore.require('Type');
functionClass = dartCore.require('Function');
+ invocationClass = dartCore.require('Invocation');
futureClass = dartAsync.require('Future');
streamClass = dartAsync.require('Stream');
internalSymbolClass = dartInternal.require('Symbol');

Powered by Google App Engine
This is Rietveld 408576698