OLD | NEW |
1 dart_library.library('dart/_runtime', null, /* Imports */[ | 1 dart_library.library('dart/_runtime', null, /* Imports */[ |
2 ], /* Lazy imports */[ | 2 ], /* Lazy imports */[ |
3 'dart/core', | 3 'dart/core', |
4 'dart/_interceptors', | 4 'dart/_interceptors', |
5 'dart/_js_helper', | 5 'dart/_js_helper', |
6 'dart/async', | 6 'dart/async', |
7 'dart/collection' | 7 'dart/collection' |
8 ], function(exports, core, _interceptors, _js_helper, async, collection) { | 8 ], function(exports, core, _interceptors, _js_helper, async, collection) { |
9 'use strict'; | 9 'use strict'; |
10 function mixin(base, ...mixins) { | 10 function mixin(base, ...mixins) { |
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 } | 513 } |
514 function equals(x, y) { | 514 function equals(x, y) { |
515 if (x == null || y == null) return x == y; | 515 if (x == null || y == null) return x == y; |
516 let eq = x['==']; | 516 let eq = x['==']; |
517 return eq ? eq.call(x, y) : x === y; | 517 return eq ? eq.call(x, y) : x === y; |
518 } | 518 } |
519 function notNull(x) { | 519 function notNull(x) { |
520 if (x == null) throwNullValueError(); | 520 if (x == null) throwNullValueError(); |
521 return x; | 521 return x; |
522 } | 522 } |
523 function map(values) { | 523 function map(values, K, V) { |
524 let map = collection.LinkedHashMap.new(); | 524 if (K === void 0) K = null; |
525 if (Array.isArray(values)) { | 525 if (V === void 0) V = null; |
526 for (let i = 0, end = values.length - 1; i < end; i += 2) { | 526 return (() => { |
527 let key = values[i]; | 527 if (K == null) K = dynamicR; |
528 let value = values[i + 1]; | 528 if (V == null) V = dynamicR; |
529 map.set(key, value); | 529 let map = getGenericClass(collection.LinkedHashMap)(K, V).new(); |
| 530 if (Array.isArray(values)) { |
| 531 for (let i = 0, end = values.length - 1; i < end; i += 2) { |
| 532 let key = values[i]; |
| 533 let value = values[i + 1]; |
| 534 map.set(key, value); |
| 535 } |
| 536 } else if (typeof values === 'object') { |
| 537 for (let key of getOwnPropertyNames(values)) { |
| 538 map.set(key, values[key]); |
| 539 } |
530 } | 540 } |
531 } else if (typeof values === 'object') { | 541 return map; |
532 for (let key of getOwnPropertyNames(values)) { | 542 })(); |
533 map.set(key, values[key]); | |
534 } | |
535 } | |
536 return map; | |
537 } | 543 } |
538 function assert_(condition) { | 544 function assert_(condition) { |
539 if (!condition) throwAssertionError(); | 545 if (!condition) throwAssertionError(); |
540 } | 546 } |
541 const _stack = new WeakMap(); | 547 const _stack = new WeakMap(); |
542 function throw_(obj) { | 548 function throw_(obj) { |
543 if (obj != null && (typeof obj == 'object' || typeof obj == 'function')) { | 549 if (obj != null && (typeof obj == 'object' || typeof obj == 'function')) { |
544 _stack.set(obj, new Error()); | 550 _stack.set(obj, new Error()); |
545 } | 551 } |
546 throw obj; | 552 throw obj; |
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1294 exports.copyProperties = copyProperties; | 1300 exports.copyProperties = copyProperties; |
1295 exports.export = export_; | 1301 exports.export = export_; |
1296 exports.defineLazyClass = defineLazyClass; | 1302 exports.defineLazyClass = defineLazyClass; |
1297 exports.defineLazyProperties = defineLazyProperties; | 1303 exports.defineLazyProperties = defineLazyProperties; |
1298 exports.defineLazyClassGeneric = defineLazyClassGeneric; | 1304 exports.defineLazyClassGeneric = defineLazyClassGeneric; |
1299 exports.as = as_; | 1305 exports.as = as_; |
1300 exports.is = is_; | 1306 exports.is = is_; |
1301 exports.global = global_; | 1307 exports.global = global_; |
1302 exports.JsSymbol = JsSymbol; | 1308 exports.JsSymbol = JsSymbol; |
1303 }); | 1309 }); |
OLD | NEW |