OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/built_in_identifier_test_none_multi', null, /* Im
ports */[ |
| 2 'dart_sdk', |
| 3 'expect' |
| 4 ], function load__built_in_identifier_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 built_in_identifier_test_none_multi = Object.create(null); |
| 11 let dynamicTovoid = () => (dynamicTovoid = dart.constFn(dart.definiteFunctionT
ype(dart.void, [dart.dynamic])))(); |
| 12 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 13 built_in_identifier_test_none_multi.PseudoKWTest = class PseudoKWTest extends
core.Object { |
| 14 static testMain() { |
| 15 let as = 0; |
| 16 let dynamic = 0; |
| 17 let export$ = 0; |
| 18 let factory = 0; |
| 19 let get = 0; |
| 20 let implements$ = 0; |
| 21 let import$ = 0; |
| 22 let library = 0; |
| 23 let operator = 0; |
| 24 let part = 0; |
| 25 let set = 0; |
| 26 let typedef = 0; |
| 27 let native = 0; |
| 28 { |
| 29 function factory(set) { |
| 30 } |
| 31 dart.fn(factory, dynamicTovoid()); |
| 32 } |
| 33 get: |
| 34 while (import$ > 0) { |
| 35 break get; |
| 36 } |
| 37 return library * operator; |
| 38 } |
| 39 }; |
| 40 dart.setSignature(built_in_identifier_test_none_multi.PseudoKWTest, { |
| 41 statics: () => ({testMain: dart.definiteFunctionType(dart.dynamic, [])}), |
| 42 names: ['testMain'] |
| 43 }); |
| 44 built_in_identifier_test_none_multi.A = class A extends core.Object { |
| 45 new() { |
| 46 this.typedef = 0; |
| 47 this.operator = "smooth"; |
| 48 } |
| 49 set(x) { |
| 50 this.typedef = core.int._check(x); |
| 51 } |
| 52 get() { |
| 53 return dart.notNull(this.typedef) - 5; |
| 54 } |
| 55 static check() { |
| 56 let o = new built_in_identifier_test_none_multi.A(); |
| 57 o.set(55); |
| 58 expect$.Expect.equals(50, o.get()); |
| 59 } |
| 60 }; |
| 61 dart.setSignature(built_in_identifier_test_none_multi.A, { |
| 62 methods: () => ({ |
| 63 set: dart.definiteFunctionType(dart.dynamic, [dart.dynamic]), |
| 64 get: dart.definiteFunctionType(dart.dynamic, []) |
| 65 }), |
| 66 statics: () => ({check: dart.definiteFunctionType(dart.dynamic, [])}), |
| 67 names: ['check'] |
| 68 }); |
| 69 built_in_identifier_test_none_multi.B = class B extends core.Object { |
| 70 new() { |
| 71 this.set = 100; |
| 72 } |
| 73 get get() { |
| 74 return this.set; |
| 75 } |
| 76 set get(get) { |
| 77 return this.set = dart.asInt(2 * dart.notNull(core.num._check(dart.dload(g
et, 'get')))); |
| 78 } |
| 79 operator() { |
| 80 return 1; |
| 81 } |
| 82 }; |
| 83 dart.setSignature(built_in_identifier_test_none_multi.B, { |
| 84 methods: () => ({operator: dart.definiteFunctionType(core.int, [])}) |
| 85 }); |
| 86 built_in_identifier_test_none_multi.C = class C extends core.Object { |
| 87 static get set() { |
| 88 return 111; |
| 89 } |
| 90 static set set(set) {} |
| 91 }; |
| 92 built_in_identifier_test_none_multi.C.operator = 5; |
| 93 built_in_identifier_test_none_multi.C.get = null; |
| 94 built_in_identifier_test_none_multi.main = function() { |
| 95 built_in_identifier_test_none_multi.PseudoKWTest.testMain(); |
| 96 built_in_identifier_test_none_multi.A.check(); |
| 97 expect$.Expect.equals(1, new built_in_identifier_test_none_multi.B().operato
r()); |
| 98 expect$.Expect.equals(5, built_in_identifier_test_none_multi.C.operator); |
| 99 expect$.Expect.equals(null, built_in_identifier_test_none_multi.C.get); |
| 100 built_in_identifier_test_none_multi.C.set = 0; |
| 101 expect$.Expect.equals(111, built_in_identifier_test_none_multi.C.set); |
| 102 }; |
| 103 dart.fn(built_in_identifier_test_none_multi.main, VoidTodynamic()); |
| 104 // Exports: |
| 105 exports.built_in_identifier_test_none_multi = built_in_identifier_test_none_mu
lti; |
| 106 }); |
OLD | NEW |