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

Unified Diff: dart/lib/compiler/implementation/library_map.dart

Issue 9866006: Add library mapping. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased Created 8 years, 9 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: dart/lib/compiler/implementation/library_map.dart
diff --git a/dart/lib/compiler/implementation/library_map.dart b/dart/lib/compiler/implementation/library_map.dart
new file mode 100644
index 0000000000000000000000000000000000000000..cc22c99399cc7a2aa388492ebf087836da0717a5
--- /dev/null
+++ b/dart/lib/compiler/implementation/library_map.dart
@@ -0,0 +1,24 @@
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+// TODO(ahe): Long term, it would probably be better if we do not use
+// executable code to define the locations of libraries.
+
+#library('library_map');
+
+/**
+ * Specifies the location of Dart platform libraries.
+ */
+final Map<String,String> DART2JS_LIBRARY_MAP = const <String> {
+ "core": "lib/compiler/implementation/lib/core.dart",
+ "coreimpl": "lib/compiler/implementation/lib/coreimpl.dart",
+ "_js_helper": "lib/compiler/implementation/lib/js_helper.dart",
+ "dom": "lib/dom/frog/dom_frog.dart",
+ "html": "lib/html/frog/html_frog.dart",
+ "io": "lib/compiler/implementation/lib/io.dart",
+ "isolate": "lib/isolate/isolate_leg.dart",
+ "json": "lib/json/json.dart",
+ "uri": "lib/uri/uri.dart",
+ "utf": "lib/utf/utf.dart",
+};
« no previous file with comments | « dart/lib/compiler/implementation/io/io.dart ('k') | dart/lib/compiler/implementation/scanner/scanner_task.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698