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

Unified Diff: third_party/pkg/di/test_assets/gen_test1/main.dart

Issue 257423008: Update all Angular libs (run update_all.sh). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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 | « third_party/pkg/di/test_assets/gen_test1/common2.dart ('k') | third_party/pkg/di/test_tf_gen.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/pkg/di/test_assets/gen_test1/main.dart
diff --git a/third_party/pkg/di/test/assets/gen_test1/main.dart b/third_party/pkg/di/test_assets/gen_test1/main.dart
similarity index 76%
rename from third_party/pkg/di/test/assets/gen_test1/main.dart
rename to third_party/pkg/di/test_assets/gen_test1/main.dart
index 1b68333591812733fb27f7df2332241356fc257c..c1c6dd899e4a5d73a61928edc170abbf05e823ce 100644
--- a/third_party/pkg/di/test/assets/gen_test1/main.dart
+++ b/third_party/pkg/di/test_assets/gen_test1/main.dart
@@ -9,12 +9,17 @@ import 'a.dart' as a;
@lazyB
import 'b.dart' as b;
+@lazyC
+import 'c.dart' as c;
+
const lazyA = const DeferredLibrary('lib_a');
const lazyB = const DeferredLibrary('lib_b');
+const lazyC = const DeferredLibrary('lib_c');
void main() {
lazyA.load().then(onALoaded);
lazyB.load().then(onBLoaded);
+ lazyC.load().then(onCLoaded);
}
void onALoaded(_) {
@@ -27,7 +32,11 @@ void onBLoaded(_) {
serviceB.sayHi();
}
-@Injectable()
+void onCLoaded(_) {
+ c.cStuff();
+}
+
+@InjectableTest()
class ServiceMain {
sayHi() {
print('Hi ServiceMain!');
« no previous file with comments | « third_party/pkg/di/test_assets/gen_test1/common2.dart ('k') | third_party/pkg/di/test_tf_gen.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698