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

Unified Diff: utils/import_mapper/passthrough_hook.dart

Issue 9369006: First prototype of import map generator. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix path to JSON. 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 | « utils/import_mapper/import_mapper.dart ('k') | utils/tests/import_mapper/import_mapper.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/import_mapper/passthrough_hook.dart
diff --git a/utils/import_mapper/passthrough_hook.dart b/utils/import_mapper/passthrough_hook.dart
new file mode 100644
index 0000000000000000000000000000000000000000..74fe383ba53bace2b36836d11abc165ecf780f71
--- /dev/null
+++ b/utils/import_mapper/passthrough_hook.dart
@@ -0,0 +1,15 @@
+// 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.
+
+/**
+ * A trivial identity import hook that generates an import map that maps all
+ * imports to their original import string.
+ */
+#library('passthrough_hook');
+
+#import('import_mapper.dart');
+
+void main() {
+ printImportMap((context, name) => name);
+}
« no previous file with comments | « utils/import_mapper/import_mapper.dart ('k') | utils/tests/import_mapper/import_mapper.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698