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