OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/prefix_new_test', null, /* Imports */[ |
| 2 'dart_sdk', |
| 3 'expect' |
| 4 ], function load__prefix_new_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 prefix_new_test = Object.create(null); |
| 11 const prefix_test1 = Object.create(null); |
| 12 const prefix_test2 = Object.create(null); |
| 13 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 14 prefix_new_test.main = function() { |
| 15 expect$.Expect.equals(prefix_test1.Prefix.getSource(), dart.dsend(prefix_tes
t1.Prefix.getImport(), '+', 1)); |
| 16 }; |
| 17 dart.fn(prefix_new_test.main, VoidTodynamic()); |
| 18 prefix_test1.Prefix = class Prefix extends core.Object { |
| 19 static getSource() { |
| 20 return prefix_test1.Prefix.foo; |
| 21 } |
| 22 static getImport() { |
| 23 return prefix_test2.Prefix.foo; |
| 24 } |
| 25 }; |
| 26 dart.setSignature(prefix_test1.Prefix, { |
| 27 statics: () => ({ |
| 28 getSource: dart.definiteFunctionType(dart.dynamic, []), |
| 29 getImport: dart.definiteFunctionType(dart.dynamic, []) |
| 30 }), |
| 31 names: ['getSource', 'getImport'] |
| 32 }); |
| 33 prefix_test1.Prefix.foo = 43; |
| 34 prefix_test2.Prefix = class Prefix extends core.Object {}; |
| 35 prefix_test2.Prefix.foo = 42; |
| 36 // Exports: |
| 37 exports.prefix_new_test = prefix_new_test; |
| 38 exports.prefix_test1 = prefix_test1; |
| 39 exports.prefix_test2 = prefix_test2; |
| 40 }); |
OLD | NEW |