OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/context2_test', null, /* Imports */[ |
| 2 'dart_sdk', |
| 3 'expect' |
| 4 ], function load__context2_test(exports, dart_sdk, expect) { |
| 5 'use strict'; |
| 6 const core = dart_sdk.core; |
| 7 const dart = dart_sdk.dart; |
| 8 const dartx = dart_sdk.dartx; |
| 9 const expect$ = expect.expect; |
| 10 const context2_test = Object.create(null); |
| 11 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 12 context2_test.V = class V extends core.Object { |
| 13 notCalled(x) { |
| 14 return dart.dcall(x); |
| 15 } |
| 16 foofoo(x) { |
| 17 return x; |
| 18 } |
| 19 hoop(input, n) { |
| 20 while (dart.test(dart.dsend((() => { |
| 21 let x = n; |
| 22 n = dart.dsend(x, '-', 1); |
| 23 return x; |
| 24 })(), '>', 0))) { |
| 25 expect$.Expect.equals(5, input); |
| 26 continue; |
| 27 switch (input) { |
| 28 case 3: |
| 29 { |
| 30 let values = dart.bind(this, 'foofoo'); |
| 31 this.notCalled(dart.fn(() => dart.dcall(values, input), VoidTodynami
c())); |
| 32 } |
| 33 } |
| 34 } |
| 35 } |
| 36 }; |
| 37 dart.setSignature(context2_test.V, { |
| 38 methods: () => ({ |
| 39 notCalled: dart.definiteFunctionType(dart.dynamic, [core.Function]), |
| 40 foofoo: dart.definiteFunctionType(dart.dynamic, [dart.dynamic]), |
| 41 hoop: dart.definiteFunctionType(dart.dynamic, [dart.dynamic, dart.dynamic]
) |
| 42 }) |
| 43 }); |
| 44 context2_test.main = function() { |
| 45 new context2_test.V().hoop(5, 3); |
| 46 }; |
| 47 dart.fn(context2_test.main, VoidTodynamic()); |
| 48 // Exports: |
| 49 exports.context2_test = context2_test; |
| 50 }); |
OLD | NEW |