OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library smoke.test.static_test; | 5 library smoke.test.static_test; |
6 | 6 |
7 import 'package:smoke/smoke.dart' show Declaration, PROPERTY, METHOD; | 7 import 'package:smoke/smoke.dart' show Declaration, PROPERTY, METHOD; |
8 import 'package:smoke/static.dart'; | 8 import 'package:smoke/static.dart'; |
9 import 'package:unittest/unittest.dart'; | 9 import 'package:unittest/unittest.dart'; |
10 import 'common.dart' hide main; | 10 import 'common.dart' hide main; |
(...skipping 11 matching lines...) Expand all Loading... |
22 #j: (o) => o.j, | 22 #j: (o) => o.j, |
23 #j2: (o) => o.j2, | 23 #j2: (o) => o.j2, |
24 #inc0: (o) => o.inc0, | 24 #inc0: (o) => o.inc0, |
25 #inc1: (o) => o.inc1, | 25 #inc1: (o) => o.inc1, |
26 #inc2: (o) => o.inc2, | 26 #inc2: (o) => o.inc2, |
27 }, | 27 }, |
28 setters: { | 28 setters: { |
29 #i: (o, v) { o.i = v; }, | 29 #i: (o, v) { o.i = v; }, |
30 #j2: (o, v) { o.j2 = v; }, | 30 #j2: (o, v) { o.j2 = v; }, |
31 }, | 31 }, |
32 parents: const { | 32 // TODO(sigmund): this could be a const map, but that triggers |
| 33 // dartbug.com/17123 |
| 34 // TODO(sigmund): before doing codegen for this, consider changing smoke's |
| 35 // defaults so we don't need to specify obvious things like `int`, or `*: |
| 36 // Object`. |
| 37 parents: { |
| 38 Annot: Object, |
| 39 AnnotB: Annot, |
33 A: Object, | 40 A: Object, |
34 B: Object, | 41 B: Object, |
35 C: Object, | 42 C: Object, |
36 C_with_A: C, | 43 C_with_A: C, |
37 D: C_with_A, | 44 D: C_with_A, |
38 E: Object, | 45 E: Object, |
39 E2: E, | 46 E2: E, |
40 F: Object, | 47 F: Object, |
41 F2: F, | 48 F2: F, |
42 G: Object, | 49 G: Object, |
43 H: G, | 50 H: G, |
| 51 int: Object, |
44 }, | 52 }, |
45 declarations: { | 53 declarations: { |
46 B: { | 54 B: { |
47 #a: const Declaration(#a, A), | 55 #a: const Declaration(#a, A), |
48 #w: const Declaration(#w, int, kind: PROPERTY), | 56 #w: const Declaration(#w, int, kind: PROPERTY), |
49 #f: const Declaration(#f, int, isFinal: true), | 57 #f: const Declaration(#f, int, isFinal: true), |
50 }, | 58 }, |
51 A: { | 59 A: { |
52 #i: const Declaration(#i, int), | 60 #i: const Declaration(#i, int), |
53 #j: const Declaration(#j, int), | 61 #j: const Declaration(#j, int), |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 #a: const Declaration(#a, int), | 95 #a: const Declaration(#a, int), |
88 #b: const Declaration(#b, int, annotations: const [a1]), | 96 #b: const Declaration(#b, int, annotations: const [a1]), |
89 #c: const Declaration(#c, int), | 97 #c: const Declaration(#c, int), |
90 #d: const Declaration(#d, int, annotations: const [a2]), | 98 #d: const Declaration(#d, int, annotations: const [a2]), |
91 }, | 99 }, |
92 H: { | 100 H: { |
93 #e: const Declaration(#e, int), | 101 #e: const Declaration(#e, int), |
94 #f: const Declaration(#f, int, annotations: const [a1]), | 102 #f: const Declaration(#f, int, annotations: const [a1]), |
95 #g: const Declaration(#g, int, annotations: const [a1]), | 103 #g: const Declaration(#g, int, annotations: const [a1]), |
96 #h: const Declaration(#h, int, annotations: const [a2]), | 104 #h: const Declaration(#h, int, annotations: const [a2]), |
| 105 #i: const Declaration(#i, int, annotations: const [a3]), |
97 }, | 106 }, |
98 }, | 107 }, |
99 names: {#i: 'i'}); | 108 names: {#i: 'i'}); |
100 | 109 |
101 main() { | 110 main() { |
102 setUp(() => useGeneratedCode(_config)); | 111 setUp(() => useGeneratedCode(_config)); |
103 common.main(); | 112 common.main(); |
104 } | 113 } |
OLD | NEW |