OLD | NEW |
1 dart_library.library('dart/js', null, /* Imports */[ | 1 dart_library.library('dart/js', null, /* Imports */[ |
2 'dart/_runtime', | 2 'dart/_runtime', |
3 'dart/core', | 3 'dart/core', |
4 'dart/collection', | 4 'dart/collection', |
5 'dart/_js_helper' | 5 'dart/_js_helper' |
6 ], /* Lazy imports */[ | 6 ], /* Lazy imports */[ |
7 ], function(exports, dart, core, collection, _js_helper) { | 7 ], function(exports, dart, core, collection, _js_helper) { |
8 'use strict'; | 8 'use strict'; |
9 let dartx = dart.dartx; | 9 let dartx = dart.dartx; |
10 const _global = dart.global; | 10 const _global = dart.global; |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 const _checkIndex = Symbol('_checkIndex'); | 167 const _checkIndex = Symbol('_checkIndex'); |
168 const _checkInsertIndex = Symbol('_checkInsertIndex'); | 168 const _checkInsertIndex = Symbol('_checkInsertIndex'); |
169 const JsArray$ = dart.generic(function(E) { | 169 const JsArray$ = dart.generic(function(E) { |
170 class JsArray extends dart.mixin(JsObject, collection.ListMixin$(E)) { | 170 class JsArray extends dart.mixin(JsObject, collection.ListMixin$(E)) { |
171 JsArray() { | 171 JsArray() { |
172 super._fromJs([]); | 172 super._fromJs([]); |
173 } | 173 } |
174 from(other) { | 174 from(other) { |
175 super._fromJs((() => { | 175 super._fromJs((() => { |
176 let _ = []; | 176 let _ = []; |
177 _[dartx.addAll](other[dartx.map](dart.as(_convertToJS, __CastType0))); | 177 _[dartx.addAll](other[dartx.map](_convertToJS)); |
178 return _; | 178 return _; |
179 })()); | 179 })()); |
180 } | 180 } |
181 _fromJs(jsObject) { | 181 _fromJs(jsObject) { |
182 super._fromJs(jsObject); | 182 super._fromJs(jsObject); |
183 } | 183 } |
184 [_checkIndex](index) { | 184 [_checkIndex](index) { |
185 if (typeof index == 'number' && (dart.notNull(index) < 0 || dart.notNull
(index) >= dart.notNull(this.length))) { | 185 if (typeof index == 'number' && (dart.notNull(index) < 0 || dart.notNull
(index) >= dart.notNull(this.length))) { |
186 dart.throw(new core.RangeError.range(index, 0, this.length)); | 186 dart.throw(new core.RangeError.range(index, 0, this.length)); |
187 } | 187 } |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 for (let arg of arguments) { | 395 for (let arg of arguments) { |
396 args.push(arg); | 396 args.push(arg); |
397 } | 397 } |
398 return f(...args); | 398 return f(...args); |
399 }, core.Function); | 399 }, core.Function); |
400 exports._interopCaptureThisExpando.set(f, ret); | 400 exports._interopCaptureThisExpando.set(f, ret); |
401 } | 401 } |
402 return ret; | 402 return ret; |
403 } | 403 } |
404 dart.fn(allowInteropCaptureThis, core.Function, [core.Function]); | 404 dart.fn(allowInteropCaptureThis, core.Function, [core.Function]); |
405 const __CastType0$ = dart.generic(function(E) { | |
406 const __CastType0 = dart.typedef('__CastType0', () => dart.functionType(dart
.dynamic, [E])); | |
407 return __CastType0; | |
408 }); | |
409 let __CastType0 = __CastType0$(); | |
410 // Exports: | 405 // Exports: |
411 exports.JsObject = JsObject; | 406 exports.JsObject = JsObject; |
412 exports.JsFunction = JsFunction; | 407 exports.JsFunction = JsFunction; |
413 exports.JsArray$ = JsArray$; | 408 exports.JsArray$ = JsArray$; |
414 exports.JsArray = JsArray; | 409 exports.JsArray = JsArray; |
415 exports.allowInterop = allowInterop; | 410 exports.allowInterop = allowInterop; |
416 exports.allowInteropCaptureThis = allowInteropCaptureThis; | 411 exports.allowInteropCaptureThis = allowInteropCaptureThis; |
417 }); | 412 }); |
OLD | NEW |