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

Side by Side Diff: third_party/pkg/di/test/assets/gen_test1/main.dart

Issue 256553002: Revert "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, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 import 'dart:async'; 1 import 'dart:async';
2 2
3 import 'annotations.dart'; 3 import 'annotations.dart';
4 import 'common1.dart'; 4 import 'common1.dart';
5 5
6 @lazyA 6 @lazyA
7 import 'a.dart' as a; 7 import 'a.dart' as a;
8 8
9 @lazyB 9 @lazyB
10 import 'b.dart' as b; 10 import 'b.dart' as b;
11 11
12 @lazyC
13 import 'c.dart' as c;
14
15 const lazyA = const DeferredLibrary('lib_a'); 12 const lazyA = const DeferredLibrary('lib_a');
16 const lazyB = const DeferredLibrary('lib_b'); 13 const lazyB = const DeferredLibrary('lib_b');
17 const lazyC = const DeferredLibrary('lib_c');
18 14
19 void main() { 15 void main() {
20 lazyA.load().then(onALoaded); 16 lazyA.load().then(onALoaded);
21 lazyB.load().then(onBLoaded); 17 lazyB.load().then(onBLoaded);
22 lazyC.load().then(onCLoaded);
23 } 18 }
24 19
25 void onALoaded(_) { 20 void onALoaded(_) {
26 var serviceA = new a.ServiceA(); 21 var serviceA = new a.ServiceA();
27 serviceA.sayHi(); 22 serviceA.sayHi();
28 } 23 }
29 24
30 void onBLoaded(_) { 25 void onBLoaded(_) {
31 var serviceB = new b.ServiceB(); 26 var serviceB = new b.ServiceB();
32 serviceB.sayHi(); 27 serviceB.sayHi();
33 } 28 }
34 29
35 void onCLoaded(_) { 30 @Injectable()
36 c.cStuff();
37 }
38
39 @InjectableTest()
40 class ServiceMain { 31 class ServiceMain {
41 sayHi() { 32 sayHi() {
42 print('Hi ServiceMain!'); 33 print('Hi ServiceMain!');
43 } 34 }
44 } 35 }
OLDNEW
« no previous file with comments | « third_party/pkg/di/test/assets/gen_test1/common2.dart ('k') | third_party/pkg/di/test/auto_injector_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698