OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/final_syntax_test_04_multi', null, /* Imports */[ |
| 2 'dart_sdk', |
| 3 'expect' |
| 4 ], function load__final_syntax_test_04_multi(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 final_syntax_test_04_multi = Object.create(null); |
| 11 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 12 final_syntax_test_04_multi.main = function() { |
| 13 let f0 = 42; |
| 14 let f2 = 87; |
| 15 expect$.Expect.equals(42, f0); |
| 16 expect$.Expect.equals(87, f2); |
| 17 expect$.Expect.equals(42, final_syntax_test_04_multi.F0); |
| 18 expect$.Expect.equals(87, final_syntax_test_04_multi.F2); |
| 19 expect$.Expect.equals(null, final_syntax_test_04_multi.F3); |
| 20 expect$.Expect.isTrue(final_syntax_test_04_multi.Point.is(final_syntax_test_
04_multi.P0)); |
| 21 expect$.Expect.isTrue(typeof final_syntax_test_04_multi.P1 == 'number'); |
| 22 expect$.Expect.isTrue(final_syntax_test_04_multi.Point.is(final_syntax_test_
04_multi.P2)); |
| 23 expect$.Expect.isTrue(typeof final_syntax_test_04_multi.P3 == 'number'); |
| 24 expect$.Expect.isTrue(typeof final_syntax_test_04_multi.A0 == 'number'); |
| 25 expect$.Expect.isTrue(typeof final_syntax_test_04_multi.A1 == 'number'); |
| 26 expect$.Expect.isTrue(final_syntax_test_04_multi.C1.is(final_syntax_test_04_
multi.C0.X)); |
| 27 expect$.Expect.equals("Hello 42", final_syntax_test_04_multi.B2); |
| 28 }; |
| 29 dart.fn(final_syntax_test_04_multi.main, VoidTodynamic()); |
| 30 final_syntax_test_04_multi.F0 = 42; |
| 31 final_syntax_test_04_multi.F2 = 87; |
| 32 final_syntax_test_04_multi.F3 = null; |
| 33 final_syntax_test_04_multi.Point = class Point extends core.Object { |
| 34 new(x, y) { |
| 35 this.x = x; |
| 36 this.y = y; |
| 37 } |
| 38 ['+'](other) { |
| 39 return this.x; |
| 40 } |
| 41 }; |
| 42 dart.setSignature(final_syntax_test_04_multi.Point, { |
| 43 constructors: () => ({new: dart.definiteFunctionType(final_syntax_test_04_mu
lti.Point, [dart.dynamic, dart.dynamic])}), |
| 44 methods: () => ({'+': dart.definiteFunctionType(dart.dynamic, [core.int])}) |
| 45 }); |
| 46 final_syntax_test_04_multi.P0 = dart.const(new final_syntax_test_04_multi.Poin
t(0, 0)); |
| 47 dart.defineLazy(final_syntax_test_04_multi, { |
| 48 get P1() { |
| 49 return dart.const(new final_syntax_test_04_multi.Point(0, 0))['+'](1); |
| 50 } |
| 51 }); |
| 52 dart.defineLazy(final_syntax_test_04_multi, { |
| 53 get P2() { |
| 54 return new final_syntax_test_04_multi.Point(0, 0); |
| 55 } |
| 56 }); |
| 57 dart.defineLazy(final_syntax_test_04_multi, { |
| 58 get P3() { |
| 59 return new final_syntax_test_04_multi.Point(0, 0)['+'](1); |
| 60 } |
| 61 }); |
| 62 final_syntax_test_04_multi.A0 = 42; |
| 63 dart.defineLazy(final_syntax_test_04_multi, { |
| 64 get A1() { |
| 65 return dart.notNull(final_syntax_test_04_multi.A0) + 1; |
| 66 } |
| 67 }); |
| 68 final_syntax_test_04_multi.C0 = class C0 extends core.Object {}; |
| 69 dart.defineLazy(final_syntax_test_04_multi.C0, { |
| 70 get X() { |
| 71 return dart.const(new final_syntax_test_04_multi.C1()); |
| 72 } |
| 73 }); |
| 74 final_syntax_test_04_multi.C1 = class C1 extends core.Object { |
| 75 new() { |
| 76 this.x = null; |
| 77 } |
| 78 }; |
| 79 dart.setSignature(final_syntax_test_04_multi.C1, { |
| 80 constructors: () => ({new: dart.definiteFunctionType(final_syntax_test_04_mu
lti.C1, [])}) |
| 81 }); |
| 82 final_syntax_test_04_multi.B0 = 42; |
| 83 final_syntax_test_04_multi.B1 = "Hello"; |
| 84 dart.defineLazy(final_syntax_test_04_multi, { |
| 85 get B2() { |
| 86 return dart.str`${final_syntax_test_04_multi.B1} ${final_syntax_test_04_mu
lti.B0}`; |
| 87 } |
| 88 }); |
| 89 // Exports: |
| 90 exports.final_syntax_test_04_multi = final_syntax_test_04_multi; |
| 91 }); |
OLD | NEW |