OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/const_syntax_test_none_multi', null, /* Imports *
/[ |
| 2 'dart_sdk', |
| 3 'expect' |
| 4 ], function load__const_syntax_test_none_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 const_syntax_test_none_multi = Object.create(null); |
| 11 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 12 let const$; |
| 13 let const$0; |
| 14 const_syntax_test_none_multi.main = function() { |
| 15 let f0 = 42; |
| 16 let f2 = 87; |
| 17 expect$.Expect.equals(42, f0); |
| 18 expect$.Expect.equals(87, f2); |
| 19 expect$.Expect.equals(42, const_syntax_test_none_multi.F0); |
| 20 expect$.Expect.equals(87, const_syntax_test_none_multi.F2); |
| 21 expect$.Expect.isTrue(const_syntax_test_none_multi.Point.is(const_syntax_tes
t_none_multi.P0)); |
| 22 expect$.Expect.isTrue(typeof const_syntax_test_none_multi.A0 == 'number'); |
| 23 expect$.Expect.isTrue(typeof const_syntax_test_none_multi.A1 == 'number'); |
| 24 expect$.Expect.isTrue(const_syntax_test_none_multi.C1.is(const_syntax_test_n
one_multi.C0.X)); |
| 25 expect$.Expect.equals("Hello 42", const_syntax_test_none_multi.B2); |
| 26 let cf1 = core.identical(const$ || (const$ = dart.const(new const_syntax_tes
t_none_multi.Point(1, 2))), const$0 || (const$0 = dart.const(new const_syntax_te
st_none_multi.Point(1, 2)))); |
| 27 let f5 = const_syntax_test_none_multi.B5; |
| 28 }; |
| 29 dart.fn(const_syntax_test_none_multi.main, VoidTodynamic()); |
| 30 const_syntax_test_none_multi.F0 = 42; |
| 31 const_syntax_test_none_multi.F2 = 87; |
| 32 const_syntax_test_none_multi.Point = class Point extends core.Object { |
| 33 new(x, y) { |
| 34 this.x = x; |
| 35 this.y = y; |
| 36 } |
| 37 ['+'](other) { |
| 38 return this.x; |
| 39 } |
| 40 }; |
| 41 dart.setSignature(const_syntax_test_none_multi.Point, { |
| 42 constructors: () => ({new: dart.definiteFunctionType(const_syntax_test_none_
multi.Point, [dart.dynamic, dart.dynamic])}), |
| 43 methods: () => ({'+': dart.definiteFunctionType(dart.dynamic, [core.int])}) |
| 44 }); |
| 45 const_syntax_test_none_multi.P0 = dart.const(new const_syntax_test_none_multi.
Point(0, 0)); |
| 46 const_syntax_test_none_multi.A0 = 42; |
| 47 const_syntax_test_none_multi.A1 = const_syntax_test_none_multi.A0 + 1; |
| 48 const_syntax_test_none_multi.C0 = class C0 extends core.Object {}; |
| 49 dart.defineLazy(const_syntax_test_none_multi.C0, { |
| 50 get X() { |
| 51 return dart.const(new const_syntax_test_none_multi.C1()); |
| 52 } |
| 53 }); |
| 54 const_syntax_test_none_multi.C1 = class C1 extends core.Object { |
| 55 new() { |
| 56 this.x = null; |
| 57 } |
| 58 }; |
| 59 dart.setSignature(const_syntax_test_none_multi.C1, { |
| 60 constructors: () => ({new: dart.definiteFunctionType(const_syntax_test_none_
multi.C1, [])}) |
| 61 }); |
| 62 const_syntax_test_none_multi.B0 = 42; |
| 63 const_syntax_test_none_multi.B1 = "Hello"; |
| 64 const_syntax_test_none_multi.B2 = dart.str`${const_syntax_test_none_multi.B1}
${const_syntax_test_none_multi.B0}`; |
| 65 const_syntax_test_none_multi.B5 = core.identical(1, dart.const(new const_synta
x_test_none_multi.Point(1, 2))); |
| 66 // Exports: |
| 67 exports.const_syntax_test_none_multi = const_syntax_test_none_multi; |
| 68 }); |
OLD | NEW |