OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/fauxverride_test_none_multi', null, /* Imports */
[ |
| 2 'dart_sdk', |
| 3 'expect' |
| 4 ], function load__fauxverride_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 fauxverride_test_none_multi = Object.create(null); |
| 11 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 12 fauxverride_test_none_multi.m = function() { |
| 13 return 'top level'; |
| 14 }; |
| 15 dart.fn(fauxverride_test_none_multi.m, VoidTodynamic()); |
| 16 fauxverride_test_none_multi.Super = class Super extends core.Object { |
| 17 static m() { |
| 18 return 'super'; |
| 19 } |
| 20 instanceMethod() { |
| 21 return fauxverride_test_none_multi.Super.m(); |
| 22 } |
| 23 instanceMethod2() { |
| 24 return fauxverride_test_none_multi.Super.m(); |
| 25 } |
| 26 }; |
| 27 dart.setSignature(fauxverride_test_none_multi.Super, { |
| 28 methods: () => ({ |
| 29 instanceMethod: dart.definiteFunctionType(dart.dynamic, []), |
| 30 instanceMethod2: dart.definiteFunctionType(dart.dynamic, []) |
| 31 }), |
| 32 statics: () => ({m: dart.definiteFunctionType(dart.dynamic, [])}), |
| 33 names: ['m'] |
| 34 }); |
| 35 fauxverride_test_none_multi.Super.i = 'super'; |
| 36 fauxverride_test_none_multi.Super.i2 = 'super'; |
| 37 fauxverride_test_none_multi.Sub = class Sub extends fauxverride_test_none_mult
i.Super { |
| 38 static m() { |
| 39 return 'sub'; |
| 40 } |
| 41 instanceMethod() { |
| 42 return fauxverride_test_none_multi.Sub.m(); |
| 43 } |
| 44 static i2() { |
| 45 return fauxverride_test_none_multi.Sub.m(); |
| 46 } |
| 47 foo() { |
| 48 return 'foo'; |
| 49 } |
| 50 }; |
| 51 dart.setSignature(fauxverride_test_none_multi.Sub, { |
| 52 methods: () => ({foo: dart.definiteFunctionType(dart.dynamic, [])}), |
| 53 statics: () => ({i2: dart.definiteFunctionType(dart.dynamic, [])}), |
| 54 names: ['i2'] |
| 55 }); |
| 56 dart.defineLazy(fauxverride_test_none_multi.Sub, { |
| 57 get i() { |
| 58 return 'sub'; |
| 59 }, |
| 60 set i(_) {} |
| 61 }); |
| 62 fauxverride_test_none_multi.main = function() { |
| 63 expect$.Expect.equals('foo', new fauxverride_test_none_multi.Sub().foo()); |
| 64 expect$.Expect.equals('top level', fauxverride_test_none_multi.m()); |
| 65 expect$.Expect.equals('super', fauxverride_test_none_multi.Super.m()); |
| 66 expect$.Expect.equals('sub', fauxverride_test_none_multi.Sub.m()); |
| 67 expect$.Expect.equals('super', fauxverride_test_none_multi.Super.i); |
| 68 expect$.Expect.equals('sub', fauxverride_test_none_multi.Sub.i); |
| 69 expect$.Expect.equals('super', fauxverride_test_none_multi.Super.i2); |
| 70 expect$.Expect.equals('sub', fauxverride_test_none_multi.Sub.i2()); |
| 71 expect$.Expect.equals('super', new fauxverride_test_none_multi.Super().insta
nceMethod()); |
| 72 expect$.Expect.equals('sub', new fauxverride_test_none_multi.Sub().instanceM
ethod()); |
| 73 expect$.Expect.equals('super', new fauxverride_test_none_multi.Super().insta
nceMethod2()); |
| 74 expect$.Expect.equals('super', new fauxverride_test_none_multi.Sub().instanc
eMethod2()); |
| 75 }; |
| 76 dart.fn(fauxverride_test_none_multi.main, VoidTodynamic()); |
| 77 // Exports: |
| 78 exports.fauxverride_test_none_multi = fauxverride_test_none_multi; |
| 79 }); |
OLD | NEW |