OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/prefix11_test', null, /* Imports */[ |
| 2 'dart_sdk', |
| 3 'expect' |
| 4 ], function load__prefix11_test(exports, dart_sdk, expect) { |
| 5 'use strict'; |
| 6 const core = dart_sdk.core; |
| 7 const dart = dart_sdk.dart; |
| 8 const dartx = dart_sdk.dartx; |
| 9 const expect$ = expect.expect; |
| 10 const prefix11_test = Object.create(null); |
| 11 const library10 = Object.create(null); |
| 12 const library11 = Object.create(null); |
| 13 let Library111 = () => (Library111 = dart.constFn(library11.Library111$()))(); |
| 14 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 15 prefix11_test.Prefix11Test = class Prefix11Test extends core.Object { |
| 16 static Test1() { |
| 17 let result = 0; |
| 18 let obj = new library10.Library10(1); |
| 19 result = core.int._check(obj.fld); |
| 20 expect$.Expect.equals(1, result); |
| 21 result = dart.notNull(result) + dart.notNull(core.int._check(obj.func())); |
| 22 expect$.Expect.equals(3, result); |
| 23 result = dart.notNull(result) + dart.notNull(core.int._check(library10.Lib
rary10.static_func())); |
| 24 expect$.Expect.equals(6, result); |
| 25 result = dart.notNull(result) + dart.notNull(library10.Library10.static_fl
d); |
| 26 expect$.Expect.equals(10, result); |
| 27 } |
| 28 static Test2() { |
| 29 let result = 0; |
| 30 let obj = new library11.Library11(4); |
| 31 result = core.int._check(obj.fld); |
| 32 expect$.Expect.equals(4, result); |
| 33 result = dart.notNull(result) + dart.notNull(core.int._check(obj.func())); |
| 34 expect$.Expect.equals(7, result); |
| 35 result = dart.notNull(result) + dart.notNull(core.int._check(library11.Lib
rary11.static_func())); |
| 36 expect$.Expect.equals(9, result); |
| 37 result = dart.notNull(result) + dart.notNull(core.int._check(library11.Lib
rary11.static_fld)); |
| 38 expect$.Expect.equals(10, result); |
| 39 } |
| 40 static Test3() { |
| 41 expect$.Expect.equals(10, library10.top_level10); |
| 42 expect$.Expect.equals(20, library10.top_level_func10()); |
| 43 } |
| 44 static Test4() { |
| 45 expect$.Expect.equals(100, library11.top_level11); |
| 46 expect$.Expect.equals(200, library11.top_level_func11()); |
| 47 } |
| 48 }; |
| 49 dart.setSignature(prefix11_test.Prefix11Test, { |
| 50 statics: () => ({ |
| 51 Test1: dart.definiteFunctionType(dart.dynamic, []), |
| 52 Test2: dart.definiteFunctionType(dart.dynamic, []), |
| 53 Test3: dart.definiteFunctionType(dart.dynamic, []), |
| 54 Test4: dart.definiteFunctionType(dart.dynamic, []) |
| 55 }), |
| 56 names: ['Test1', 'Test2', 'Test3', 'Test4'] |
| 57 }); |
| 58 prefix11_test.main = function() { |
| 59 prefix11_test.Prefix11Test.Test1(); |
| 60 prefix11_test.Prefix11Test.Test2(); |
| 61 prefix11_test.Prefix11Test.Test3(); |
| 62 prefix11_test.Prefix11Test.Test4(); |
| 63 }; |
| 64 dart.fn(prefix11_test.main, VoidTodynamic()); |
| 65 library10.Library10 = class Library10 extends core.Object { |
| 66 new(fld) { |
| 67 this.fld = fld; |
| 68 } |
| 69 func() { |
| 70 return 2; |
| 71 } |
| 72 static static_func() { |
| 73 let result = 0; |
| 74 let obj = new library11.Library11(4); |
| 75 result = core.int._check(obj.fld); |
| 76 expect$.Expect.equals(4, result); |
| 77 result = dart.notNull(result) + dart.notNull(core.int._check(obj.func())); |
| 78 expect$.Expect.equals(7, result); |
| 79 result = dart.notNull(result) + dart.notNull(core.int._check(library11.Lib
rary11.static_func())); |
| 80 expect$.Expect.equals(9, result); |
| 81 result = dart.notNull(result) + dart.notNull(library11.Library11.static_fl
d); |
| 82 expect$.Expect.equals(10, result); |
| 83 expect$.Expect.equals(100, library11.top_level11); |
| 84 expect$.Expect.equals(200, library11.top_level_func11()); |
| 85 return 3; |
| 86 } |
| 87 }; |
| 88 dart.setSignature(library10.Library10, { |
| 89 constructors: () => ({new: dart.definiteFunctionType(library10.Library10, [d
art.dynamic])}), |
| 90 methods: () => ({func: dart.definiteFunctionType(dart.dynamic, [])}), |
| 91 statics: () => ({static_func: dart.definiteFunctionType(dart.dynamic, [])}), |
| 92 names: ['static_func'] |
| 93 }); |
| 94 library10.Library10.static_fld = 4; |
| 95 library10.top_level10 = 10; |
| 96 library10.top_level_func10 = function() { |
| 97 return 20; |
| 98 }; |
| 99 dart.fn(library10.top_level_func10, VoidTodynamic()); |
| 100 library11.Library11 = class Library11 extends core.Object { |
| 101 new(fld) { |
| 102 this.fld = fld; |
| 103 } |
| 104 namedConstructor(fld) { |
| 105 this.fld = fld; |
| 106 } |
| 107 func() { |
| 108 return 3; |
| 109 } |
| 110 static static_func() { |
| 111 return 2; |
| 112 } |
| 113 }; |
| 114 dart.defineNamedConstructor(library11.Library11, 'namedConstructor'); |
| 115 dart.setSignature(library11.Library11, { |
| 116 constructors: () => ({ |
| 117 new: dart.definiteFunctionType(library11.Library11, [dart.dynamic]), |
| 118 namedConstructor: dart.definiteFunctionType(library11.Library11, [dart.dyn
amic]) |
| 119 }), |
| 120 methods: () => ({func: dart.definiteFunctionType(dart.dynamic, [])}), |
| 121 statics: () => ({static_func: dart.definiteFunctionType(dart.dynamic, [])}), |
| 122 names: ['static_func'] |
| 123 }); |
| 124 library11.Library11.static_fld = 1; |
| 125 library11.Library111$ = dart.generic(T => { |
| 126 class Library111 extends core.Object { |
| 127 namedConstructor(fld) { |
| 128 this.fld = fld; |
| 129 } |
| 130 } |
| 131 dart.addTypeTests(Library111); |
| 132 dart.defineNamedConstructor(Library111, 'namedConstructor'); |
| 133 dart.setSignature(Library111, { |
| 134 constructors: () => ({namedConstructor: dart.definiteFunctionType(library1
1.Library111$(T), [T])}) |
| 135 }); |
| 136 return Library111; |
| 137 }); |
| 138 library11.Library111 = Library111(); |
| 139 library11.top_level11 = 100; |
| 140 library11.top_level_func11 = function() { |
| 141 return 200; |
| 142 }; |
| 143 dart.fn(library11.top_level_func11, VoidTodynamic()); |
| 144 // Exports: |
| 145 exports.prefix11_test = prefix11_test; |
| 146 exports.library10 = library10; |
| 147 exports.library11 = library11; |
| 148 }); |
OLD | NEW |