| OLD | NEW |
| 1 var _internal = dart.defineLibrary(_internal, {}); | 1 var _internal = dart.defineLibrary(_internal, {}); |
| 2 var core = dart.import(core); | 2 var core = dart.import(core); |
| 3 var collection = dart.import(collection); | 3 var collection = dart.import(collection); |
| 4 var math = dart.lazyImport(math); | 4 var math = dart.lazyImport(math); |
| 5 var _interceptors = dart.lazyImport(_interceptors); | 5 var _interceptors = dart.lazyImport(_interceptors); |
| 6 var _js_primitives = dart.lazyImport(_js_primitives); | 6 var _js_primitives = dart.lazyImport(_js_primitives); |
| 7 (function(exports, core, collection, math, _interceptors, _js_primitives) { | 7 (function(exports, core, collection, math, _interceptors, _js_primitives) { |
| 8 'use strict'; | 8 'use strict'; |
| 9 class EfficientLength extends core.Object {} | 9 class EfficientLength extends core.Object {} |
| 10 dart.setSignature(EfficientLength, {}); |
| 10 let ListIterable$ = dart.generic(function(E) { | 11 let ListIterable$ = dart.generic(function(E) { |
| 11 class ListIterable extends collection.IterableBase$(E) { | 12 class ListIterable extends collection.IterableBase$(E) { |
| 12 ListIterable() { | 13 ListIterable() { |
| 13 super.IterableBase(); | 14 super.IterableBase(); |
| 14 } | 15 } |
| 15 get [core.$iterator]() { | 16 get [core.$iterator]() { |
| 16 return new (ListIterator$(E))(this); | 17 return new (ListIterator$(E))(this); |
| 17 } | 18 } |
| 18 [core.$forEach](action) { | 19 [core.$forEach](action) { |
| 19 dart.as(action, dart.functionType(dart.void, [E])); | 20 dart.as(action, dart.functionType(dart.void, [E])); |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 } | 232 } |
| 232 [core.$toSet]() { | 233 [core.$toSet]() { |
| 233 let result = new (core.Set$(E))(); | 234 let result = new (core.Set$(E))(); |
| 234 for (let i = 0; dart.notNull(i) < dart.notNull(this[core.$length]); i =
dart.notNull(i) + 1) { | 235 for (let i = 0; dart.notNull(i) < dart.notNull(this[core.$length]); i =
dart.notNull(i) + 1) { |
| 235 result.add(this[core.$elementAt](i)); | 236 result.add(this[core.$elementAt](i)); |
| 236 } | 237 } |
| 237 return result; | 238 return result; |
| 238 } | 239 } |
| 239 } | 240 } |
| 240 ListIterable[dart.implements] = () => [EfficientLength]; | 241 ListIterable[dart.implements] = () => [EfficientLength]; |
| 242 dart.setSignature(ListIterable, { |
| 243 methods: () => ({ |
| 244 [core.$forEach]: dart.functionType(dart.void, [dart.functionType(dart.vo
id, [E])]), |
| 245 [core.$contains]: dart.functionType(core.bool, [core.Object]), |
| 246 [core.$every]: dart.functionType(core.bool, [dart.functionType(core.bool
, [E])]), |
| 247 [core.$any]: dart.functionType(core.bool, [dart.functionType(core.bool,
[E])]), |
| 248 [core.$firstWhere]: dart.functionType(E, [dart.functionType(core.bool, [
E])], {rEls: dart.functionType(E, [])}), |
| 249 [core.$lastWhere]: dart.functionType(E, [dart.functionType(core.bool, [E
])], {rEls: dart.functionType(E, [])}), |
| 250 [core.$singleWhere]: dart.functionType(E, [dart.functionType(core.bool,
[E])]), |
| 251 [core.$join]: dart.functionType(core.String, [], [core.String]), |
| 252 [core.$where]: dart.functionType(core.Iterable$(E), [dart.functionType(c
ore.bool, [E])]), |
| 253 [core.$map]: dart.functionType(core.Iterable, [dart.functionType(dart.dy
namic, [E])]), |
| 254 [core.$reduce]: dart.functionType(E, [dart.functionType(E, [dart.dynamic
, E])]), |
| 255 [core.$fold]: dart.functionType(dart.dynamic, [dart.dynamic, dart.functi
onType(dart.dynamic, [dart.dynamic, E])]), |
| 256 [core.$skip]: dart.functionType(core.Iterable$(E), [core.int]), |
| 257 [core.$skipWhile]: dart.functionType(core.Iterable$(E), [dart.functionTy
pe(core.bool, [E])]), |
| 258 [core.$take]: dart.functionType(core.Iterable$(E), [core.int]), |
| 259 [core.$takeWhile]: dart.functionType(core.Iterable$(E), [dart.functionTy
pe(core.bool, [E])]), |
| 260 [core.$toList]: dart.functionType(core.List$(E), [], {rowabl: core.bool}
), |
| 261 [core.$toSet]: dart.functionType(core.Set$(E), []) |
| 262 }) |
| 263 }); |
| 241 return ListIterable; | 264 return ListIterable; |
| 242 }); | 265 }); |
| 243 let ListIterable = ListIterable$(); | 266 let ListIterable = ListIterable$(); |
| 244 let _iterable = dart.JsSymbol('_iterable'); | 267 let _iterable = dart.JsSymbol('_iterable'); |
| 245 let _start = dart.JsSymbol('_start'); | 268 let _start = dart.JsSymbol('_start'); |
| 246 let _endOrLength = dart.JsSymbol('_endOrLength'); | 269 let _endOrLength = dart.JsSymbol('_endOrLength'); |
| 247 let _endIndex = dart.JsSymbol('_endIndex'); | 270 let _endIndex = dart.JsSymbol('_endIndex'); |
| 248 let _startIndex = dart.JsSymbol('_startIndex'); | 271 let _startIndex = dart.JsSymbol('_startIndex'); |
| 249 let SubListIterable$ = dart.generic(function(E) { | 272 let SubListIterable$ = dart.generic(function(E) { |
| 250 class SubListIterable extends ListIterable$(E) { | 273 class SubListIterable extends ListIterable$(E) { |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 return _; | 346 return _; |
| 324 })() : new (core.List$(E))(length); | 347 })() : new (core.List$(E))(length); |
| 325 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull
(i) + 1) { | 348 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull
(i) + 1) { |
| 326 result[core.$set](i, this[_iterable][core.$elementAt](dart.notNull(sta
rt) + dart.notNull(i))); | 349 result[core.$set](i, this[_iterable][core.$elementAt](dart.notNull(sta
rt) + dart.notNull(i))); |
| 327 if (dart.notNull(this[_iterable][core.$length]) < dart.notNull(end)) | 350 if (dart.notNull(this[_iterable][core.$length]) < dart.notNull(end)) |
| 328 throw new core.ConcurrentModificationError(this); | 351 throw new core.ConcurrentModificationError(this); |
| 329 } | 352 } |
| 330 return dart.as(result, core.List$(E)); | 353 return dart.as(result, core.List$(E)); |
| 331 } | 354 } |
| 332 } | 355 } |
| 356 dart.setSignature(SubListIterable, { |
| 357 methods: () => ({ |
| 358 [core.$elementAt]: dart.functionType(E, [core.int]), |
| 359 [core.$skip]: dart.functionType(core.Iterable$(E), [core.int]), |
| 360 [core.$take]: dart.functionType(core.Iterable$(E), [core.int]), |
| 361 [core.$toList]: dart.functionType(core.List$(E), [], {rowabl: core.bool}
) |
| 362 }) |
| 363 }); |
| 333 return SubListIterable; | 364 return SubListIterable; |
| 334 }); | 365 }); |
| 335 let SubListIterable = SubListIterable$(); | 366 let SubListIterable = SubListIterable$(); |
| 336 let _length = dart.JsSymbol('_length'); | 367 let _length = dart.JsSymbol('_length'); |
| 337 let _index = dart.JsSymbol('_index'); | 368 let _index = dart.JsSymbol('_index'); |
| 338 let _current = dart.JsSymbol('_current'); | 369 let _current = dart.JsSymbol('_current'); |
| 339 let ListIterator$ = dart.generic(function(E) { | 370 let ListIterator$ = dart.generic(function(E) { |
| 340 class ListIterator extends core.Object { | 371 class ListIterator extends core.Object { |
| 341 ListIterator(iterable) { | 372 ListIterator(iterable) { |
| 342 this[_iterable] = iterable; | 373 this[_iterable] = iterable; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 355 if (dart.notNull(this[_index]) >= dart.notNull(length)) { | 386 if (dart.notNull(this[_index]) >= dart.notNull(length)) { |
| 356 this[_current] = null; | 387 this[_current] = null; |
| 357 return false; | 388 return false; |
| 358 } | 389 } |
| 359 this[_current] = this[_iterable][core.$elementAt](this[_index]); | 390 this[_current] = this[_iterable][core.$elementAt](this[_index]); |
| 360 this[_index] = dart.notNull(this[_index]) + 1; | 391 this[_index] = dart.notNull(this[_index]) + 1; |
| 361 return true; | 392 return true; |
| 362 } | 393 } |
| 363 } | 394 } |
| 364 ListIterator[dart.implements] = () => [core.Iterator$(E)]; | 395 ListIterator[dart.implements] = () => [core.Iterator$(E)]; |
| 396 dart.setSignature(ListIterator, { |
| 397 methods: () => ({moveNext: dart.functionType(core.bool, [])}) |
| 398 }); |
| 365 return ListIterator; | 399 return ListIterator; |
| 366 }); | 400 }); |
| 367 let ListIterator = ListIterator$(); | 401 let ListIterator = ListIterator$(); |
| 368 let _Transformation$ = dart.generic(function(S, T) { | 402 let _Transformation$ = dart.generic(function(S, T) { |
| 369 let _Transformation = dart.typedef('_Transformation', () => dart.functionTyp
e(T, [S])); | 403 let _Transformation = dart.typedef('_Transformation', () => dart.functionTyp
e(T, [S])); |
| 370 return _Transformation; | 404 return _Transformation; |
| 371 }); | 405 }); |
| 372 let _Transformation = _Transformation$(); | 406 let _Transformation = _Transformation$(); |
| 373 let _f = dart.JsSymbol('_f'); | 407 let _f = dart.JsSymbol('_f'); |
| 374 let MappedIterable$ = dart.generic(function(S, T) { | 408 let MappedIterable$ = dart.generic(function(S, T) { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 400 return this[_f](this[_iterable][core.$last]); | 434 return this[_f](this[_iterable][core.$last]); |
| 401 } | 435 } |
| 402 get [core.$single]() { | 436 get [core.$single]() { |
| 403 return this[_f](this[_iterable][core.$single]); | 437 return this[_f](this[_iterable][core.$single]); |
| 404 } | 438 } |
| 405 [core.$elementAt](index) { | 439 [core.$elementAt](index) { |
| 406 return this[_f](this[_iterable][core.$elementAt](index)); | 440 return this[_f](this[_iterable][core.$elementAt](index)); |
| 407 } | 441 } |
| 408 } | 442 } |
| 409 dart.defineNamedConstructor(MappedIterable, '_'); | 443 dart.defineNamedConstructor(MappedIterable, '_'); |
| 444 dart.setSignature(MappedIterable, { |
| 445 methods: () => ({[core.$elementAt]: dart.functionType(T, [core.int])}) |
| 446 }); |
| 410 return MappedIterable; | 447 return MappedIterable; |
| 411 }); | 448 }); |
| 412 let MappedIterable = MappedIterable$(); | 449 let MappedIterable = MappedIterable$(); |
| 413 let EfficientLengthMappedIterable$ = dart.generic(function(S, T) { | 450 let EfficientLengthMappedIterable$ = dart.generic(function(S, T) { |
| 414 class EfficientLengthMappedIterable extends MappedIterable$(S, T) { | 451 class EfficientLengthMappedIterable extends MappedIterable$(S, T) { |
| 415 EfficientLengthMappedIterable(iterable, func) { | 452 EfficientLengthMappedIterable(iterable, func) { |
| 416 super._(dart.as(iterable, core.Iterable$(S)), func); | 453 super._(dart.as(iterable, core.Iterable$(S)), func); |
| 417 } | 454 } |
| 418 } | 455 } |
| 419 EfficientLengthMappedIterable[dart.implements] = () => [EfficientLength]; | 456 EfficientLengthMappedIterable[dart.implements] = () => [EfficientLength]; |
| 457 dart.setSignature(EfficientLengthMappedIterable, {}); |
| 420 return EfficientLengthMappedIterable; | 458 return EfficientLengthMappedIterable; |
| 421 }); | 459 }); |
| 422 let EfficientLengthMappedIterable = EfficientLengthMappedIterable$(); | 460 let EfficientLengthMappedIterable = EfficientLengthMappedIterable$(); |
| 423 let _iterator = dart.JsSymbol('_iterator'); | 461 let _iterator = dart.JsSymbol('_iterator'); |
| 424 let MappedIterator$ = dart.generic(function(S, T) { | 462 let MappedIterator$ = dart.generic(function(S, T) { |
| 425 class MappedIterator extends core.Iterator$(T) { | 463 class MappedIterator extends core.Iterator$(T) { |
| 426 MappedIterator(iterator, f) { | 464 MappedIterator(iterator, f) { |
| 427 this[_iterator] = iterator; | 465 this[_iterator] = iterator; |
| 428 this[_f] = f; | 466 this[_f] = f; |
| 429 this[_current] = null; | 467 this[_current] = null; |
| 430 } | 468 } |
| 431 moveNext() { | 469 moveNext() { |
| 432 if (this[_iterator].moveNext()) { | 470 if (this[_iterator].moveNext()) { |
| 433 this[_current] = this[_f](this[_iterator].current); | 471 this[_current] = this[_f](this[_iterator].current); |
| 434 return true; | 472 return true; |
| 435 } | 473 } |
| 436 this[_current] = null; | 474 this[_current] = null; |
| 437 return false; | 475 return false; |
| 438 } | 476 } |
| 439 get current() { | 477 get current() { |
| 440 return this[_current]; | 478 return this[_current]; |
| 441 } | 479 } |
| 442 } | 480 } |
| 481 dart.setSignature(MappedIterator, { |
| 482 methods: () => ({moveNext: dart.functionType(core.bool, [])}) |
| 483 }); |
| 443 return MappedIterator; | 484 return MappedIterator; |
| 444 }); | 485 }); |
| 445 let MappedIterator = MappedIterator$(); | 486 let MappedIterator = MappedIterator$(); |
| 446 let _source = dart.JsSymbol('_source'); | 487 let _source = dart.JsSymbol('_source'); |
| 447 let MappedListIterable$ = dart.generic(function(S, T) { | 488 let MappedListIterable$ = dart.generic(function(S, T) { |
| 448 class MappedListIterable extends ListIterable$(T) { | 489 class MappedListIterable extends ListIterable$(T) { |
| 449 MappedListIterable(source, f) { | 490 MappedListIterable(source, f) { |
| 450 this[_source] = source; | 491 this[_source] = source; |
| 451 this[_f] = f; | 492 this[_f] = f; |
| 452 super.ListIterable(); | 493 super.ListIterable(); |
| 453 } | 494 } |
| 454 get [core.$length]() { | 495 get [core.$length]() { |
| 455 return this[_source][core.$length]; | 496 return this[_source][core.$length]; |
| 456 } | 497 } |
| 457 [core.$elementAt](index) { | 498 [core.$elementAt](index) { |
| 458 return this[_f](this[_source][core.$elementAt](index)); | 499 return this[_f](this[_source][core.$elementAt](index)); |
| 459 } | 500 } |
| 460 } | 501 } |
| 461 MappedListIterable[dart.implements] = () => [EfficientLength]; | 502 MappedListIterable[dart.implements] = () => [EfficientLength]; |
| 503 dart.setSignature(MappedListIterable, { |
| 504 methods: () => ({[core.$elementAt]: dart.functionType(T, [core.int])}) |
| 505 }); |
| 462 return MappedListIterable; | 506 return MappedListIterable; |
| 463 }); | 507 }); |
| 464 let MappedListIterable = MappedListIterable$(); | 508 let MappedListIterable = MappedListIterable$(); |
| 465 let _ElementPredicate$ = dart.generic(function(E) { | 509 let _ElementPredicate$ = dart.generic(function(E) { |
| 466 let _ElementPredicate = dart.typedef('_ElementPredicate', () => dart.functio
nType(core.bool, [E])); | 510 let _ElementPredicate = dart.typedef('_ElementPredicate', () => dart.functio
nType(core.bool, [E])); |
| 467 return _ElementPredicate; | 511 return _ElementPredicate; |
| 468 }); | 512 }); |
| 469 let _ElementPredicate = _ElementPredicate$(); | 513 let _ElementPredicate = _ElementPredicate$(); |
| 470 let WhereIterable$ = dart.generic(function(E) { | 514 let WhereIterable$ = dart.generic(function(E) { |
| 471 class WhereIterable extends collection.IterableBase$(E) { | 515 class WhereIterable extends collection.IterableBase$(E) { |
| 472 WhereIterable(iterable, f) { | 516 WhereIterable(iterable, f) { |
| 473 this[_iterable] = iterable; | 517 this[_iterable] = iterable; |
| 474 this[_f] = f; | 518 this[_f] = f; |
| 475 super.IterableBase(); | 519 super.IterableBase(); |
| 476 } | 520 } |
| 477 get [core.$iterator]() { | 521 get [core.$iterator]() { |
| 478 return new (WhereIterator$(E))(this[_iterable][core.$iterator], this[_f]
); | 522 return new (WhereIterator$(E))(this[_iterable][core.$iterator], this[_f]
); |
| 479 } | 523 } |
| 480 } | 524 } |
| 525 dart.setSignature(WhereIterable, {}); |
| 481 return WhereIterable; | 526 return WhereIterable; |
| 482 }); | 527 }); |
| 483 let WhereIterable = WhereIterable$(); | 528 let WhereIterable = WhereIterable$(); |
| 484 let WhereIterator$ = dart.generic(function(E) { | 529 let WhereIterator$ = dart.generic(function(E) { |
| 485 class WhereIterator extends core.Iterator$(E) { | 530 class WhereIterator extends core.Iterator$(E) { |
| 486 WhereIterator(iterator, f) { | 531 WhereIterator(iterator, f) { |
| 487 this[_iterator] = iterator; | 532 this[_iterator] = iterator; |
| 488 this[_f] = f; | 533 this[_f] = f; |
| 489 } | 534 } |
| 490 moveNext() { | 535 moveNext() { |
| 491 while (this[_iterator].moveNext()) { | 536 while (this[_iterator].moveNext()) { |
| 492 if (this[_f](this[_iterator].current)) { | 537 if (this[_f](this[_iterator].current)) { |
| 493 return true; | 538 return true; |
| 494 } | 539 } |
| 495 } | 540 } |
| 496 return false; | 541 return false; |
| 497 } | 542 } |
| 498 get current() { | 543 get current() { |
| 499 return this[_iterator].current; | 544 return this[_iterator].current; |
| 500 } | 545 } |
| 501 } | 546 } |
| 547 dart.setSignature(WhereIterator, { |
| 548 methods: () => ({moveNext: dart.functionType(core.bool, [])}) |
| 549 }); |
| 502 return WhereIterator; | 550 return WhereIterator; |
| 503 }); | 551 }); |
| 504 let WhereIterator = WhereIterator$(); | 552 let WhereIterator = WhereIterator$(); |
| 505 let _ExpandFunction$ = dart.generic(function(S, T) { | 553 let _ExpandFunction$ = dart.generic(function(S, T) { |
| 506 let _ExpandFunction = dart.typedef('_ExpandFunction', () => dart.functionTyp
e(core.Iterable$(T), [S])); | 554 let _ExpandFunction = dart.typedef('_ExpandFunction', () => dart.functionTyp
e(core.Iterable$(T), [S])); |
| 507 return _ExpandFunction; | 555 return _ExpandFunction; |
| 508 }); | 556 }); |
| 509 let _ExpandFunction = _ExpandFunction$(); | 557 let _ExpandFunction = _ExpandFunction$(); |
| 510 let ExpandIterable$ = dart.generic(function(S, T) { | 558 let ExpandIterable$ = dart.generic(function(S, T) { |
| 511 class ExpandIterable extends collection.IterableBase$(T) { | 559 class ExpandIterable extends collection.IterableBase$(T) { |
| 512 ExpandIterable(iterable, f) { | 560 ExpandIterable(iterable, f) { |
| 513 this[_iterable] = iterable; | 561 this[_iterable] = iterable; |
| 514 this[_f] = f; | 562 this[_f] = f; |
| 515 super.IterableBase(); | 563 super.IterableBase(); |
| 516 } | 564 } |
| 517 get [core.$iterator]() { | 565 get [core.$iterator]() { |
| 518 return new (ExpandIterator$(S, T))(this[_iterable][core.$iterator], dart
.as(this[_f], __CastType0)); | 566 return new (ExpandIterator$(S, T))(this[_iterable][core.$iterator], dart
.as(this[_f], __CastType0)); |
| 519 } | 567 } |
| 520 } | 568 } |
| 569 dart.setSignature(ExpandIterable, {}); |
| 521 return ExpandIterable; | 570 return ExpandIterable; |
| 522 }); | 571 }); |
| 523 let ExpandIterable = ExpandIterable$(); | 572 let ExpandIterable = ExpandIterable$(); |
| 524 let _currentExpansion = dart.JsSymbol('_currentExpansion'); | 573 let _currentExpansion = dart.JsSymbol('_currentExpansion'); |
| 525 let _nextExpansion = dart.JsSymbol('_nextExpansion'); | 574 let _nextExpansion = dart.JsSymbol('_nextExpansion'); |
| 526 let ExpandIterator$ = dart.generic(function(S, T) { | 575 let ExpandIterator$ = dart.generic(function(S, T) { |
| 527 class ExpandIterator extends core.Object { | 576 class ExpandIterator extends core.Object { |
| 528 ExpandIterator(iterator, f) { | 577 ExpandIterator(iterator, f) { |
| 529 this[_iterator] = iterator; | 578 this[_iterator] = iterator; |
| 530 this[_f] = f; | 579 this[_f] = f; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 545 this[_currentExpansion] = dart.as(dart.dcall(this[_f], this[_iterato
r].current)[core.$iterator], core.Iterator$(T)); | 594 this[_currentExpansion] = dart.as(dart.dcall(this[_f], this[_iterato
r].current)[core.$iterator], core.Iterator$(T)); |
| 546 } else { | 595 } else { |
| 547 return false; | 596 return false; |
| 548 } | 597 } |
| 549 } | 598 } |
| 550 this[_current] = this[_currentExpansion].current; | 599 this[_current] = this[_currentExpansion].current; |
| 551 return true; | 600 return true; |
| 552 } | 601 } |
| 553 } | 602 } |
| 554 ExpandIterator[dart.implements] = () => [core.Iterator$(T)]; | 603 ExpandIterator[dart.implements] = () => [core.Iterator$(T)]; |
| 604 dart.setSignature(ExpandIterator, { |
| 605 methods: () => ({ |
| 606 [_nextExpansion]: dart.functionType(dart.void, []), |
| 607 moveNext: dart.functionType(core.bool, []) |
| 608 }) |
| 609 }); |
| 555 return ExpandIterator; | 610 return ExpandIterator; |
| 556 }); | 611 }); |
| 557 let ExpandIterator = ExpandIterator$(); | 612 let ExpandIterator = ExpandIterator$(); |
| 558 let _takeCount = dart.JsSymbol('_takeCount'); | 613 let _takeCount = dart.JsSymbol('_takeCount'); |
| 559 let TakeIterable$ = dart.generic(function(E) { | 614 let TakeIterable$ = dart.generic(function(E) { |
| 560 class TakeIterable extends collection.IterableBase$(E) { | 615 class TakeIterable extends collection.IterableBase$(E) { |
| 561 TakeIterable(iterable, takeCount) { | 616 TakeIterable(iterable, takeCount) { |
| 562 if (!(typeof takeCount == 'number') || dart.notNull(takeCount) < 0) { | 617 if (!(typeof takeCount == 'number') || dart.notNull(takeCount) < 0) { |
| 563 throw new core.ArgumentError(takeCount); | 618 throw new core.ArgumentError(takeCount); |
| 564 } | 619 } |
| 565 if (dart.is(iterable, EfficientLength)) { | 620 if (dart.is(iterable, EfficientLength)) { |
| 566 return new (EfficientLengthTakeIterable$(E))(iterable, takeCount); | 621 return new (EfficientLengthTakeIterable$(E))(iterable, takeCount); |
| 567 } | 622 } |
| 568 return new (TakeIterable$(E))._(iterable, takeCount); | 623 return new (TakeIterable$(E))._(iterable, takeCount); |
| 569 } | 624 } |
| 570 _(iterable, takeCount) { | 625 _(iterable, takeCount) { |
| 571 this[_iterable] = iterable; | 626 this[_iterable] = iterable; |
| 572 this[_takeCount] = takeCount; | 627 this[_takeCount] = takeCount; |
| 573 super.IterableBase(); | 628 super.IterableBase(); |
| 574 } | 629 } |
| 575 get [core.$iterator]() { | 630 get [core.$iterator]() { |
| 576 return new (TakeIterator$(E))(this[_iterable][core.$iterator], this[_tak
eCount]); | 631 return new (TakeIterator$(E))(this[_iterable][core.$iterator], this[_tak
eCount]); |
| 577 } | 632 } |
| 578 } | 633 } |
| 579 dart.defineNamedConstructor(TakeIterable, '_'); | 634 dart.defineNamedConstructor(TakeIterable, '_'); |
| 635 dart.setSignature(TakeIterable, {}); |
| 580 return TakeIterable; | 636 return TakeIterable; |
| 581 }); | 637 }); |
| 582 let TakeIterable = TakeIterable$(); | 638 let TakeIterable = TakeIterable$(); |
| 583 let EfficientLengthTakeIterable$ = dart.generic(function(E) { | 639 let EfficientLengthTakeIterable$ = dart.generic(function(E) { |
| 584 class EfficientLengthTakeIterable extends TakeIterable$(E) { | 640 class EfficientLengthTakeIterable extends TakeIterable$(E) { |
| 585 EfficientLengthTakeIterable(iterable, takeCount) { | 641 EfficientLengthTakeIterable(iterable, takeCount) { |
| 586 super._(iterable, takeCount); | 642 super._(iterable, takeCount); |
| 587 } | 643 } |
| 588 get [core.$length]() { | 644 get [core.$length]() { |
| 589 let iterableLength = this[_iterable][core.$length]; | 645 let iterableLength = this[_iterable][core.$length]; |
| 590 if (dart.notNull(iterableLength) > dart.notNull(this[_takeCount])) | 646 if (dart.notNull(iterableLength) > dart.notNull(this[_takeCount])) |
| 591 return this[_takeCount]; | 647 return this[_takeCount]; |
| 592 return iterableLength; | 648 return iterableLength; |
| 593 } | 649 } |
| 594 } | 650 } |
| 595 EfficientLengthTakeIterable[dart.implements] = () => [EfficientLength]; | 651 EfficientLengthTakeIterable[dart.implements] = () => [EfficientLength]; |
| 652 dart.setSignature(EfficientLengthTakeIterable, {}); |
| 596 return EfficientLengthTakeIterable; | 653 return EfficientLengthTakeIterable; |
| 597 }); | 654 }); |
| 598 let EfficientLengthTakeIterable = EfficientLengthTakeIterable$(); | 655 let EfficientLengthTakeIterable = EfficientLengthTakeIterable$(); |
| 599 let _remaining = dart.JsSymbol('_remaining'); | 656 let _remaining = dart.JsSymbol('_remaining'); |
| 600 let TakeIterator$ = dart.generic(function(E) { | 657 let TakeIterator$ = dart.generic(function(E) { |
| 601 class TakeIterator extends core.Iterator$(E) { | 658 class TakeIterator extends core.Iterator$(E) { |
| 602 TakeIterator(iterator, remaining) { | 659 TakeIterator(iterator, remaining) { |
| 603 this[_iterator] = iterator; | 660 this[_iterator] = iterator; |
| 604 this[_remaining] = remaining; | 661 this[_remaining] = remaining; |
| 605 dart.assert(typeof this[_remaining] == 'number' && dart.notNull(this[_re
maining]) >= 0); | 662 dart.assert(typeof this[_remaining] == 'number' && dart.notNull(this[_re
maining]) >= 0); |
| 606 } | 663 } |
| 607 moveNext() { | 664 moveNext() { |
| 608 this[_remaining] = dart.notNull(this[_remaining]) - 1; | 665 this[_remaining] = dart.notNull(this[_remaining]) - 1; |
| 609 if (dart.notNull(this[_remaining]) >= 0) { | 666 if (dart.notNull(this[_remaining]) >= 0) { |
| 610 return this[_iterator].moveNext(); | 667 return this[_iterator].moveNext(); |
| 611 } | 668 } |
| 612 this[_remaining] = -1; | 669 this[_remaining] = -1; |
| 613 return false; | 670 return false; |
| 614 } | 671 } |
| 615 get current() { | 672 get current() { |
| 616 if (dart.notNull(this[_remaining]) < 0) | 673 if (dart.notNull(this[_remaining]) < 0) |
| 617 return null; | 674 return null; |
| 618 return this[_iterator].current; | 675 return this[_iterator].current; |
| 619 } | 676 } |
| 620 } | 677 } |
| 678 dart.setSignature(TakeIterator, { |
| 679 methods: () => ({moveNext: dart.functionType(core.bool, [])}) |
| 680 }); |
| 621 return TakeIterator; | 681 return TakeIterator; |
| 622 }); | 682 }); |
| 623 let TakeIterator = TakeIterator$(); | 683 let TakeIterator = TakeIterator$(); |
| 624 let TakeWhileIterable$ = dart.generic(function(E) { | 684 let TakeWhileIterable$ = dart.generic(function(E) { |
| 625 class TakeWhileIterable extends collection.IterableBase$(E) { | 685 class TakeWhileIterable extends collection.IterableBase$(E) { |
| 626 TakeWhileIterable(iterable, f) { | 686 TakeWhileIterable(iterable, f) { |
| 627 this[_iterable] = iterable; | 687 this[_iterable] = iterable; |
| 628 this[_f] = f; | 688 this[_f] = f; |
| 629 super.IterableBase(); | 689 super.IterableBase(); |
| 630 } | 690 } |
| 631 get [core.$iterator]() { | 691 get [core.$iterator]() { |
| 632 return new (TakeWhileIterator$(E))(this[_iterable][core.$iterator], dart
.as(this[_f], __CastType2)); | 692 return new (TakeWhileIterator$(E))(this[_iterable][core.$iterator], dart
.as(this[_f], __CastType2)); |
| 633 } | 693 } |
| 634 } | 694 } |
| 695 dart.setSignature(TakeWhileIterable, {}); |
| 635 return TakeWhileIterable; | 696 return TakeWhileIterable; |
| 636 }); | 697 }); |
| 637 let TakeWhileIterable = TakeWhileIterable$(); | 698 let TakeWhileIterable = TakeWhileIterable$(); |
| 638 let _isFinished = dart.JsSymbol('_isFinished'); | 699 let _isFinished = dart.JsSymbol('_isFinished'); |
| 639 let TakeWhileIterator$ = dart.generic(function(E) { | 700 let TakeWhileIterator$ = dart.generic(function(E) { |
| 640 class TakeWhileIterator extends core.Iterator$(E) { | 701 class TakeWhileIterator extends core.Iterator$(E) { |
| 641 TakeWhileIterator(iterator, f) { | 702 TakeWhileIterator(iterator, f) { |
| 642 this[_iterator] = iterator; | 703 this[_iterator] = iterator; |
| 643 this[_f] = f; | 704 this[_f] = f; |
| 644 this[_isFinished] = false; | 705 this[_isFinished] = false; |
| 645 } | 706 } |
| 646 moveNext() { | 707 moveNext() { |
| 647 if (this[_isFinished]) | 708 if (this[_isFinished]) |
| 648 return false; | 709 return false; |
| 649 if (!dart.notNull(this[_iterator].moveNext()) || !dart.notNull(dart.dcal
l(this[_f], this[_iterator].current))) { | 710 if (!dart.notNull(this[_iterator].moveNext()) || !dart.notNull(dart.dcal
l(this[_f], this[_iterator].current))) { |
| 650 this[_isFinished] = true; | 711 this[_isFinished] = true; |
| 651 return false; | 712 return false; |
| 652 } | 713 } |
| 653 return true; | 714 return true; |
| 654 } | 715 } |
| 655 get current() { | 716 get current() { |
| 656 if (this[_isFinished]) | 717 if (this[_isFinished]) |
| 657 return null; | 718 return null; |
| 658 return this[_iterator].current; | 719 return this[_iterator].current; |
| 659 } | 720 } |
| 660 } | 721 } |
| 722 dart.setSignature(TakeWhileIterator, { |
| 723 methods: () => ({moveNext: dart.functionType(core.bool, [])}) |
| 724 }); |
| 661 return TakeWhileIterator; | 725 return TakeWhileIterator; |
| 662 }); | 726 }); |
| 663 let TakeWhileIterator = TakeWhileIterator$(); | 727 let TakeWhileIterator = TakeWhileIterator$(); |
| 664 let _skipCount = dart.JsSymbol('_skipCount'); | 728 let _skipCount = dart.JsSymbol('_skipCount'); |
| 665 let SkipIterable$ = dart.generic(function(E) { | 729 let SkipIterable$ = dart.generic(function(E) { |
| 666 class SkipIterable extends collection.IterableBase$(E) { | 730 class SkipIterable extends collection.IterableBase$(E) { |
| 667 SkipIterable(iterable, count) { | 731 SkipIterable(iterable, count) { |
| 668 if (dart.is(iterable, EfficientLength)) { | 732 if (dart.is(iterable, EfficientLength)) { |
| 669 return new (EfficientLengthSkipIterable$(E))(iterable, count); | 733 return new (EfficientLengthSkipIterable$(E))(iterable, count); |
| 670 } | 734 } |
| (...skipping 13 matching lines...) Expand all Loading... |
| 684 throw new core.ArgumentError.value(this[_skipCount], "count is not an
integer"); | 748 throw new core.ArgumentError.value(this[_skipCount], "count is not an
integer"); |
| 685 } | 749 } |
| 686 core.RangeError.checkNotNegative(this[_skipCount], "count"); | 750 core.RangeError.checkNotNegative(this[_skipCount], "count"); |
| 687 return new (SkipIterable$(E))._(this[_iterable], dart.notNull(this[_skip
Count]) + dart.notNull(count)); | 751 return new (SkipIterable$(E))._(this[_iterable], dart.notNull(this[_skip
Count]) + dart.notNull(count)); |
| 688 } | 752 } |
| 689 get [core.$iterator]() { | 753 get [core.$iterator]() { |
| 690 return new (SkipIterator$(E))(this[_iterable][core.$iterator], this[_ski
pCount]); | 754 return new (SkipIterator$(E))(this[_iterable][core.$iterator], this[_ski
pCount]); |
| 691 } | 755 } |
| 692 } | 756 } |
| 693 dart.defineNamedConstructor(SkipIterable, '_'); | 757 dart.defineNamedConstructor(SkipIterable, '_'); |
| 758 dart.setSignature(SkipIterable, { |
| 759 methods: () => ({[core.$skip]: dart.functionType(core.Iterable$(E), [core.
int])}) |
| 760 }); |
| 694 return SkipIterable; | 761 return SkipIterable; |
| 695 }); | 762 }); |
| 696 let SkipIterable = SkipIterable$(); | 763 let SkipIterable = SkipIterable$(); |
| 697 let EfficientLengthSkipIterable$ = dart.generic(function(E) { | 764 let EfficientLengthSkipIterable$ = dart.generic(function(E) { |
| 698 class EfficientLengthSkipIterable extends SkipIterable$(E) { | 765 class EfficientLengthSkipIterable extends SkipIterable$(E) { |
| 699 EfficientLengthSkipIterable(iterable, skipCount) { | 766 EfficientLengthSkipIterable(iterable, skipCount) { |
| 700 super._(iterable, skipCount); | 767 super._(iterable, skipCount); |
| 701 } | 768 } |
| 702 get [core.$length]() { | 769 get [core.$length]() { |
| 703 let length = dart.notNull(this[_iterable][core.$length]) - dart.notNull(
this[_skipCount]); | 770 let length = dart.notNull(this[_iterable][core.$length]) - dart.notNull(
this[_skipCount]); |
| 704 if (dart.notNull(length) >= 0) | 771 if (dart.notNull(length) >= 0) |
| 705 return length; | 772 return length; |
| 706 return 0; | 773 return 0; |
| 707 } | 774 } |
| 708 } | 775 } |
| 709 EfficientLengthSkipIterable[dart.implements] = () => [EfficientLength]; | 776 EfficientLengthSkipIterable[dart.implements] = () => [EfficientLength]; |
| 777 dart.setSignature(EfficientLengthSkipIterable, {}); |
| 710 return EfficientLengthSkipIterable; | 778 return EfficientLengthSkipIterable; |
| 711 }); | 779 }); |
| 712 let EfficientLengthSkipIterable = EfficientLengthSkipIterable$(); | 780 let EfficientLengthSkipIterable = EfficientLengthSkipIterable$(); |
| 713 let SkipIterator$ = dart.generic(function(E) { | 781 let SkipIterator$ = dart.generic(function(E) { |
| 714 class SkipIterator extends core.Iterator$(E) { | 782 class SkipIterator extends core.Iterator$(E) { |
| 715 SkipIterator(iterator, skipCount) { | 783 SkipIterator(iterator, skipCount) { |
| 716 this[_iterator] = iterator; | 784 this[_iterator] = iterator; |
| 717 this[_skipCount] = skipCount; | 785 this[_skipCount] = skipCount; |
| 718 dart.assert(typeof this[_skipCount] == 'number' && dart.notNull(this[_sk
ipCount]) >= 0); | 786 dart.assert(typeof this[_skipCount] == 'number' && dart.notNull(this[_sk
ipCount]) >= 0); |
| 719 } | 787 } |
| 720 moveNext() { | 788 moveNext() { |
| 721 for (let i = 0; dart.notNull(i) < dart.notNull(this[_skipCount]); i = da
rt.notNull(i) + 1) | 789 for (let i = 0; dart.notNull(i) < dart.notNull(this[_skipCount]); i = da
rt.notNull(i) + 1) |
| 722 this[_iterator].moveNext(); | 790 this[_iterator].moveNext(); |
| 723 this[_skipCount] = 0; | 791 this[_skipCount] = 0; |
| 724 return this[_iterator].moveNext(); | 792 return this[_iterator].moveNext(); |
| 725 } | 793 } |
| 726 get current() { | 794 get current() { |
| 727 return this[_iterator].current; | 795 return this[_iterator].current; |
| 728 } | 796 } |
| 729 } | 797 } |
| 798 dart.setSignature(SkipIterator, { |
| 799 methods: () => ({moveNext: dart.functionType(core.bool, [])}) |
| 800 }); |
| 730 return SkipIterator; | 801 return SkipIterator; |
| 731 }); | 802 }); |
| 732 let SkipIterator = SkipIterator$(); | 803 let SkipIterator = SkipIterator$(); |
| 733 let SkipWhileIterable$ = dart.generic(function(E) { | 804 let SkipWhileIterable$ = dart.generic(function(E) { |
| 734 class SkipWhileIterable extends collection.IterableBase$(E) { | 805 class SkipWhileIterable extends collection.IterableBase$(E) { |
| 735 SkipWhileIterable(iterable, f) { | 806 SkipWhileIterable(iterable, f) { |
| 736 this[_iterable] = iterable; | 807 this[_iterable] = iterable; |
| 737 this[_f] = f; | 808 this[_f] = f; |
| 738 super.IterableBase(); | 809 super.IterableBase(); |
| 739 } | 810 } |
| 740 get [core.$iterator]() { | 811 get [core.$iterator]() { |
| 741 return new (SkipWhileIterator$(E))(this[_iterable][core.$iterator], dart
.as(this[_f], __CastType4)); | 812 return new (SkipWhileIterator$(E))(this[_iterable][core.$iterator], dart
.as(this[_f], __CastType4)); |
| 742 } | 813 } |
| 743 } | 814 } |
| 815 dart.setSignature(SkipWhileIterable, {}); |
| 744 return SkipWhileIterable; | 816 return SkipWhileIterable; |
| 745 }); | 817 }); |
| 746 let SkipWhileIterable = SkipWhileIterable$(); | 818 let SkipWhileIterable = SkipWhileIterable$(); |
| 747 let _hasSkipped = dart.JsSymbol('_hasSkipped'); | 819 let _hasSkipped = dart.JsSymbol('_hasSkipped'); |
| 748 let SkipWhileIterator$ = dart.generic(function(E) { | 820 let SkipWhileIterator$ = dart.generic(function(E) { |
| 749 class SkipWhileIterator extends core.Iterator$(E) { | 821 class SkipWhileIterator extends core.Iterator$(E) { |
| 750 SkipWhileIterator(iterator, f) { | 822 SkipWhileIterator(iterator, f) { |
| 751 this[_iterator] = iterator; | 823 this[_iterator] = iterator; |
| 752 this[_f] = f; | 824 this[_f] = f; |
| 753 this[_hasSkipped] = false; | 825 this[_hasSkipped] = false; |
| 754 } | 826 } |
| 755 moveNext() { | 827 moveNext() { |
| 756 if (!dart.notNull(this[_hasSkipped])) { | 828 if (!dart.notNull(this[_hasSkipped])) { |
| 757 this[_hasSkipped] = true; | 829 this[_hasSkipped] = true; |
| 758 while (this[_iterator].moveNext()) { | 830 while (this[_iterator].moveNext()) { |
| 759 if (!dart.notNull(dart.dcall(this[_f], this[_iterator].current))) | 831 if (!dart.notNull(dart.dcall(this[_f], this[_iterator].current))) |
| 760 return true; | 832 return true; |
| 761 } | 833 } |
| 762 } | 834 } |
| 763 return this[_iterator].moveNext(); | 835 return this[_iterator].moveNext(); |
| 764 } | 836 } |
| 765 get current() { | 837 get current() { |
| 766 return this[_iterator].current; | 838 return this[_iterator].current; |
| 767 } | 839 } |
| 768 } | 840 } |
| 841 dart.setSignature(SkipWhileIterator, { |
| 842 methods: () => ({moveNext: dart.functionType(core.bool, [])}) |
| 843 }); |
| 769 return SkipWhileIterator; | 844 return SkipWhileIterator; |
| 770 }); | 845 }); |
| 771 let SkipWhileIterator = SkipWhileIterator$(); | 846 let SkipWhileIterator = SkipWhileIterator$(); |
| 772 let EmptyIterable$ = dart.generic(function(E) { | 847 let EmptyIterable$ = dart.generic(function(E) { |
| 773 class EmptyIterable extends collection.IterableBase$(E) { | 848 class EmptyIterable extends collection.IterableBase$(E) { |
| 774 EmptyIterable() { | 849 EmptyIterable() { |
| 775 super.IterableBase(); | 850 super.IterableBase(); |
| 776 } | 851 } |
| 777 get [core.$iterator]() { | 852 get [core.$iterator]() { |
| 778 return dart.const(new (EmptyIterator$(E))()); | 853 return dart.const(new (EmptyIterator$(E))()); |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 872 } | 947 } |
| 873 [core.$toList](opts) { | 948 [core.$toList](opts) { |
| 874 let growable = opts && 'growable' in opts ? opts.growable : true; | 949 let growable = opts && 'growable' in opts ? opts.growable : true; |
| 875 return growable ? dart.setType([], core.List$(E)) : new (core.List$(E))(
0); | 950 return growable ? dart.setType([], core.List$(E)) : new (core.List$(E))(
0); |
| 876 } | 951 } |
| 877 [core.$toSet]() { | 952 [core.$toSet]() { |
| 878 return new (core.Set$(E))(); | 953 return new (core.Set$(E))(); |
| 879 } | 954 } |
| 880 } | 955 } |
| 881 EmptyIterable[dart.implements] = () => [EfficientLength]; | 956 EmptyIterable[dart.implements] = () => [EfficientLength]; |
| 957 dart.setSignature(EmptyIterable, { |
| 958 methods: () => ({ |
| 959 [core.$forEach]: dart.functionType(dart.void, [dart.functionType(dart.vo
id, [E])]), |
| 960 [core.$elementAt]: dart.functionType(E, [core.int]), |
| 961 [core.$contains]: dart.functionType(core.bool, [core.Object]), |
| 962 [core.$every]: dart.functionType(core.bool, [dart.functionType(core.bool
, [E])]), |
| 963 [core.$any]: dart.functionType(core.bool, [dart.functionType(core.bool,
[E])]), |
| 964 [core.$firstWhere]: dart.functionType(E, [dart.functionType(core.bool, [
E])], {rEls: dart.functionType(E, [])}), |
| 965 [core.$lastWhere]: dart.functionType(E, [dart.functionType(core.bool, [E
])], {rEls: dart.functionType(E, [])}), |
| 966 [core.$singleWhere]: dart.functionType(E, [dart.functionType(core.bool,
[E])], {rEls: dart.functionType(E, [])}), |
| 967 [core.$join]: dart.functionType(core.String, [], [core.String]), |
| 968 [core.$where]: dart.functionType(core.Iterable$(E), [dart.functionType(c
ore.bool, [E])]), |
| 969 [core.$map]: dart.functionType(core.Iterable, [dart.functionType(dart.dy
namic, [E])]), |
| 970 [core.$reduce]: dart.functionType(E, [dart.functionType(E, [E, E])]), |
| 971 [core.$fold]: dart.functionType(dart.dynamic, [dart.dynamic, dart.functi
onType(dart.dynamic, [dart.dynamic, E])]), |
| 972 [core.$skip]: dart.functionType(core.Iterable$(E), [core.int]), |
| 973 [core.$skipWhile]: dart.functionType(core.Iterable$(E), [dart.functionTy
pe(core.bool, [E])]), |
| 974 [core.$take]: dart.functionType(core.Iterable$(E), [core.int]), |
| 975 [core.$takeWhile]: dart.functionType(core.Iterable$(E), [dart.functionTy
pe(core.bool, [E])]), |
| 976 [core.$toList]: dart.functionType(core.List$(E), [], {rowabl: core.bool}
), |
| 977 [core.$toSet]: dart.functionType(core.Set$(E), []) |
| 978 }) |
| 979 }); |
| 882 return EmptyIterable; | 980 return EmptyIterable; |
| 883 }); | 981 }); |
| 884 let EmptyIterable = EmptyIterable$(); | 982 let EmptyIterable = EmptyIterable$(); |
| 885 let EmptyIterator$ = dart.generic(function(E) { | 983 let EmptyIterator$ = dart.generic(function(E) { |
| 886 class EmptyIterator extends core.Object { | 984 class EmptyIterator extends core.Object { |
| 887 EmptyIterator() { | 985 EmptyIterator() { |
| 888 } | 986 } |
| 889 moveNext() { | 987 moveNext() { |
| 890 return false; | 988 return false; |
| 891 } | 989 } |
| 892 get current() { | 990 get current() { |
| 893 return null; | 991 return null; |
| 894 } | 992 } |
| 895 } | 993 } |
| 896 EmptyIterator[dart.implements] = () => [core.Iterator$(E)]; | 994 EmptyIterator[dart.implements] = () => [core.Iterator$(E)]; |
| 995 dart.setSignature(EmptyIterator, { |
| 996 methods: () => ({moveNext: dart.functionType(core.bool, [])}) |
| 997 }); |
| 897 return EmptyIterator; | 998 return EmptyIterator; |
| 898 }); | 999 }); |
| 899 let EmptyIterator = EmptyIterator$(); | 1000 let EmptyIterator = EmptyIterator$(); |
| 900 let BidirectionalIterator$ = dart.generic(function(T) { | 1001 let BidirectionalIterator$ = dart.generic(function(T) { |
| 901 class BidirectionalIterator extends core.Object {} | 1002 class BidirectionalIterator extends core.Object {} |
| 902 BidirectionalIterator[dart.implements] = () => [core.Iterator$(T)]; | 1003 BidirectionalIterator[dart.implements] = () => [core.Iterator$(T)]; |
| 1004 dart.setSignature(BidirectionalIterator, {}); |
| 903 return BidirectionalIterator; | 1005 return BidirectionalIterator; |
| 904 }); | 1006 }); |
| 905 let BidirectionalIterator = BidirectionalIterator$(); | 1007 let BidirectionalIterator = BidirectionalIterator$(); |
| 906 let IterableMixinWorkaround$ = dart.generic(function(T) { | 1008 let IterableMixinWorkaround$ = dart.generic(function(T) { |
| 907 class IterableMixinWorkaround extends core.Object { | 1009 class IterableMixinWorkaround extends core.Object { |
| 908 static contains(iterable, element) { | 1010 static contains(iterable, element) { |
| 909 for (let e of iterable) { | 1011 for (let e of iterable) { |
| 910 if (dart.equals(e, element)) | 1012 if (dart.equals(e, element)) |
| 911 return true; | 1013 return true; |
| 912 } | 1014 } |
| (...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1277 } | 1379 } |
| 1278 static setDifference(set, other, result) { | 1380 static setDifference(set, other, result) { |
| 1279 for (let element of set) { | 1381 for (let element of set) { |
| 1280 if (!dart.notNull(other[core.$contains](element))) { | 1382 if (!dart.notNull(other[core.$contains](element))) { |
| 1281 result.add(element); | 1383 result.add(element); |
| 1282 } | 1384 } |
| 1283 } | 1385 } |
| 1284 return result; | 1386 return result; |
| 1285 } | 1387 } |
| 1286 } | 1388 } |
| 1389 dart.setSignature(IterableMixinWorkaround, { |
| 1390 methods: () => ({ |
| 1391 where: dart.functionType(core.Iterable$(T), [core.Iterable, dart.functio
nType(core.bool, [dart.dynamic])]), |
| 1392 takeList: dart.functionType(core.Iterable$(T), [core.List, core.int]), |
| 1393 takeWhile: dart.functionType(core.Iterable$(T), [core.Iterable, dart.fun
ctionType(core.bool, [dart.dynamic])]), |
| 1394 skipList: dart.functionType(core.Iterable$(T), [core.List, core.int]), |
| 1395 skipWhile: dart.functionType(core.Iterable$(T), [core.Iterable, dart.fun
ctionType(core.bool, [dart.dynamic])]), |
| 1396 reversedList: dart.functionType(core.Iterable$(T), [core.List]), |
| 1397 getRangeList: dart.functionType(core.Iterable$(T), [core.List, core.int,
core.int]), |
| 1398 asMapList: dart.functionType(core.Map$(core.int, T), [core.List]) |
| 1399 }), |
| 1400 statics: () => ({ |
| 1401 contains: dart.functionType(core.bool, [core.Iterable, dart.dynamic]), |
| 1402 forEach: dart.functionType(dart.void, [core.Iterable, dart.functionType(
dart.void, [dart.dynamic])]), |
| 1403 any: dart.functionType(core.bool, [core.Iterable, dart.functionType(core
.bool, [dart.dynamic])]), |
| 1404 every: dart.functionType(core.bool, [core.Iterable, dart.functionType(co
re.bool, [dart.dynamic])]), |
| 1405 reduce: dart.functionType(dart.dynamic, [core.Iterable, dart.functionTyp
e(dart.dynamic, [dart.dynamic, dart.dynamic])]), |
| 1406 fold: dart.functionType(dart.dynamic, [core.Iterable, dart.dynamic, dart
.functionType(dart.dynamic, [dart.dynamic, dart.dynamic])]), |
| 1407 removeWhereList: dart.functionType(dart.void, [core.List, dart.functionT
ype(core.bool, [dart.dynamic])]), |
| 1408 isEmpty: dart.functionType(core.bool, [core.Iterable]), |
| 1409 first: dart.functionType(dart.dynamic, [core.Iterable]), |
| 1410 last: dart.functionType(dart.dynamic, [core.Iterable]), |
| 1411 single: dart.functionType(dart.dynamic, [core.Iterable]), |
| 1412 firstWhere: dart.functionType(dart.dynamic, [core.Iterable, dart.functio
nType(core.bool, [dart.dynamic]), dart.functionType(dart.dynamic, [])]), |
| 1413 lastWhere: dart.functionType(dart.dynamic, [core.Iterable, dart.function
Type(core.bool, [dart.dynamic]), dart.functionType(dart.dynamic, [])]), |
| 1414 lastWhereList: dart.functionType(dart.dynamic, [core.List, dart.function
Type(core.bool, [dart.dynamic]), dart.functionType(dart.dynamic, [])]), |
| 1415 singleWhere: dart.functionType(dart.dynamic, [core.Iterable, dart.functi
onType(core.bool, [dart.dynamic])]), |
| 1416 elementAt: dart.functionType(dart.dynamic, [core.Iterable, core.int]), |
| 1417 join: dart.functionType(core.String, [core.Iterable], [core.String]), |
| 1418 joinList: dart.functionType(core.String, [core.List], [core.String]), |
| 1419 map: dart.functionType(core.Iterable, [core.Iterable, dart.functionType(
dart.dynamic, [dart.dynamic])]), |
| 1420 mapList: dart.functionType(core.Iterable, [core.List, dart.functionType(
dart.dynamic, [dart.dynamic])]), |
| 1421 expand: dart.functionType(core.Iterable, [core.Iterable, dart.functionTy
pe(core.Iterable, [dart.dynamic])]), |
| 1422 sortList: dart.functionType(dart.void, [core.List, dart.functionType(cor
e.int, [dart.dynamic, dart.dynamic])]), |
| 1423 shuffleList: dart.functionType(dart.void, [core.List, math.Random]), |
| 1424 indexOfList: dart.functionType(core.int, [core.List, dart.dynamic, core.
int]), |
| 1425 lastIndexOfList: dart.functionType(core.int, [core.List, dart.dynamic, c
ore.int]), |
| 1426 _rangeCheck: dart.functionType(dart.void, [core.List, core.int, core.int
]), |
| 1427 setRangeList: dart.functionType(dart.void, [core.List, core.int, core.in
t, core.Iterable, core.int]), |
| 1428 replaceRangeList: dart.functionType(dart.void, [core.List, core.int, cor
e.int, core.Iterable]), |
| 1429 fillRangeList: dart.functionType(dart.void, [core.List, core.int, core.i
nt, dart.dynamic]), |
| 1430 insertAllList: dart.functionType(dart.void, [core.List, core.int, core.I
terable]), |
| 1431 setAllList: dart.functionType(dart.void, [core.List, core.int, core.Iter
able]), |
| 1432 setContainsAll: dart.functionType(core.bool, [core.Set, core.Iterable]), |
| 1433 setIntersection: dart.functionType(core.Set, [core.Set, core.Set, core.S
et]), |
| 1434 setUnion: dart.functionType(core.Set, [core.Set, core.Set, core.Set]), |
| 1435 setDifference: dart.functionType(core.Set, [core.Set, core.Set, core.Set
]) |
| 1436 }), |
| 1437 names: ['contains', 'forEach', 'any', 'every', 'reduce', 'fold', 'removeWh
ereList', 'isEmpty', 'first', 'last', 'single', 'firstWhere', 'lastWhere', 'last
WhereList', 'singleWhere', 'elementAt', 'join', 'joinList', 'map', 'mapList', 'e
xpand', 'sortList', 'shuffleList', 'indexOfList', 'lastIndexOfList', '_rangeChec
k', 'setRangeList', 'replaceRangeList', 'fillRangeList', 'insertAllList', 'setAl
lList', 'setContainsAll', 'setIntersection', 'setUnion', 'setDifference'] |
| 1438 }); |
| 1287 return IterableMixinWorkaround; | 1439 return IterableMixinWorkaround; |
| 1288 }); | 1440 }); |
| 1289 let IterableMixinWorkaround = IterableMixinWorkaround$(); | 1441 let IterableMixinWorkaround = IterableMixinWorkaround$(); |
| 1290 class IterableElementError extends core.Object { | 1442 class IterableElementError extends core.Object { |
| 1291 static noElement() { | 1443 static noElement() { |
| 1292 return new core.StateError("No element"); | 1444 return new core.StateError("No element"); |
| 1293 } | 1445 } |
| 1294 static tooMany() { | 1446 static tooMany() { |
| 1295 return new core.StateError("Too many elements"); | 1447 return new core.StateError("Too many elements"); |
| 1296 } | 1448 } |
| 1297 static tooFew() { | 1449 static tooFew() { |
| 1298 return new core.StateError("Too few elements"); | 1450 return new core.StateError("Too few elements"); |
| 1299 } | 1451 } |
| 1300 } | 1452 } |
| 1453 dart.setSignature(IterableElementError, { |
| 1454 statics: () => ({ |
| 1455 noElement: dart.functionType(core.StateError, []), |
| 1456 tooMany: dart.functionType(core.StateError, []), |
| 1457 tooFew: dart.functionType(core.StateError, []) |
| 1458 }), |
| 1459 names: ['noElement', 'tooMany', 'tooFew'] |
| 1460 }); |
| 1301 let __CastType0$ = dart.generic(function(S, T) { | 1461 let __CastType0$ = dart.generic(function(S, T) { |
| 1302 let __CastType0 = dart.typedef('__CastType0', () => dart.functionType(core.I
terable$(T), [S])); | 1462 let __CastType0 = dart.typedef('__CastType0', () => dart.functionType(core.I
terable$(T), [S])); |
| 1303 return __CastType0; | 1463 return __CastType0; |
| 1304 }); | 1464 }); |
| 1305 let __CastType0 = __CastType0$(); | 1465 let __CastType0 = __CastType0$(); |
| 1306 let __CastType2$ = dart.generic(function(E) { | 1466 let __CastType2$ = dart.generic(function(E) { |
| 1307 let __CastType2 = dart.typedef('__CastType2', () => dart.functionType(core.b
ool, [E])); | 1467 let __CastType2 = dart.typedef('__CastType2', () => dart.functionType(core.b
ool, [E])); |
| 1308 return __CastType2; | 1468 return __CastType2; |
| 1309 }); | 1469 }); |
| 1310 let __CastType2 = __CastType2$(); | 1470 let __CastType2 = __CastType2$(); |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1360 throw new core.UnsupportedError("Cannot remove from a fixed-length list"
); | 1520 throw new core.UnsupportedError("Cannot remove from a fixed-length list"
); |
| 1361 } | 1521 } |
| 1362 removeRange(start, end) { | 1522 removeRange(start, end) { |
| 1363 throw new core.UnsupportedError("Cannot remove from a fixed-length list"
); | 1523 throw new core.UnsupportedError("Cannot remove from a fixed-length list"
); |
| 1364 } | 1524 } |
| 1365 replaceRange(start, end, iterable) { | 1525 replaceRange(start, end, iterable) { |
| 1366 dart.as(iterable, core.Iterable$(E)); | 1526 dart.as(iterable, core.Iterable$(E)); |
| 1367 throw new core.UnsupportedError("Cannot remove from a fixed-length list"
); | 1527 throw new core.UnsupportedError("Cannot remove from a fixed-length list"
); |
| 1368 } | 1528 } |
| 1369 } | 1529 } |
| 1530 dart.setSignature(FixedLengthListMixin, { |
| 1531 methods: () => ({ |
| 1532 add: dart.functionType(dart.void, [E]), |
| 1533 insert: dart.functionType(dart.void, [core.int, E]), |
| 1534 insertAll: dart.functionType(dart.void, [core.int, core.Iterable$(E)]), |
| 1535 addAll: dart.functionType(dart.void, [core.Iterable$(E)]), |
| 1536 remove: dart.functionType(core.bool, [core.Object]), |
| 1537 removeWhere: dart.functionType(dart.void, [dart.functionType(core.bool,
[E])]), |
| 1538 retainWhere: dart.functionType(dart.void, [dart.functionType(core.bool,
[E])]), |
| 1539 clear: dart.functionType(dart.void, []), |
| 1540 removeAt: dart.functionType(E, [core.int]), |
| 1541 removeLast: dart.functionType(E, []), |
| 1542 removeRange: dart.functionType(dart.void, [core.int, core.int]), |
| 1543 replaceRange: dart.functionType(dart.void, [core.int, core.int, core.Ite
rable$(E)]) |
| 1544 }) |
| 1545 }); |
| 1370 return FixedLengthListMixin; | 1546 return FixedLengthListMixin; |
| 1371 }); | 1547 }); |
| 1372 let FixedLengthListMixin = FixedLengthListMixin$(); | 1548 let FixedLengthListMixin = FixedLengthListMixin$(); |
| 1373 let UnmodifiableListMixin$ = dart.generic(function(E) { | 1549 let UnmodifiableListMixin$ = dart.generic(function(E) { |
| 1374 class UnmodifiableListMixin extends core.Object { | 1550 class UnmodifiableListMixin extends core.Object { |
| 1375 [core.$set](index, value) { | 1551 [core.$set](index, value) { |
| 1376 dart.as(value, E); | 1552 dart.as(value, E); |
| 1377 throw new core.UnsupportedError("Cannot modify an unmodifiable list"); | 1553 throw new core.UnsupportedError("Cannot modify an unmodifiable list"); |
| 1378 } | 1554 } |
| 1379 set [core.$length](newLength) { | 1555 set [core.$length](newLength) { |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1444 throw new core.UnsupportedError("Cannot remove from an unmodifiable list
"); | 1620 throw new core.UnsupportedError("Cannot remove from an unmodifiable list
"); |
| 1445 } | 1621 } |
| 1446 [core.$fillRange](start, end, fillValue) { | 1622 [core.$fillRange](start, end, fillValue) { |
| 1447 if (fillValue === void 0) | 1623 if (fillValue === void 0) |
| 1448 fillValue = null; | 1624 fillValue = null; |
| 1449 dart.as(fillValue, E); | 1625 dart.as(fillValue, E); |
| 1450 throw new core.UnsupportedError("Cannot modify an unmodifiable list"); | 1626 throw new core.UnsupportedError("Cannot modify an unmodifiable list"); |
| 1451 } | 1627 } |
| 1452 } | 1628 } |
| 1453 UnmodifiableListMixin[dart.implements] = () => [core.List$(E)]; | 1629 UnmodifiableListMixin[dart.implements] = () => [core.List$(E)]; |
| 1630 dart.setSignature(UnmodifiableListMixin, { |
| 1631 methods: () => ({ |
| 1632 [core.$set]: dart.functionType(dart.void, [core.int, E]), |
| 1633 [core.$setAll]: dart.functionType(dart.void, [core.int, core.Iterable$(E
)]), |
| 1634 [core.$add]: dart.functionType(dart.void, [E]), |
| 1635 [core.$insert]: dart.functionType(E, [core.int, E]), |
| 1636 [core.$insertAll]: dart.functionType(dart.void, [core.int, core.Iterable
$(E)]), |
| 1637 [core.$addAll]: dart.functionType(dart.void, [core.Iterable$(E)]), |
| 1638 [core.$remove]: dart.functionType(core.bool, [core.Object]), |
| 1639 [core.$removeWhere]: dart.functionType(dart.void, [dart.functionType(cor
e.bool, [E])]), |
| 1640 [core.$retainWhere]: dart.functionType(dart.void, [dart.functionType(cor
e.bool, [E])]), |
| 1641 [core.$sort]: dart.functionType(dart.void, [], [core.Comparator$(E)]), |
| 1642 [core.$shuffle]: dart.functionType(dart.void, [], [math.Random]), |
| 1643 [core.$clear]: dart.functionType(dart.void, []), |
| 1644 [core.$removeAt]: dart.functionType(E, [core.int]), |
| 1645 [core.$removeLast]: dart.functionType(E, []), |
| 1646 [core.$setRange]: dart.functionType(dart.void, [core.int, core.int, core
.Iterable$(E)], [core.int]), |
| 1647 [core.$removeRange]: dart.functionType(dart.void, [core.int, core.int]), |
| 1648 [core.$replaceRange]: dart.functionType(dart.void, [core.int, core.int,
core.Iterable$(E)]), |
| 1649 [core.$fillRange]: dart.functionType(dart.void, [core.int, core.int], [E
]) |
| 1650 }) |
| 1651 }); |
| 1454 return UnmodifiableListMixin; | 1652 return UnmodifiableListMixin; |
| 1455 }); | 1653 }); |
| 1456 let UnmodifiableListMixin = UnmodifiableListMixin$(); | 1654 let UnmodifiableListMixin = UnmodifiableListMixin$(); |
| 1457 let FixedLengthListBase$ = dart.generic(function(E) { | 1655 let FixedLengthListBase$ = dart.generic(function(E) { |
| 1458 class FixedLengthListBase extends dart.mixin(collection.ListBase$(E), FixedL
engthListMixin$(E)) {} | 1656 class FixedLengthListBase extends dart.mixin(collection.ListBase$(E), FixedL
engthListMixin$(E)) {} |
| 1459 return FixedLengthListBase; | 1657 return FixedLengthListBase; |
| 1460 }); | 1658 }); |
| 1461 let FixedLengthListBase = FixedLengthListBase$(); | 1659 let FixedLengthListBase = FixedLengthListBase$(); |
| 1462 let UnmodifiableListBase$ = dart.generic(function(E) { | 1660 let UnmodifiableListBase$ = dart.generic(function(E) { |
| 1463 class UnmodifiableListBase extends dart.mixin(collection.ListBase$(E), Unmod
ifiableListMixin$(E)) {} | 1661 class UnmodifiableListBase extends dart.mixin(collection.ListBase$(E), Unmod
ifiableListMixin$(E)) {} |
| 1464 return UnmodifiableListBase; | 1662 return UnmodifiableListBase; |
| 1465 }); | 1663 }); |
| 1466 let UnmodifiableListBase = UnmodifiableListBase$(); | 1664 let UnmodifiableListBase = UnmodifiableListBase$(); |
| 1467 let _backedList = dart.JsSymbol('_backedList'); | 1665 let _backedList = dart.JsSymbol('_backedList'); |
| 1468 class _ListIndicesIterable extends ListIterable$(core.int) { | 1666 class _ListIndicesIterable extends ListIterable$(core.int) { |
| 1469 _ListIndicesIterable(backedList) { | 1667 _ListIndicesIterable(backedList) { |
| 1470 this[_backedList] = backedList; | 1668 this[_backedList] = backedList; |
| 1471 super.ListIterable(); | 1669 super.ListIterable(); |
| 1472 } | 1670 } |
| 1473 get [core.$length]() { | 1671 get [core.$length]() { |
| 1474 return this[_backedList][core.$length]; | 1672 return this[_backedList][core.$length]; |
| 1475 } | 1673 } |
| 1476 [core.$elementAt](index) { | 1674 [core.$elementAt](index) { |
| 1477 core.RangeError.checkValidIndex(index, this); | 1675 core.RangeError.checkValidIndex(index, this); |
| 1478 return index; | 1676 return index; |
| 1479 } | 1677 } |
| 1480 } | 1678 } |
| 1679 dart.setSignature(_ListIndicesIterable, { |
| 1680 methods: () => ({[core.$elementAt]: dart.functionType(core.int, [core.int])}
) |
| 1681 }); |
| 1481 let _values = dart.JsSymbol('_values'); | 1682 let _values = dart.JsSymbol('_values'); |
| 1482 let ListMapView$ = dart.generic(function(E) { | 1683 let ListMapView$ = dart.generic(function(E) { |
| 1483 class ListMapView extends core.Object { | 1684 class ListMapView extends core.Object { |
| 1484 ListMapView(values) { | 1685 ListMapView(values) { |
| 1485 this[_values] = values; | 1686 this[_values] = values; |
| 1486 } | 1687 } |
| 1487 get(key) { | 1688 get(key) { |
| 1488 return this.containsKey(key) ? this[_values][core.$get](key) : null; | 1689 return this.containsKey(key) ? this[_values][core.$get](key) : null; |
| 1489 } | 1690 } |
| 1490 get length() { | 1691 get length() { |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1534 } | 1735 } |
| 1535 addAll(other) { | 1736 addAll(other) { |
| 1536 dart.as(other, core.Map$(core.int, E)); | 1737 dart.as(other, core.Map$(core.int, E)); |
| 1537 throw new core.UnsupportedError("Cannot modify an unmodifiable map"); | 1738 throw new core.UnsupportedError("Cannot modify an unmodifiable map"); |
| 1538 } | 1739 } |
| 1539 toString() { | 1740 toString() { |
| 1540 return collection.Maps.mapToString(this); | 1741 return collection.Maps.mapToString(this); |
| 1541 } | 1742 } |
| 1542 } | 1743 } |
| 1543 ListMapView[dart.implements] = () => [core.Map$(core.int, E)]; | 1744 ListMapView[dart.implements] = () => [core.Map$(core.int, E)]; |
| 1745 dart.setSignature(ListMapView, { |
| 1746 methods: () => ({ |
| 1747 get: dart.functionType(E, [core.Object]), |
| 1748 containsValue: dart.functionType(core.bool, [core.Object]), |
| 1749 containsKey: dart.functionType(core.bool, [core.Object]), |
| 1750 forEach: dart.functionType(dart.void, [dart.functionType(dart.void, [cor
e.int, E])]), |
| 1751 set: dart.functionType(dart.void, [core.int, E]), |
| 1752 putIfAbsent: dart.functionType(E, [core.int, dart.functionType(E, [])]), |
| 1753 remove: dart.functionType(E, [core.Object]), |
| 1754 clear: dart.functionType(dart.void, []), |
| 1755 addAll: dart.functionType(dart.void, [core.Map$(core.int, E)]), |
| 1756 toString: dart.functionType(core.String, []) |
| 1757 }) |
| 1758 }); |
| 1544 return ListMapView; | 1759 return ListMapView; |
| 1545 }); | 1760 }); |
| 1546 let ListMapView = ListMapView$(); | 1761 let ListMapView = ListMapView$(); |
| 1547 let ReversedListIterable$ = dart.generic(function(E) { | 1762 let ReversedListIterable$ = dart.generic(function(E) { |
| 1548 class ReversedListIterable extends ListIterable$(E) { | 1763 class ReversedListIterable extends ListIterable$(E) { |
| 1549 ReversedListIterable(source) { | 1764 ReversedListIterable(source) { |
| 1550 this[_source] = source; | 1765 this[_source] = source; |
| 1551 super.ListIterable(); | 1766 super.ListIterable(); |
| 1552 } | 1767 } |
| 1553 get [core.$length]() { | 1768 get [core.$length]() { |
| 1554 return this[_source][core.$length]; | 1769 return this[_source][core.$length]; |
| 1555 } | 1770 } |
| 1556 [core.$elementAt](index) { | 1771 [core.$elementAt](index) { |
| 1557 return this[_source][core.$elementAt](dart.notNull(this[_source][core.$l
ength]) - 1 - dart.notNull(index)); | 1772 return this[_source][core.$elementAt](dart.notNull(this[_source][core.$l
ength]) - 1 - dart.notNull(index)); |
| 1558 } | 1773 } |
| 1559 } | 1774 } |
| 1775 dart.setSignature(ReversedListIterable, { |
| 1776 methods: () => ({[core.$elementAt]: dart.functionType(E, [core.int])}) |
| 1777 }); |
| 1560 return ReversedListIterable; | 1778 return ReversedListIterable; |
| 1561 }); | 1779 }); |
| 1562 let ReversedListIterable = ReversedListIterable$(); | 1780 let ReversedListIterable = ReversedListIterable$(); |
| 1563 class UnmodifiableListError extends core.Object { | 1781 class UnmodifiableListError extends core.Object { |
| 1564 static add() { | 1782 static add() { |
| 1565 return new core.UnsupportedError("Cannot add to unmodifiable List"); | 1783 return new core.UnsupportedError("Cannot add to unmodifiable List"); |
| 1566 } | 1784 } |
| 1567 static change() { | 1785 static change() { |
| 1568 return new core.UnsupportedError("Cannot change the content of an unmodifi
able List"); | 1786 return new core.UnsupportedError("Cannot change the content of an unmodifi
able List"); |
| 1569 } | 1787 } |
| 1570 static length() { | 1788 static length() { |
| 1571 return new core.UnsupportedError("Cannot change length of unmodifiable Lis
t"); | 1789 return new core.UnsupportedError("Cannot change length of unmodifiable Lis
t"); |
| 1572 } | 1790 } |
| 1573 static remove() { | 1791 static remove() { |
| 1574 return new core.UnsupportedError("Cannot remove from unmodifiable List"); | 1792 return new core.UnsupportedError("Cannot remove from unmodifiable List"); |
| 1575 } | 1793 } |
| 1576 } | 1794 } |
| 1795 dart.setSignature(UnmodifiableListError, { |
| 1796 statics: () => ({ |
| 1797 add: dart.functionType(core.UnsupportedError, []), |
| 1798 change: dart.functionType(core.UnsupportedError, []), |
| 1799 length: dart.functionType(core.UnsupportedError, []), |
| 1800 remove: dart.functionType(core.UnsupportedError, []) |
| 1801 }), |
| 1802 names: ['add', 'change', 'length', 'remove'] |
| 1803 }); |
| 1577 class NonGrowableListError extends core.Object { | 1804 class NonGrowableListError extends core.Object { |
| 1578 static add() { | 1805 static add() { |
| 1579 return new core.UnsupportedError("Cannot add to non-growable List"); | 1806 return new core.UnsupportedError("Cannot add to non-growable List"); |
| 1580 } | 1807 } |
| 1581 static length() { | 1808 static length() { |
| 1582 return new core.UnsupportedError("Cannot change length of non-growable Lis
t"); | 1809 return new core.UnsupportedError("Cannot change length of non-growable Lis
t"); |
| 1583 } | 1810 } |
| 1584 static remove() { | 1811 static remove() { |
| 1585 return new core.UnsupportedError("Cannot remove from non-growable List"); | 1812 return new core.UnsupportedError("Cannot remove from non-growable List"); |
| 1586 } | 1813 } |
| 1587 } | 1814 } |
| 1588 // Function makeListFixedLength: (List<dynamic>) → List | 1815 dart.setSignature(NonGrowableListError, { |
| 1816 statics: () => ({ |
| 1817 add: dart.functionType(core.UnsupportedError, []), |
| 1818 length: dart.functionType(core.UnsupportedError, []), |
| 1819 remove: dart.functionType(core.UnsupportedError, []) |
| 1820 }), |
| 1821 names: ['add', 'length', 'remove'] |
| 1822 }); |
| 1589 function makeListFixedLength(growableList) { | 1823 function makeListFixedLength(growableList) { |
| 1590 _interceptors.JSArray.markFixedList(growableList); | 1824 _interceptors.JSArray.markFixedList(growableList); |
| 1591 return growableList; | 1825 return growableList; |
| 1592 } | 1826 } |
| 1827 dart.fn(makeListFixedLength, core.List, [core.List]); |
| 1593 class Lists extends core.Object { | 1828 class Lists extends core.Object { |
| 1594 static copy(src, srcStart, dst, dstStart, count) { | 1829 static copy(src, srcStart, dst, dstStart, count) { |
| 1595 if (dart.notNull(srcStart) < dart.notNull(dstStart)) { | 1830 if (dart.notNull(srcStart) < dart.notNull(dstStart)) { |
| 1596 for (let i = dart.notNull(srcStart) + dart.notNull(count) - 1, j = dart.
notNull(dstStart) + dart.notNull(count) - 1; dart.notNull(i) >= dart.notNull(src
Start); i = dart.notNull(i) - 1, j = dart.notNull(j) - 1) { | 1831 for (let i = dart.notNull(srcStart) + dart.notNull(count) - 1, j = dart.
notNull(dstStart) + dart.notNull(count) - 1; dart.notNull(i) >= dart.notNull(src
Start); i = dart.notNull(i) - 1, j = dart.notNull(j) - 1) { |
| 1597 dst[core.$set](j, src[core.$get](i)); | 1832 dst[core.$set](j, src[core.$get](i)); |
| 1598 } | 1833 } |
| 1599 } else { | 1834 } else { |
| 1600 for (let i = srcStart, j = dstStart; dart.notNull(i) < dart.notNull(srcS
tart) + dart.notNull(count); i = dart.notNull(i) + 1, j = dart.notNull(j) + 1) { | 1835 for (let i = srcStart, j = dstStart; dart.notNull(i) < dart.notNull(srcS
tart) + dart.notNull(count); i = dart.notNull(i) + 1, j = dart.notNull(j) + 1) { |
| 1601 dst[core.$set](j, src[core.$get](i)); | 1836 dst[core.$set](j, src[core.$get](i)); |
| 1602 } | 1837 } |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1649 } | 1884 } |
| 1650 static rangeCheck(a, start, length) { | 1885 static rangeCheck(a, start, length) { |
| 1651 core.RangeError.checkNotNegative(length); | 1886 core.RangeError.checkNotNegative(length); |
| 1652 core.RangeError.checkNotNegative(start); | 1887 core.RangeError.checkNotNegative(start); |
| 1653 if (dart.notNull(start) + dart.notNull(length) > dart.notNull(a[core.$leng
th])) { | 1888 if (dart.notNull(start) + dart.notNull(length) > dart.notNull(a[core.$leng
th])) { |
| 1654 let message = `${start} + ${length} must be in the range [0..${a[core.$l
ength]}]`; | 1889 let message = `${start} + ${length} must be in the range [0..${a[core.$l
ength]}]`; |
| 1655 throw new core.RangeError.range(length, 0, dart.notNull(a[core.$length])
- dart.notNull(start), "length", message); | 1890 throw new core.RangeError.range(length, 0, dart.notNull(a[core.$length])
- dart.notNull(start), "length", message); |
| 1656 } | 1891 } |
| 1657 } | 1892 } |
| 1658 } | 1893 } |
| 1894 dart.setSignature(Lists, { |
| 1895 statics: () => ({ |
| 1896 copy: dart.functionType(dart.void, [core.List, core.int, core.List, core.i
nt, core.int]), |
| 1897 areEqual: dart.functionType(core.bool, [core.List, dart.dynamic]), |
| 1898 indexOf: dart.functionType(core.int, [core.List, core.Object, core.int, co
re.int]), |
| 1899 lastIndexOf: dart.functionType(core.int, [core.List, core.Object, core.int
]), |
| 1900 indicesCheck: dart.functionType(dart.void, [core.List, core.int, core.int]
), |
| 1901 rangeCheck: dart.functionType(dart.void, [core.List, core.int, core.int]) |
| 1902 }), |
| 1903 names: ['copy', 'areEqual', 'indexOf', 'lastIndexOf', 'indicesCheck', 'range
Check'] |
| 1904 }); |
| 1659 exports.printToZone = null; | 1905 exports.printToZone = null; |
| 1660 // Function printToConsole: (String) → void | |
| 1661 function printToConsole(line) { | 1906 function printToConsole(line) { |
| 1662 _js_primitives.printString(`${line}`); | 1907 _js_primitives.printString(`${line}`); |
| 1663 } | 1908 } |
| 1909 dart.fn(printToConsole, dart.void, [core.String]); |
| 1664 class Sort extends core.Object { | 1910 class Sort extends core.Object { |
| 1665 static sort(a, compare) { | 1911 static sort(a, compare) { |
| 1666 Sort._doSort(a, 0, dart.notNull(a[core.$length]) - 1, compare); | 1912 Sort._doSort(a, 0, dart.notNull(a[core.$length]) - 1, compare); |
| 1667 } | 1913 } |
| 1668 static sortRange(a, from, to, compare) { | 1914 static sortRange(a, from, to, compare) { |
| 1669 if (dart.notNull(from) < 0 || dart.notNull(to) > dart.notNull(a[core.$leng
th]) || dart.notNull(to) < dart.notNull(from)) { | 1915 if (dart.notNull(from) < 0 || dart.notNull(to) > dart.notNull(a[core.$leng
th]) || dart.notNull(to) < dart.notNull(from)) { |
| 1670 throw "OutOfRange"; | 1916 throw "OutOfRange"; |
| 1671 } | 1917 } |
| 1672 Sort._doSort(a, from, dart.notNull(to) - 1, compare); | 1918 Sort._doSort(a, from, dart.notNull(to) - 1, compare); |
| 1673 } | 1919 } |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1912 } | 2158 } |
| 1913 } | 2159 } |
| 1914 } | 2160 } |
| 1915 } | 2161 } |
| 1916 Sort._doSort(a, less, great, compare); | 2162 Sort._doSort(a, less, great, compare); |
| 1917 } else { | 2163 } else { |
| 1918 Sort._doSort(a, less, great, compare); | 2164 Sort._doSort(a, less, great, compare); |
| 1919 } | 2165 } |
| 1920 } | 2166 } |
| 1921 } | 2167 } |
| 2168 dart.setSignature(Sort, { |
| 2169 statics: () => ({ |
| 2170 sort: dart.functionType(dart.void, [core.List, dart.functionType(core.int,
[dart.dynamic, dart.dynamic])]), |
| 2171 sortRange: dart.functionType(dart.void, [core.List, core.int, core.int, da
rt.functionType(core.int, [dart.dynamic, dart.dynamic])]), |
| 2172 _doSort: dart.functionType(dart.void, [core.List, core.int, core.int, dart
.functionType(core.int, [dart.dynamic, dart.dynamic])]), |
| 2173 _insertionSort: dart.functionType(dart.void, [core.List, core.int, core.in
t, dart.functionType(core.int, [dart.dynamic, dart.dynamic])]), |
| 2174 _dualPivotQuicksort: dart.functionType(dart.void, [core.List, core.int, co
re.int, dart.functionType(core.int, [dart.dynamic, dart.dynamic])]) |
| 2175 }), |
| 2176 names: ['sort', 'sortRange', '_doSort', '_insertionSort', '_dualPivotQuickso
rt'] |
| 2177 }); |
| 1922 Sort._INSERTION_SORT_THRESHOLD = 32; | 2178 Sort._INSERTION_SORT_THRESHOLD = 32; |
| 1923 let _name = dart.JsSymbol('_name'); | 2179 let _name = dart.JsSymbol('_name'); |
| 1924 class Symbol extends core.Object { | 2180 class Symbol extends core.Object { |
| 1925 Symbol(name) { | 2181 Symbol(name) { |
| 1926 this[_name] = name; | 2182 this[_name] = name; |
| 1927 } | 2183 } |
| 1928 unvalidated(name) { | 2184 unvalidated(name) { |
| 1929 this[_name] = name; | 2185 this[_name] = name; |
| 1930 } | 2186 } |
| 1931 validated(name) { | 2187 validated(name) { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 1952 } | 2208 } |
| 1953 throw new core.ArgumentError(`"${name}" is not a valid (qualified) symbol
name`); | 2209 throw new core.ArgumentError(`"${name}" is not a valid (qualified) symbol
name`); |
| 1954 } | 2210 } |
| 1955 static isValidSymbol(name) { | 2211 static isValidSymbol(name) { |
| 1956 return dart.notNull(name.isEmpty) || dart.notNull(Symbol.symbolPattern.has
Match(name)); | 2212 return dart.notNull(name.isEmpty) || dart.notNull(Symbol.symbolPattern.has
Match(name)); |
| 1957 } | 2213 } |
| 1958 } | 2214 } |
| 1959 Symbol[dart.implements] = () => [core.Symbol]; | 2215 Symbol[dart.implements] = () => [core.Symbol]; |
| 1960 dart.defineNamedConstructor(Symbol, 'unvalidated'); | 2216 dart.defineNamedConstructor(Symbol, 'unvalidated'); |
| 1961 dart.defineNamedConstructor(Symbol, 'validated'); | 2217 dart.defineNamedConstructor(Symbol, 'validated'); |
| 2218 dart.setSignature(Symbol, { |
| 2219 methods: () => ({ |
| 2220 '==': dart.functionType(core.bool, [core.Object]), |
| 2221 toString: dart.functionType(core.String, []) |
| 2222 }), |
| 2223 statics: () => ({ |
| 2224 getName: dart.functionType(core.String, [Symbol]), |
| 2225 validatePublicSymbol: dart.functionType(core.String, [core.String]), |
| 2226 isValidSymbol: dart.functionType(core.bool, [core.String]) |
| 2227 }), |
| 2228 names: ['getName', 'validatePublicSymbol', 'isValidSymbol'] |
| 2229 }); |
| 1962 Symbol.reservedWordRE = '(?:assert|break|c(?:a(?:se|tch)|lass|on(?:st|tinue))|
d(?:efault|o)|' + 'e(?:lse|num|xtends)|f(?:alse|inal(?:ly)?|or)|i[fns]|n(?:ew|ul
l)|' + 'ret(?:hrow|urn)|s(?:uper|witch)|t(?:h(?:is|row)|r(?:ue|y))|' + 'v(?:ar|o
id)|w(?:hile|ith))'; | 2230 Symbol.reservedWordRE = '(?:assert|break|c(?:a(?:se|tch)|lass|on(?:st|tinue))|
d(?:efault|o)|' + 'e(?:lse|num|xtends)|f(?:alse|inal(?:ly)?|or)|i[fns]|n(?:ew|ul
l)|' + 'ret(?:hrow|urn)|s(?:uper|witch)|t(?:h(?:is|row)|r(?:ue|y))|' + 'v(?:ar|o
id)|w(?:hile|ith))'; |
| 1963 Symbol.publicIdentifierRE = '(?!' + `${Symbol.reservedWordRE}` + '\\b(?!\\$))[
a-zA-Z$][\\w$]*'; | 2231 Symbol.publicIdentifierRE = '(?!' + `${Symbol.reservedWordRE}` + '\\b(?!\\$))[
a-zA-Z$][\\w$]*'; |
| 1964 Symbol.identifierRE = '(?!' + `${Symbol.reservedWordRE}` + '\\b(?!\\$))[a-zA-Z
$_][\\w$]*'; | 2232 Symbol.identifierRE = '(?!' + `${Symbol.reservedWordRE}` + '\\b(?!\\$))[a-zA-Z
$_][\\w$]*'; |
| 1965 Symbol.operatorRE = '(?:[\\-+*/%&|^]|\\[\\]=?|==|~/?|<[<=]?|>[>=]?|unary-)'; | 2233 Symbol.operatorRE = '(?:[\\-+*/%&|^]|\\[\\]=?|==|~/?|<[<=]?|>[>=]?|unary-)'; |
| 1966 let POWERS_OF_TEN = dart.const([1.0, 10.0, 100.0, 1000.0, 10000.0, 100000.0, 1
000000.0, 10000000.0, 100000000.0, 1000000000.0, 10000000000.0, 100000000000.0,
1000000000000.0, 10000000000000.0, 100000000000000.0, 1000000000000000.0, 100000
00000000000.0, 100000000000000000.0, 1000000000000000000.0, 10000000000000000000
.0, 100000000000000000000.0, 1e+21, 1e+22]); | 2234 let POWERS_OF_TEN = dart.const([1.0, 10.0, 100.0, 1000.0, 10000.0, 100000.0, 1
000000.0, 10000000.0, 100000000.0, 1000000000.0, 10000000000.0, 100000000000.0,
1000000000000.0, 10000000000000.0, 100000000000000.0, 1000000000000000.0, 100000
00000000000.0, 100000000000000000.0, 1000000000000000000.0, 10000000000000000000
.0, 100000000000000000000.0, 1e+21, 1e+22]); |
| 1967 dart.defineLazyProperties(Symbol, { | 2235 dart.defineLazyProperties(Symbol, { |
| 1968 get publicSymbolPattern() { | 2236 get publicSymbolPattern() { |
| 1969 return new core.RegExp(`^(?:${Symbol.operatorRE}$|${Symbol.publicIdentifie
rRE}(?:=?$|[.](?!$)))+?$`); | 2237 return new core.RegExp(`^(?:${Symbol.operatorRE}$|${Symbol.publicIdentifie
rRE}(?:=?$|[.](?!$)))+?$`); |
| 1970 }, | 2238 }, |
| 1971 get symbolPattern() { | 2239 get symbolPattern() { |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2039 exports.ReversedListIterable = ReversedListIterable; | 2307 exports.ReversedListIterable = ReversedListIterable; |
| 2040 exports.UnmodifiableListError = UnmodifiableListError; | 2308 exports.UnmodifiableListError = UnmodifiableListError; |
| 2041 exports.NonGrowableListError = NonGrowableListError; | 2309 exports.NonGrowableListError = NonGrowableListError; |
| 2042 exports.makeListFixedLength = makeListFixedLength; | 2310 exports.makeListFixedLength = makeListFixedLength; |
| 2043 exports.Lists = Lists; | 2311 exports.Lists = Lists; |
| 2044 exports.printToConsole = printToConsole; | 2312 exports.printToConsole = printToConsole; |
| 2045 exports.Sort = Sort; | 2313 exports.Sort = Sort; |
| 2046 exports.Symbol = Symbol; | 2314 exports.Symbol = Symbol; |
| 2047 exports.POWERS_OF_TEN = POWERS_OF_TEN; | 2315 exports.POWERS_OF_TEN = POWERS_OF_TEN; |
| 2048 })(_internal, core, collection, math, _interceptors, _js_primitives); | 2316 })(_internal, core, collection, math, _interceptors, _js_primitives); |
| OLD | NEW |