OLD | NEW |
1 'use strict'; | 1 'use strict'; |
2 let dart = require("dart/_runtime"); | |
3 let core = require("dart/core"); | |
4 let dartx = dart.dartx; | |
5 const Callback = dart.typedef('Callback', () => dart.functionType(dart.void, [],
{i: core.int})); | |
6 class A extends core.Object {} | |
7 class _A extends core.Object {} | |
8 const B$ = dart.generic(function(T) { | |
9 class B extends core.Object {} | |
10 return B; | |
11 }); | |
12 let B = B$(); | |
13 const _B$ = dart.generic(function(T) { | |
14 class _B extends core.Object {} | |
15 return _B; | |
16 }); | |
17 let _B = _B$(); | |
18 function f() { | |
19 } | |
20 dart.fn(f); | |
21 function _f() { | |
22 } | |
23 dart.fn(_f); | |
24 const constant = "abc"; | |
25 exports.finalConstant = "abc"; | |
26 dart.defineLazyProperties(exports, { | |
27 get lazy() { | |
28 return dart.fn(() => { | |
29 core.print('lazy'); | |
30 return "abc"; | |
31 }, core.String, [])(); | |
32 } | |
33 }); | |
34 exports.mutable = "abc"; | |
35 dart.defineLazyProperties(exports, { | |
36 get lazyMutable() { | |
37 return dart.fn(() => { | |
38 core.print('lazyMutable'); | |
39 return "abc"; | |
40 }, core.String, [])(); | |
41 }, | |
42 set lazyMutable(_) {} | |
43 }); | |
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; | |
OLD | NEW |