OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/library_private_in_constructor_test', null, /* Im
ports */[ |
| 2 'dart_sdk', |
| 3 'expect' |
| 4 ], function load__library_private_in_constructor_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 library_private_in_constructor_test = Object.create(null); |
| 11 const library_private_in_constructor_a = Object.create(null); |
| 12 const library_private_in_constructor_b = Object.create(null); |
| 13 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 14 library_private_in_constructor_test.main = function() { |
| 15 let b = new library_private_in_constructor_b.B(); |
| 16 expect$.Expect.equals(499, b.x); |
| 17 expect$.Expect.equals(42, b.y); |
| 18 }; |
| 19 dart.fn(library_private_in_constructor_test.main, VoidTodynamic()); |
| 20 const _val = Symbol('_val'); |
| 21 library_private_in_constructor_a.PrivateA = class PrivateA extends core.Object
{ |
| 22 new() { |
| 23 this[_val] = 499; |
| 24 } |
| 25 }; |
| 26 dart.setSignature(library_private_in_constructor_a.PrivateA, { |
| 27 constructors: () => ({new: dart.definiteFunctionType(library_private_in_cons
tructor_a.PrivateA, [])}) |
| 28 }); |
| 29 library_private_in_constructor_a.fooA = dart.const(new library_private_in_cons
tructor_a.PrivateA()); |
| 30 library_private_in_constructor_a.A = class A extends core.Object { |
| 31 new() { |
| 32 this.x = library_private_in_constructor_a.fooA[_val]; |
| 33 } |
| 34 }; |
| 35 dart.setSignature(library_private_in_constructor_a.A, { |
| 36 constructors: () => ({new: dart.definiteFunctionType(library_private_in_cons
tructor_a.A, [])}) |
| 37 }); |
| 38 const _val$ = Symbol('_val'); |
| 39 library_private_in_constructor_b.PrivateB = class PrivateB extends core.Object
{ |
| 40 new() { |
| 41 this[_val$] = 42; |
| 42 } |
| 43 }; |
| 44 dart.setSignature(library_private_in_constructor_b.PrivateB, { |
| 45 constructors: () => ({new: dart.definiteFunctionType(library_private_in_cons
tructor_b.PrivateB, [])}) |
| 46 }); |
| 47 library_private_in_constructor_b.fooB = dart.const(new library_private_in_cons
tructor_b.PrivateB()); |
| 48 library_private_in_constructor_b.B = class B extends library_private_in_constr
uctor_a.A { |
| 49 new() { |
| 50 this.y = library_private_in_constructor_b.fooB[_val$]; |
| 51 super.new(); |
| 52 } |
| 53 }; |
| 54 dart.setSignature(library_private_in_constructor_b.B, { |
| 55 constructors: () => ({new: dart.definiteFunctionType(library_private_in_cons
tructor_b.B, [])}) |
| 56 }); |
| 57 // Exports: |
| 58 exports.library_private_in_constructor_test = library_private_in_constructor_t
est; |
| 59 exports.library_private_in_constructor_a = library_private_in_constructor_a; |
| 60 exports.library_private_in_constructor_b = library_private_in_constructor_b; |
| 61 }); |
OLD | NEW |