OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/top_level_prefixed_declaration_test', null, /* Im
ports */[ |
| 2 'dart_sdk', |
| 3 'expect' |
| 4 ], function load__top_level_prefixed_declaration_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 top_level_prefixed_declaration_test = Object.create(null); |
| 11 const library11 = Object.create(null); |
| 12 let Library111 = () => (Library111 = dart.constFn(library11.Library111$()))(); |
| 13 let VoidToLibrary11 = () => (VoidToLibrary11 = dart.constFn(dart.definiteFunct
ionType(library11.Library11, [])))(); |
| 14 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 15 top_level_prefixed_declaration_test.variable = null; |
| 16 top_level_prefixed_declaration_test.function = function() { |
| 17 return null; |
| 18 }; |
| 19 dart.lazyFn(top_level_prefixed_declaration_test.function, () => VoidToLibrary1
1()); |
| 20 dart.copyProperties(top_level_prefixed_declaration_test, { |
| 21 get getter() { |
| 22 return null; |
| 23 } |
| 24 }); |
| 25 top_level_prefixed_declaration_test.main = function() { |
| 26 expect$.Expect.isTrue(top_level_prefixed_declaration_test.variable == null); |
| 27 expect$.Expect.isTrue(top_level_prefixed_declaration_test.function() == null
); |
| 28 expect$.Expect.isTrue(top_level_prefixed_declaration_test.getter == null); |
| 29 }; |
| 30 dart.fn(top_level_prefixed_declaration_test.main, VoidTodynamic()); |
| 31 library11.Library11 = class Library11 extends core.Object { |
| 32 new(fld) { |
| 33 this.fld = fld; |
| 34 } |
| 35 namedConstructor(fld) { |
| 36 this.fld = fld; |
| 37 } |
| 38 func() { |
| 39 return 3; |
| 40 } |
| 41 static static_func() { |
| 42 return 2; |
| 43 } |
| 44 }; |
| 45 dart.defineNamedConstructor(library11.Library11, 'namedConstructor'); |
| 46 dart.setSignature(library11.Library11, { |
| 47 constructors: () => ({ |
| 48 new: dart.definiteFunctionType(library11.Library11, [dart.dynamic]), |
| 49 namedConstructor: dart.definiteFunctionType(library11.Library11, [dart.dyn
amic]) |
| 50 }), |
| 51 methods: () => ({func: dart.definiteFunctionType(dart.dynamic, [])}), |
| 52 statics: () => ({static_func: dart.definiteFunctionType(dart.dynamic, [])}), |
| 53 names: ['static_func'] |
| 54 }); |
| 55 library11.Library11.static_fld = 1; |
| 56 library11.Library111$ = dart.generic(T => { |
| 57 class Library111 extends core.Object { |
| 58 namedConstructor(fld) { |
| 59 this.fld = fld; |
| 60 } |
| 61 } |
| 62 dart.addTypeTests(Library111); |
| 63 dart.defineNamedConstructor(Library111, 'namedConstructor'); |
| 64 dart.setSignature(Library111, { |
| 65 constructors: () => ({namedConstructor: dart.definiteFunctionType(library1
1.Library111$(T), [T])}) |
| 66 }); |
| 67 return Library111; |
| 68 }); |
| 69 library11.Library111 = Library111(); |
| 70 library11.top_level11 = 100; |
| 71 library11.top_level_func11 = function() { |
| 72 return 200; |
| 73 }; |
| 74 dart.fn(library11.top_level_func11, VoidTodynamic()); |
| 75 // Exports: |
| 76 exports.top_level_prefixed_declaration_test = top_level_prefixed_declaration_t
est; |
| 77 exports.library11 = library11; |
| 78 }); |
OLD | NEW |