OLD | NEW |
1 const exports = {}; | 1 export const es6_modules = Object.create(null); |
2 import dart from "./dart/_runtime"; | 2 import { core, dart, dartx } from 'dart_sdk'; |
3 import core from "./dart/core"; | 3 es6_modules.Callback = dart.typedef('Callback', () => dart.functionType(dart.voi
d, [], {i: core.int})); |
4 let dartx = dart.dartx; | 4 es6_modules.A = class A extends core.Object {}; |
5 const Callback = dart.typedef('Callback', () => dart.functionType(dart.void, [],
{i: core.int})); | 5 es6_modules._A = class _A extends core.Object {}; |
6 class A extends core.Object {} | 6 es6_modules.B$ = dart.generic(T => { |
7 class _A extends core.Object {} | |
8 const B$ = dart.generic(function(T) { | |
9 class B extends core.Object {} | 7 class B extends core.Object {} |
10 return B; | 8 return B; |
11 }); | 9 }); |
12 let B = B$(); | 10 es6_modules.B = es6_modules.B$(); |
13 const _B$ = dart.generic(function(T) { | 11 es6_modules._B$ = dart.generic(T => { |
14 class _B extends core.Object {} | 12 class _B extends core.Object {} |
15 return _B; | 13 return _B; |
16 }); | 14 }); |
17 let _B = _B$(); | 15 es6_modules._B = es6_modules._B$(); |
18 function f() { | 16 es6_modules.f = function() { |
19 } | 17 }; |
20 dart.fn(f); | 18 dart.fn(es6_modules.f); |
21 function _f() { | 19 es6_modules._f = function() { |
22 } | 20 }; |
23 dart.fn(_f); | 21 dart.fn(es6_modules._f); |
24 const constant = "abc"; | 22 es6_modules.constant = "abc"; |
25 exports.finalConstant = "abc"; | 23 es6_modules.finalConstant = "abc"; |
26 dart.defineLazyProperties(exports, { | 24 dart.defineLazy(es6_modules, { |
27 get lazy() { | 25 get lazy() { |
28 return dart.fn(() => { | 26 return dart.fn(() => { |
29 core.print('lazy'); | 27 core.print('lazy'); |
30 return "abc"; | 28 return "abc"; |
31 }, core.String, [])(); | 29 }, core.String, [])(); |
32 } | 30 } |
33 }); | 31 }); |
34 exports.mutable = "abc"; | 32 es6_modules.mutable = "abc"; |
35 dart.defineLazyProperties(exports, { | 33 dart.defineLazy(es6_modules, { |
36 get lazyMutable() { | 34 get lazyMutable() { |
37 return dart.fn(() => { | 35 return dart.fn(() => { |
38 core.print('lazyMutable'); | 36 core.print('lazyMutable'); |
39 return "abc"; | 37 return "abc"; |
40 }, core.String, [])(); | 38 }, core.String, [])(); |
41 }, | 39 }, |
42 set lazyMutable(_) {} | 40 set lazyMutable(_) {} |
43 }); | 41 }); |
44 // Exports: | |
45 exports.Callback = Callback; | |
46 exports.A = A; | |
47 exports.B$ = B$; | |
48 exports.B = B; | |
49 exports.f = f; | |
50 exports.constant = constant; | |
51 export default exports; | |
OLD | NEW |