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

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

Issue 2669303002: Support for modular mixin resolution. (Closed)
Patch Set: Fix a bug Created 3 years, 10 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/kernel/lib/binary/ast_to_binary.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 28ce858e35d891b08969c33208f083373b244464..72bf93d99b80eb52e44e468b9d3f33c33c2d0dc0 100644
--- a/pkg/kernel/lib/core_types.dart
+++ b/pkg/kernel/lib/core_types.dart
@@ -27,6 +27,33 @@ class CoreTypes {
Class functionClass;
Class invocationClass;
+ static final Map<String, List<String>> requiredClasses = {
+ 'dart:core': [
+ 'Object',
+ 'Null',
+ 'bool',
+ 'int',
+ 'num',
+ 'double',
+ 'String',
+ 'List',
+ 'Map',
+ 'Iterable',
+ 'Iterator',
+ 'Symbol',
+ 'Type',
+ 'Function',
+ 'Invocation',
+ ],
+ 'dart:_internal': [
+ 'Symbol',
+ ],
+ 'dart:async': [
+ 'Future',
+ 'Stream',
+ ]
+ };
+
Library getCoreLibrary(String uri) => _dartLibraries[uri]?.library;
Class getCoreClass(String libraryUri, String className) {
« no previous file with comments | « pkg/kernel/lib/binary/ast_to_binary.dart ('k') | pkg/kernel/lib/target/targets.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698