OLD | NEW |
1 dart_library.library('destructuring', null, /* Imports */[ | 1 dart_library.library('destructuring', null, /* Imports */[ |
2 'dart_sdk' | 2 'dart_sdk' |
3 ], function load__destructuring(exports, dart_sdk) { | 3 ], function load__destructuring(exports, dart_sdk) { |
4 'use strict'; | 4 'use strict'; |
5 const core = dart_sdk.core; | 5 const core = dart_sdk.core; |
6 const dart = dart_sdk.dart; | 6 const dart = dart_sdk.dart; |
7 const dartx = dart_sdk.dartx; | 7 const dartx = dart_sdk.dartx; |
8 const destructuring = Object.create(null); | 8 const destructuring = Object.create(null); |
| 9 const src__varargs = Object.create(null); |
9 let intAnddynamic__Todynamic = () => (intAnddynamic__Todynamic = dart.constFn(
dart.definiteFunctionType(dart.dynamic, [core.int, dart.dynamic], [dart.dynamic]
)))(); | 10 let intAnddynamic__Todynamic = () => (intAnddynamic__Todynamic = dart.constFn(
dart.definiteFunctionType(dart.dynamic, [core.int, dart.dynamic], [dart.dynamic]
)))(); |
10 let intAnddynamic__Todynamic$ = () => (intAnddynamic__Todynamic$ = dart.constF
n(dart.definiteFunctionType(dart.dynamic, [core.int, dart.dynamic], {c: dart.dyn
amic})))(); | 11 let intAnddynamic__Todynamic$ = () => (intAnddynamic__Todynamic$ = dart.constF
n(dart.definiteFunctionType(dart.dynamic, [core.int, dart.dynamic], {c: dart.dyn
amic})))(); |
11 let intAnddynamicTodynamic = () => (intAnddynamicTodynamic = dart.constFn(dart
.definiteFunctionType(dart.dynamic, [core.int, dart.dynamic])))(); | 12 let intAnddynamicTodynamic = () => (intAnddynamicTodynamic = dart.constFn(dart
.definiteFunctionType(dart.dynamic, [core.int, dart.dynamic])))(); |
12 let intAnddynamicAnddynamicTodynamic = () => (intAnddynamicAnddynamicTodynamic
= dart.constFn(dart.definiteFunctionType(dart.dynamic, [core.int, dart.dynamic,
dart.dynamic])))(); | 13 let intAnddynamicAnddynamicTodynamic = () => (intAnddynamicAnddynamicTodynamic
= dart.constFn(dart.definiteFunctionType(dart.dynamic, [core.int, dart.dynamic,
dart.dynamic])))(); |
13 let __Todynamic = () => (__Todynamic = dart.constFn(dart.definiteFunctionType(
dart.dynamic, [], [core.int, dart.dynamic, dart.dynamic])))(); | 14 let __Todynamic = () => (__Todynamic = dart.constFn(dart.definiteFunctionType(
dart.dynamic, [], [core.int, dart.dynamic, dart.dynamic])))(); |
14 let __Todynamic$ = () => (__Todynamic$ = dart.constFn(dart.definiteFunctionTyp
e(dart.dynamic, [], {let: core.int, function: dart.dynamic, arguments: dart.dyna
mic})))(); | 15 let __Todynamic$ = () => (__Todynamic$ = dart.constFn(dart.definiteFunctionTyp
e(dart.dynamic, [], {let: core.int, function: dart.dynamic, arguments: dart.dyna
mic})))(); |
15 let __Todynamic$0 = () => (__Todynamic$0 = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [], {constructor: core.int, valueOf: dart.dynamic, hasOwnPrope
rty: dart.dynamic})))(); | 16 let __Todynamic$0 = () => (__Todynamic$0 = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [], {constructor: core.int, valueOf: dart.dynamic, hasOwnPrope
rty: dart.dynamic})))(); |
| 17 let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFun
ctionType(dart.dynamic, [dart.dynamic])))(); |
16 destructuring.f = function(a, b, c = 1) { | 18 destructuring.f = function(a, b, c = 1) { |
17 destructuring.f(a, b, c); | 19 destructuring.f(a, b, c); |
18 }; | 20 }; |
19 dart.fn(destructuring.f, intAnddynamic__Todynamic()); | 21 dart.fn(destructuring.f, intAnddynamic__Todynamic()); |
20 destructuring.f_sync = function(a, b, c) { | 22 destructuring.f_sync = function(a, b, c) { |
21 return dart.syncStar(function*(a, b, c = 1) { | 23 return dart.syncStar(function*(a, b, c = 1) { |
22 }, dart.dynamic, a, b, c); | 24 }, dart.dynamic, a, b, c); |
23 }; | 25 }; |
24 dart.fn(destructuring.f_sync, intAnddynamic__Todynamic()); | 26 dart.fn(destructuring.f_sync, intAnddynamic__Todynamic()); |
25 destructuring.f_async = function(a, b, c) { | 27 destructuring.f_async = function(a, b, c) { |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 }; | 66 }; |
65 dart.fn(destructuring.invalid_names2, __Todynamic()); | 67 dart.fn(destructuring.invalid_names2, __Todynamic()); |
66 destructuring.invalid_names3 = function({["let"]: let$ = null, ["function"]: f
unc = null, ["arguments"]: arguments$ = 2} = {}) { | 68 destructuring.invalid_names3 = function({["let"]: let$ = null, ["function"]: f
unc = null, ["arguments"]: arguments$ = 2} = {}) { |
67 destructuring.f(let$, func, arguments$); | 69 destructuring.f(let$, func, arguments$); |
68 }; | 70 }; |
69 dart.fn(destructuring.invalid_names3, __Todynamic$()); | 71 dart.fn(destructuring.invalid_names3, __Todynamic$()); |
70 destructuring.names_clashing_with_object_props = function({constructor = null,
valueOf = null, hasOwnProperty = 2} = Object.create(null)) { | 72 destructuring.names_clashing_with_object_props = function({constructor = null,
valueOf = null, hasOwnProperty = 2} = Object.create(null)) { |
71 destructuring.f(constructor, valueOf, hasOwnProperty); | 73 destructuring.f(constructor, valueOf, hasOwnProperty); |
72 }; | 74 }; |
73 dart.fn(destructuring.names_clashing_with_object_props, __Todynamic$0()); | 75 dart.fn(destructuring.names_clashing_with_object_props, __Todynamic$0()); |
| 76 src__varargs._Rest = class _Rest extends core.Object { |
| 77 new() { |
| 78 } |
| 79 }; |
| 80 dart.setSignature(src__varargs._Rest, { |
| 81 constructors: () => ({new: dart.definiteFunctionType(src__varargs._Rest, [])
}) |
| 82 }); |
| 83 src__varargs.rest = dart.const(new src__varargs._Rest()); |
| 84 src__varargs.spread = function(args) { |
| 85 dart.throw(new core.StateError('The spread function cannot be called, ' + 'i
t should be compiled away.')); |
| 86 }; |
| 87 dart.fn(src__varargs.spread, dynamicTodynamic()); |
74 // Exports: | 88 // Exports: |
75 exports.destructuring = destructuring; | 89 exports.destructuring = destructuring; |
| 90 exports.src__varargs = src__varargs; |
76 }); | 91 }); |
OLD | NEW |