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

Unified Diff: modules/angular2/test/transform/two_deps_files/expected/index.bootstrap.dart

Issue 927373004: Initial commit of Dart transformer to generate constructor stubs, see https://github.com/angular/an… (Closed) Base URL: https://github.com/kegluneq/angular.git@master
Patch Set: Created 5 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
Index: modules/angular2/test/transform/two_deps_files/expected/index.bootstrap.dart
diff --git a/modules/angular2/test/transform/two_deps_files/expected/index.bootstrap.dart b/modules/angular2/test/transform/two_deps_files/expected/index.bootstrap.dart
new file mode 100644
index 0000000000000000000000000000000000000000..8e38a7a82af50f85811df6dd042562398f8d25ff
--- /dev/null
+++ b/modules/angular2/test/transform/two_deps_files/expected/index.bootstrap.dart
@@ -0,0 +1,18 @@
+import 'package:angular2/src/reflection/reflection.dart' show reflector;
+import 'bar.dart' as i0;
+import 'foo.dart' as i1;
+import 'package:angular2/src/core/annotations/annotations.dart' as i2;
+import 'index.dart' as i3;
+
+main() {
+ reflector
+ ..registerType(i0.Component2, {
+ "factory":
+ (i1.MyContext c, String inValue) => new i0.Component2(c, inValue),
+ "parameters": const [const [i1.MyContext, String]],
+ "annotations": const [
+ const i2.Directive(context: const i1.MyContext(i1.contextString))
+ ]
+ });
+ i3.main();
+}

Powered by Google App Engine
This is Rietveld 408576698