OLD | NEW |
1 export const es6_modules = Object.create(null); | 1 export const es6_modules = Object.create(null); |
2 import { core, dart, dartx } from 'dart_sdk'; | 2 import { core, dart, dartx } from 'dart_sdk'; |
3 let B = () => (B = dart.constFn(es6_modules.B$()))(); | 3 let B = () => (B = dart.constFn(es6_modules.B$()))(); |
4 let _B = () => (_B = dart.constFn(es6_modules._B$()))(); | 4 let _B = () => (_B = dart.constFn(es6_modules._B$()))(); |
5 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.fnType(dart.dynamic
, [])))(); | 5 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.fnType(dart.dynamic
, [])))(); |
6 let VoidToString = () => (VoidToString = dart.constFn(dart.fnType(core.String, [
])))(); | 6 let VoidToString = () => (VoidToString = dart.constFn(dart.fnType(core.String, [
])))(); |
7 es6_modules.Callback = dart.typedef('Callback', () => dart.fnTypeFuzzy(dart.void
, [], {i: core.int})); | 7 es6_modules.Callback = dart.typedef('Callback', () => dart.fnTypeFuzzy(dart.void
, [], {i: core.int})); |
8 es6_modules.A = class A extends core.Object {}; | 8 es6_modules.A = class A extends core.Object {}; |
| 9 (es6_modules.A.new = function() { |
| 10 }).prototype = es6_modules.A.prototype; |
9 es6_modules._A = class _A extends core.Object {}; | 11 es6_modules._A = class _A extends core.Object {}; |
| 12 (es6_modules._A.new = function() { |
| 13 }).prototype = es6_modules._A.prototype; |
10 es6_modules.B$ = dart.generic(T => { | 14 es6_modules.B$ = dart.generic(T => { |
11 class B extends core.Object {} | 15 class B extends core.Object {} |
| 16 (B.new = function() { |
| 17 }).prototype = B.prototype; |
12 dart.addTypeTests(B); | 18 dart.addTypeTests(B); |
13 return B; | 19 return B; |
14 }); | 20 }); |
15 es6_modules.B = B(); | 21 es6_modules.B = B(); |
16 es6_modules._B$ = dart.generic(T => { | 22 es6_modules._B$ = dart.generic(T => { |
17 class _B extends core.Object {} | 23 class _B extends core.Object {} |
| 24 (_B.new = function() { |
| 25 }).prototype = _B.prototype; |
18 dart.addTypeTests(_B); | 26 dart.addTypeTests(_B); |
19 return _B; | 27 return _B; |
20 }); | 28 }); |
21 es6_modules._B = _B(); | 29 es6_modules._B = _B(); |
22 es6_modules.f = function() { | 30 es6_modules.f = function() { |
23 }; | 31 }; |
24 dart.fn(es6_modules.f, VoidTodynamic()); | 32 dart.fn(es6_modules.f, VoidTodynamic()); |
25 es6_modules._f = function() { | 33 es6_modules._f = function() { |
26 }; | 34 }; |
27 dart.fn(es6_modules._f, VoidTodynamic()); | 35 dart.fn(es6_modules._f, VoidTodynamic()); |
(...skipping 18 matching lines...) Expand all Loading... |
46 return dart.fn(() => { | 54 return dart.fn(() => { |
47 core.print('lazyMutable'); | 55 core.print('lazyMutable'); |
48 return "abc"; | 56 return "abc"; |
49 }, VoidToString())(); | 57 }, VoidToString())(); |
50 }, | 58 }, |
51 set lazyMutable(_) {} | 59 set lazyMutable(_) {} |
52 }); | 60 }); |
53 dart.trackLibraries("es6_modules", { | 61 dart.trackLibraries("es6_modules", { |
54 "es6_modules.dart": es6_modules | 62 "es6_modules.dart": es6_modules |
55 }, null); | 63 }, null); |
OLD | NEW |