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