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); |
+} |