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

Unified Diff: dart/frog/leg/compiler.dart

Issue 9413006: Handle imports of dart:core and dart:coreimpl (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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 | « no previous file | dart/frog/leg/scanner/scanner_task.dart » ('j') | dart/frog/leg/scanner/scanner_task.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/frog/leg/compiler.dart
diff --git a/dart/frog/leg/compiler.dart b/dart/frog/leg/compiler.dart
index b37616a4c4aa598ddd8ea4aeef17b2efe6dface4..a8f03b30a827ebdeb4456655cac6df7c0e0914e2 100644
--- a/dart/frog/leg/compiler.dart
+++ b/dart/frog/leg/compiler.dart
@@ -169,6 +169,9 @@ class Compiler implements DiagnosticListener {
// TODO(ngeoffray): Lazily add this method.
universe.invokedNames[NO_SUCH_METHOD] =
new Set<Invocation>.from(<Invocation>[new Invocation(2)]);
+
+ universe.libraries.putIfAbsent('dart:core', () => coreLibrary);
ngeoffray 2012/02/16 10:50:50 Why putIfAbsent and not [] ?
ahe 2012/02/16 11:23:18 No particular reason. Now that I think about it, i
+ universe.libraries.putIfAbsent('dart:coreimpl', () => coreImplLibrary);
}
/** Define the JS helper functions in the given library. */
« no previous file with comments | « no previous file | dart/frog/leg/scanner/scanner_task.dart » ('j') | dart/frog/leg/scanner/scanner_task.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698