OLD | NEW |
1 dart_library.library('language/static_const_field_test', null, /* Imports */[ | 1 dart_library.library('language/static_const_field_test', null, /* Imports */[ |
2 'dart_sdk', | 2 'dart_sdk', |
3 'expect' | 3 'expect' |
4 ], function load__static_const_field_test(exports, dart_sdk, expect) { | 4 ], function load__static_const_field_test(exports, dart_sdk, expect) { |
5 'use strict'; | 5 'use strict'; |
6 const core = dart_sdk.core; | 6 const core = dart_sdk.core; |
7 const dart = dart_sdk.dart; | 7 const dart = dart_sdk.dart; |
8 const dartx = dart_sdk.dartx; | 8 const dartx = dart_sdk.dartx; |
9 const expect$ = expect.expect; | 9 const expect$ = expect.expect; |
10 const static_const_field_test = Object.create(null); | 10 const static_const_field_test = Object.create(null); |
(...skipping 15 matching lines...) Expand all Loading... |
26 }); | 26 }); |
27 static_const_field_test.A.b = 3 + 5; | 27 static_const_field_test.A.b = 3 + 5; |
28 static_const_field_test.A.s1 = "hula"; | 28 static_const_field_test.A.s1 = "hula"; |
29 static_const_field_test.A.s2 = "hula"; | 29 static_const_field_test.A.s2 = "hula"; |
30 static_const_field_test.A.s3 = "hop"; | 30 static_const_field_test.A.s3 = "hop"; |
31 static_const_field_test.A.d1 = 1.1; | 31 static_const_field_test.A.d1 = 1.1; |
32 static_const_field_test.A.d2 = 0.55 + 0.55; | 32 static_const_field_test.A.d2 = 0.55 + 0.55; |
33 static_const_field_test.A.artist2 = static_const_field_test.Switzerland.AG; | 33 static_const_field_test.A.artist2 = static_const_field_test.Switzerland.AG; |
34 static_const_field_test.A.architect1 = static_const_field_test.Spain.AG; | 34 static_const_field_test.A.architect1 = static_const_field_test.Spain.AG; |
35 static_const_field_test.A.array1 = dart.constList([1, 2], core.int); | 35 static_const_field_test.A.array1 = dart.constList([1, 2], core.int); |
36 static_const_field_test.A.map1 = dart.const(dart.map({Monday: 1, Tuesday: 2}))
; | 36 static_const_field_test.A.map1 = dart.const(dart.map({Monday: 1, Tuesday: 2},
core.String, core.int)); |
37 dart.defineLazy(static_const_field_test.A, { | 37 dart.defineLazy(static_const_field_test.A, { |
38 get a() { | 38 get a() { |
39 return dart.const(new static_const_field_test.A()); | 39 return dart.const(new static_const_field_test.A()); |
40 }, | 40 }, |
41 get c() { | 41 get c() { |
42 return static_const_field_test.A.b + 7; | 42 return static_const_field_test.A.b + 7; |
43 }, | 43 }, |
44 get d() { | 44 get d() { |
45 return dart.const(new static_const_field_test.A()); | 45 return dart.const(new static_const_field_test.A()); |
46 } | 46 } |
(...skipping 19 matching lines...) Expand all Loading... |
66 statics: () => ({testMain: dart.definiteFunctionType(dart.dynamic, [])}), | 66 statics: () => ({testMain: dart.definiteFunctionType(dart.dynamic, [])}), |
67 names: ['testMain'] | 67 names: ['testMain'] |
68 }); | 68 }); |
69 static_const_field_test.main = function() { | 69 static_const_field_test.main = function() { |
70 static_const_field_test.StaticFinalFieldTest.testMain(); | 70 static_const_field_test.StaticFinalFieldTest.testMain(); |
71 }; | 71 }; |
72 dart.fn(static_const_field_test.main, VoidTodynamic()); | 72 dart.fn(static_const_field_test.main, VoidTodynamic()); |
73 // Exports: | 73 // Exports: |
74 exports.static_const_field_test = static_const_field_test; | 74 exports.static_const_field_test = static_const_field_test; |
75 }); | 75 }); |
OLD | NEW |