| Index: test/codegen/expect/_internal/_internal.js
|
| diff --git a/test/codegen/expect/_internal/_internal.js b/test/codegen/expect/_internal/_internal.js
|
| index feef3b2e50aeb05844e5251ed327b7893fe89ef4..3115d752ae895726fe471cd08fce5d550b91ed94 100644
|
| --- a/test/codegen/expect/_internal/_internal.js
|
| +++ b/test/codegen/expect/_internal/_internal.js
|
| @@ -1,16 +1,17 @@
|
| var _internal;
|
| -(function (_internal) {
|
| +(function(_internal) {
|
| 'use strict';
|
| let POWERS_OF_TEN = /* Unimplemented const */new List.from([1.0, 10.0, 100.0, 1000.0, 10000.0, 100000.0, 1000000.0, 10000000.0, 100000000.0, 1000000000.0, 10000000000.0, 100000000000.0, 1000000000000.0, 10000000000000.0, 100000000000000.0, 1000000000000000.0, 10000000000000000.0, 100000000000000000.0, 1000000000000000000.0, 10000000000000000000.0, 100000000000000000000.0, 1e+21, 1e+22]);
|
| class EfficientLength extends dart.Object {
|
| }
|
| -
|
| let ListIterable$ = dart.generic(function(E) {
|
| class ListIterable extends collection.IterableBase$(E) {
|
| ListIterable() {
|
| super.IterableBase();
|
| }
|
| - get iterator() { return new ListIterator(this); }
|
| + get iterator() {
|
| + return new ListIterator(this);
|
| + }
|
| forEach(action) {
|
| let length = this.length;
|
| for (let i = 0; i < length; i++) {
|
| @@ -20,24 +21,31 @@ var _internal;
|
| }
|
| }
|
| }
|
| - get isEmpty() { return this.length === 0; }
|
| + get isEmpty() {
|
| + return this.length === 0;
|
| + }
|
| get first() {
|
| - if (this.length === 0) throw IterableElementError.noElement();
|
| + if (this.length === 0)
|
| + throw IterableElementError.noElement();
|
| return this.elementAt(0);
|
| }
|
| get last() {
|
| - if (this.length === 0) throw IterableElementError.noElement();
|
| + if (this.length === 0)
|
| + throw IterableElementError.noElement();
|
| return this.elementAt(this.length - 1);
|
| }
|
| get single() {
|
| - if (this.length === 0) throw IterableElementError.noElement();
|
| - if (this.length > 1) throw IterableElementError.tooMany();
|
| + if (this.length === 0)
|
| + throw IterableElementError.noElement();
|
| + if (this.length > 1)
|
| + throw IterableElementError.tooMany();
|
| return this.elementAt(0);
|
| }
|
| contains(element) {
|
| let length = this.length;
|
| for (let i = 0; i < length; i++) {
|
| - if (dart.equals(this.elementAt(i), element)) return true;
|
| + if (dart.equals(this.elementAt(i), element))
|
| + return true;
|
| if (length !== this.length) {
|
| throw new core.ConcurrentModificationError(this);
|
| }
|
| @@ -47,7 +55,8 @@ var _internal;
|
| every(test) {
|
| let length = this.length;
|
| for (let i = 0; i < length; i++) {
|
| - if (!dart.notNull(test(this.elementAt(i)))) return false;
|
| + if (!dart.notNull(test(this.elementAt(i))))
|
| + return false;
|
| if (length !== this.length) {
|
| throw new core.ConcurrentModificationError(this);
|
| }
|
| @@ -57,7 +66,8 @@ var _internal;
|
| any(test) {
|
| let length = this.length;
|
| for (let i = 0; i < length; i++) {
|
| - if (test(this.elementAt(i))) return true;
|
| + if (test(this.elementAt(i)))
|
| + return true;
|
| if (length !== this.length) {
|
| throw new core.ConcurrentModificationError(this);
|
| }
|
| @@ -65,29 +75,33 @@ var _internal;
|
| return false;
|
| }
|
| firstWhere(test, opt$) {
|
| - let orElse = opt$.orElse === undefined ? null : opt$.orElse;
|
| + let orElse = opt$.orElse === void 0 ? null : opt$.orElse;
|
| let length = this.length;
|
| for (let i = 0; i < length; i++) {
|
| let element = this.elementAt(i);
|
| - if (test(element)) return element;
|
| + if (test(element))
|
| + return element;
|
| if (length !== this.length) {
|
| throw new core.ConcurrentModificationError(this);
|
| }
|
| }
|
| - if (orElse !== null) return orElse();
|
| + if (orElse !== null)
|
| + return orElse();
|
| throw IterableElementError.noElement();
|
| }
|
| lastWhere(test, opt$) {
|
| - let orElse = opt$.orElse === undefined ? null : opt$.orElse;
|
| + let orElse = opt$.orElse === void 0 ? null : opt$.orElse;
|
| let length = this.length;
|
| for (let i = length - 1; i >= 0; i--) {
|
| let element = this.elementAt(i);
|
| - if (test(element)) return element;
|
| + if (test(element))
|
| + return element;
|
| if (length !== this.length) {
|
| throw new core.ConcurrentModificationError(this);
|
| }
|
| }
|
| - if (orElse !== null) return orElse();
|
| + if (orElse !== null)
|
| + return orElse();
|
| throw IterableElementError.noElement();
|
| }
|
| singleWhere(test) {
|
| @@ -107,14 +121,17 @@ var _internal;
|
| throw new core.ConcurrentModificationError(this);
|
| }
|
| }
|
| - if (matchFound) return match;
|
| + if (matchFound)
|
| + return match;
|
| throw IterableElementError.noElement();
|
| }
|
| join(separator) {
|
| - if (separator === undefined) separator = "";
|
| + if (separator === void 0)
|
| + separator = "";
|
| let length = this.length;
|
| if (!dart.notNull(separator.isEmpty)) {
|
| - if (length === 0) return "";
|
| + if (length === 0)
|
| + return "";
|
| let first = `${this.elementAt(0)}`;
|
| if (length !== this.length) {
|
| throw new core.ConcurrentModificationError(this);
|
| @@ -139,11 +156,16 @@ var _internal;
|
| return buffer.toString();
|
| }
|
| }
|
| - where(test) { return super.where(test); }
|
| - map(f) { return new MappedListIterable(this, f); }
|
| + where(test) {
|
| + return super.where(test);
|
| + }
|
| + map(f) {
|
| + return new MappedListIterable(this, f);
|
| + }
|
| reduce(combine) {
|
| let length = this.length;
|
| - if (length === 0) throw IterableElementError.noElement();
|
| + if (length === 0)
|
| + throw IterableElementError.noElement();
|
| let value = this.elementAt(0);
|
| for (let i = 1; i < length; i++) {
|
| value = combine(value, this.elementAt(i));
|
| @@ -164,12 +186,20 @@ var _internal;
|
| }
|
| return value;
|
| }
|
| - skip(count) { return new SubListIterable(this, count, null); }
|
| - skipWhile(test) { return super.skipWhile(test); }
|
| - take(count) { return new SubListIterable(this, 0, count); }
|
| - takeWhile(test) { return super.takeWhile(test); }
|
| + skip(count) {
|
| + return new SubListIterable(this, count, null);
|
| + }
|
| + skipWhile(test) {
|
| + return super.skipWhile(test);
|
| + }
|
| + take(count) {
|
| + return new SubListIterable(this, 0, count);
|
| + }
|
| + takeWhile(test) {
|
| + return super.takeWhile(test);
|
| + }
|
| toList(opt$) {
|
| - let growable = opt$.growable === undefined ? true : opt$.growable;
|
| + let growable = opt$.growable === void 0 ? true : opt$.growable;
|
| let result = null;
|
| if (growable) {
|
| result = ((_) => {
|
| @@ -195,7 +225,6 @@ var _internal;
|
| return ListIterable;
|
| });
|
| let ListIterable = ListIterable$(dynamic);
|
| -
|
| let SubListIterable$ = dart.generic(function(E) {
|
| class SubListIterable extends ListIterable$(E) {
|
| SubListIterable(_iterable, _start, _endOrLength) {
|
| @@ -213,17 +242,20 @@ var _internal;
|
| }
|
| get _endIndex() {
|
| let length = this._iterable.length;
|
| - if (dart.notNull(this._endOrLength === null) || dart.notNull(this._endOrLength > length)) return length;
|
| + if (dart.notNull(this._endOrLength === null) || dart.notNull(this._endOrLength > length))
|
| + return length;
|
| return this._endOrLength;
|
| }
|
| get _startIndex() {
|
| let length = this._iterable.length;
|
| - if (this._start > length) return length;
|
| + if (this._start > length)
|
| + return length;
|
| return this._start;
|
| }
|
| get length() {
|
| let length = this._iterable.length;
|
| - if (this._start >= length) return 0;
|
| + if (this._start >= length)
|
| + return 0;
|
| if (dart.notNull(this._endOrLength === null) || dart.notNull(this._endOrLength >= length)) {
|
| return length - this._start;
|
| }
|
| @@ -250,24 +282,28 @@ var _internal;
|
| return new SubListIterable(this._iterable, this._start, this._start + count);
|
| } else {
|
| let newEnd = this._start + count;
|
| - if (this._endOrLength < newEnd) return this;
|
| + if (this._endOrLength < newEnd)
|
| + return this;
|
| return new SubListIterable(this._iterable, this._start, newEnd);
|
| }
|
| }
|
| toList(opt$) {
|
| - let growable = opt$.growable === undefined ? true : opt$.growable;
|
| + let growable = opt$.growable === void 0 ? true : opt$.growable;
|
| let start = this._start;
|
| let end = this._iterable.length;
|
| - if (dart.notNull(this._endOrLength !== null) && dart.notNull(this._endOrLength < end)) end = this._endOrLength;
|
| + if (dart.notNull(this._endOrLength !== null) && dart.notNull(this._endOrLength < end))
|
| + end = this._endOrLength;
|
| let length = end - start;
|
| - if (length < 0) length = 0;
|
| - let result = growable ? (((_) => {
|
| + if (length < 0)
|
| + length = 0;
|
| + let result = growable ? ((_) => {
|
| _.length = length;
|
| return _;
|
| - }).bind(this)(new core.List())) : new core.List(length);
|
| + }).bind(this)(new core.List()) : new core.List(length);
|
| for (let i = 0; i < length; i++) {
|
| result.set(i, this._iterable.elementAt(start + i));
|
| - if (this._iterable.length < end) throw new core.ConcurrentModificationError(this);
|
| + if (this._iterable.length < end)
|
| + throw new core.ConcurrentModificationError(this);
|
| }
|
| return dart.as(result, core.List$(E));
|
| }
|
| @@ -275,7 +311,6 @@ var _internal;
|
| return SubListIterable;
|
| });
|
| let SubListIterable = SubListIterable$(dynamic);
|
| -
|
| let ListIterator$ = dart.generic(function(E) {
|
| class ListIterator extends dart.Object {
|
| ListIterator(iterable) {
|
| @@ -284,7 +319,9 @@ var _internal;
|
| this._index = 0;
|
| this._current = dart.as(null, E);
|
| }
|
| - get current() { return this._current; }
|
| + get current() {
|
| + return this._current;
|
| + }
|
| moveNext() {
|
| let length = this._iterable.length;
|
| if (this._length !== length) {
|
| @@ -302,7 +339,6 @@ var _internal;
|
| return ListIterator;
|
| });
|
| let ListIterator = ListIterator$(dynamic);
|
| -
|
| let MappedIterable$ = dart.generic(function(S, T) {
|
| class MappedIterable extends collection.IterableBase$(T) {
|
| MappedIterable(iterable, function) {
|
| @@ -316,19 +352,32 @@ var _internal;
|
| this._f = _f;
|
| super.IterableBase();
|
| }
|
| - get iterator() { return new MappedIterator(this._iterable.iterator, this._f); }
|
| - get length() { return this._iterable.length; }
|
| - get isEmpty() { return this._iterable.isEmpty; }
|
| - get first() { return this._f(this._iterable.first); }
|
| - get last() { return this._f(this._iterable.last); }
|
| - get single() { return this._f(this._iterable.single); }
|
| - elementAt(index) { return this._f(this._iterable.elementAt(index)); }
|
| + get iterator() {
|
| + return new MappedIterator(this._iterable.iterator, this._f);
|
| + }
|
| + get length() {
|
| + return this._iterable.length;
|
| + }
|
| + get isEmpty() {
|
| + return this._iterable.isEmpty;
|
| + }
|
| + get first() {
|
| + return this._f(this._iterable.first);
|
| + }
|
| + get last() {
|
| + return this._f(this._iterable.last);
|
| + }
|
| + get single() {
|
| + return this._f(this._iterable.single);
|
| + }
|
| + elementAt(index) {
|
| + return this._f(this._iterable.elementAt(index));
|
| + }
|
| }
|
| - dart.defineNamedConstructor(MappedIterable, "_");
|
| + dart.defineNamedConstructor(MappedIterable, '_');
|
| return MappedIterable;
|
| });
|
| let MappedIterable = MappedIterable$(dynamic, dynamic);
|
| -
|
| let EfficientLengthMappedIterable$ = dart.generic(function(S, T) {
|
| class EfficientLengthMappedIterable extends MappedIterable$(S, T) {
|
| EfficientLengthMappedIterable(iterable, function) {
|
| @@ -338,7 +387,6 @@ var _internal;
|
| return EfficientLengthMappedIterable;
|
| });
|
| let EfficientLengthMappedIterable = EfficientLengthMappedIterable$(dynamic, dynamic);
|
| -
|
| let MappedIterator$ = dart.generic(function(S, T) {
|
| class MappedIterator extends core.Iterator$(T) {
|
| MappedIterator(_iterator, _f) {
|
| @@ -355,12 +403,13 @@ var _internal;
|
| this._current = dart.as(null, T);
|
| return false;
|
| }
|
| - get current() { return this._current; }
|
| + get current() {
|
| + return this._current;
|
| + }
|
| }
|
| return MappedIterator;
|
| });
|
| let MappedIterator = MappedIterator$(dynamic, dynamic);
|
| -
|
| let MappedListIterable$ = dart.generic(function(S, T) {
|
| class MappedListIterable extends ListIterable$(T) {
|
| MappedListIterable(_source, _f) {
|
| @@ -368,13 +417,16 @@ var _internal;
|
| this._f = _f;
|
| super.ListIterable();
|
| }
|
| - get length() { return this._source.length; }
|
| - elementAt(index) { return this._f(this._source.elementAt(index)); }
|
| + get length() {
|
| + return this._source.length;
|
| + }
|
| + elementAt(index) {
|
| + return this._f(this._source.elementAt(index));
|
| + }
|
| }
|
| return MappedListIterable;
|
| });
|
| let MappedListIterable = MappedListIterable$(dynamic, dynamic);
|
| -
|
| let WhereIterable$ = dart.generic(function(E) {
|
| class WhereIterable extends collection.IterableBase$(E) {
|
| WhereIterable(_iterable, _f) {
|
| @@ -382,12 +434,13 @@ var _internal;
|
| this._f = _f;
|
| super.IterableBase();
|
| }
|
| - get iterator() { return new WhereIterator(this._iterable.iterator, this._f); }
|
| + get iterator() {
|
| + return new WhereIterator(this._iterable.iterator, this._f);
|
| + }
|
| }
|
| return WhereIterable;
|
| });
|
| let WhereIterable = WhereIterable$(dynamic);
|
| -
|
| let WhereIterator$ = dart.generic(function(E) {
|
| class WhereIterator extends core.Iterator$(E) {
|
| WhereIterator(_iterator, _f) {
|
| @@ -403,12 +456,13 @@ var _internal;
|
| }
|
| return false;
|
| }
|
| - get current() { return this._iterator.current; }
|
| + get current() {
|
| + return this._iterator.current;
|
| + }
|
| }
|
| return WhereIterator;
|
| });
|
| let WhereIterator = WhereIterator$(dynamic);
|
| -
|
| let ExpandIterable$ = dart.generic(function(S, T) {
|
| class ExpandIterable extends collection.IterableBase$(T) {
|
| ExpandIterable(_iterable, _f) {
|
| @@ -416,12 +470,13 @@ var _internal;
|
| this._f = _f;
|
| super.IterableBase();
|
| }
|
| - get iterator() { return new ExpandIterator(this._iterable.iterator, this._f); }
|
| + get iterator() {
|
| + return new ExpandIterator(this._iterable.iterator, this._f);
|
| + }
|
| }
|
| return ExpandIterable;
|
| });
|
| let ExpandIterable = ExpandIterable$(dynamic, dynamic);
|
| -
|
| let ExpandIterator$ = dart.generic(function(S, T) {
|
| class ExpandIterator extends dart.Object {
|
| ExpandIterator(_iterator, _f) {
|
| @@ -430,11 +485,13 @@ var _internal;
|
| this._currentExpansion = dart.as(new EmptyIterator(), core.Iterator$(T));
|
| this._current = dart.as(null, T);
|
| }
|
| - _nextExpansion() {
|
| + _nextExpansion() {}
|
| + get current() {
|
| + return this._current;
|
| }
|
| - get current() { return this._current; }
|
| moveNext() {
|
| - if (this._currentExpansion === null) return false;
|
| + if (this._currentExpansion === null)
|
| + return false;
|
| while (!dart.notNull(this._currentExpansion.moveNext())) {
|
| this._current = dart.as(null, T);
|
| if (this._iterator.moveNext()) {
|
| @@ -451,11 +508,10 @@ var _internal;
|
| return ExpandIterator;
|
| });
|
| let ExpandIterator = ExpandIterator$(dynamic, dynamic);
|
| -
|
| let TakeIterable$ = dart.generic(function(E) {
|
| class TakeIterable extends collection.IterableBase$(E) {
|
| TakeIterable(iterable, takeCount) {
|
| - if (dart.notNull(!(typeof takeCount == "number")) || dart.notNull(takeCount < 0)) {
|
| + if (dart.notNull(!(typeof takeCount == number)) || dart.notNull(takeCount < 0)) {
|
| throw new core.ArgumentError(takeCount);
|
| }
|
| if (dart.is(iterable, EfficientLength)) {
|
| @@ -472,11 +528,10 @@ var _internal;
|
| return new TakeIterator(this._iterable.iterator, this._takeCount);
|
| }
|
| }
|
| - dart.defineNamedConstructor(TakeIterable, "_");
|
| + dart.defineNamedConstructor(TakeIterable, '_');
|
| return TakeIterable;
|
| });
|
| let TakeIterable = TakeIterable$(dynamic);
|
| -
|
| let EfficientLengthTakeIterable$ = dart.generic(function(E) {
|
| class EfficientLengthTakeIterable extends TakeIterable$(E) {
|
| EfficientLengthTakeIterable(iterable, takeCount) {
|
| @@ -484,21 +539,21 @@ var _internal;
|
| }
|
| get length() {
|
| let iterableLength = this._iterable.length;
|
| - if (iterableLength > this._takeCount) return this._takeCount;
|
| + if (iterableLength > this._takeCount)
|
| + return this._takeCount;
|
| return iterableLength;
|
| }
|
| }
|
| return EfficientLengthTakeIterable;
|
| });
|
| let EfficientLengthTakeIterable = EfficientLengthTakeIterable$(dynamic);
|
| -
|
| let TakeIterator$ = dart.generic(function(E) {
|
| class TakeIterator extends core.Iterator$(E) {
|
| TakeIterator(_iterator, _remaining) {
|
| this._iterator = _iterator;
|
| this._remaining = _remaining;
|
| super.Iterator();
|
| - dart.assert(dart.notNull(typeof this._remaining == "number") && dart.notNull(this._remaining >= 0));
|
| + dart.assert(dart.notNull(typeof this._remaining == number) && dart.notNull(this._remaining >= 0));
|
| }
|
| moveNext() {
|
| this._remaining--;
|
| @@ -509,14 +564,14 @@ var _internal;
|
| return false;
|
| }
|
| get current() {
|
| - if (this._remaining < 0) return dart.as(null, E);
|
| + if (this._remaining < 0)
|
| + return dart.as(null, E);
|
| return this._iterator.current;
|
| }
|
| }
|
| return TakeIterator;
|
| });
|
| let TakeIterator = TakeIterator$(dynamic);
|
| -
|
| let TakeWhileIterable$ = dart.generic(function(E) {
|
| class TakeWhileIterable extends collection.IterableBase$(E) {
|
| TakeWhileIterable(_iterable, _f) {
|
| @@ -531,7 +586,6 @@ var _internal;
|
| return TakeWhileIterable;
|
| });
|
| let TakeWhileIterable = TakeWhileIterable$(dynamic);
|
| -
|
| let TakeWhileIterator$ = dart.generic(function(E) {
|
| class TakeWhileIterator extends core.Iterator$(E) {
|
| TakeWhileIterator(_iterator, _f) {
|
| @@ -541,7 +595,8 @@ var _internal;
|
| super.Iterator();
|
| }
|
| moveNext() {
|
| - if (this._isFinished) return false;
|
| + if (this._isFinished)
|
| + return false;
|
| if (dart.notNull(!dart.notNull(this._iterator.moveNext())) || dart.notNull(!dart.notNull(this._f(this._iterator.current)))) {
|
| this._isFinished = true;
|
| return false;
|
| @@ -549,14 +604,14 @@ var _internal;
|
| return true;
|
| }
|
| get current() {
|
| - if (this._isFinished) return dart.as(null, E);
|
| + if (this._isFinished)
|
| + return dart.as(null, E);
|
| return this._iterator.current;
|
| }
|
| }
|
| return TakeWhileIterator;
|
| });
|
| let TakeWhileIterator = TakeWhileIterator$(dynamic);
|
| -
|
| let SkipIterable$ = dart.generic(function(E) {
|
| class SkipIterable extends collection.IterableBase$(E) {
|
| SkipIterable(iterable, count) {
|
| @@ -569,13 +624,13 @@ var _internal;
|
| this._iterable = _iterable;
|
| this._skipCount = _skipCount;
|
| super.IterableBase();
|
| - if (!(typeof this._skipCount == "number")) {
|
| + if (!(typeof this._skipCount == number)) {
|
| throw new core.ArgumentError.value(this._skipCount, "count is not an integer");
|
| }
|
| core.RangeError.checkNotNegative(this._skipCount, "count");
|
| }
|
| skip(count) {
|
| - if (!(typeof this._skipCount == "number")) {
|
| + if (!(typeof this._skipCount == number)) {
|
| throw new core.ArgumentError.value(this._skipCount, "count is not an integer");
|
| }
|
| core.RangeError.checkNotNegative(this._skipCount, "count");
|
| @@ -585,11 +640,10 @@ var _internal;
|
| return new SkipIterator(this._iterable.iterator, this._skipCount);
|
| }
|
| }
|
| - dart.defineNamedConstructor(SkipIterable, "_");
|
| + dart.defineNamedConstructor(SkipIterable, '_');
|
| return SkipIterable;
|
| });
|
| let SkipIterable = SkipIterable$(dynamic);
|
| -
|
| let EfficientLengthSkipIterable$ = dart.generic(function(E) {
|
| class EfficientLengthSkipIterable extends SkipIterable$(E) {
|
| EfficientLengthSkipIterable(iterable, skipCount) {
|
| @@ -597,33 +651,35 @@ var _internal;
|
| }
|
| get length() {
|
| let length = this._iterable.length - this._skipCount;
|
| - if (length >= 0) return length;
|
| + if (length >= 0)
|
| + return length;
|
| return 0;
|
| }
|
| }
|
| return EfficientLengthSkipIterable;
|
| });
|
| let EfficientLengthSkipIterable = EfficientLengthSkipIterable$(dynamic);
|
| -
|
| let SkipIterator$ = dart.generic(function(E) {
|
| class SkipIterator extends core.Iterator$(E) {
|
| SkipIterator(_iterator, _skipCount) {
|
| this._iterator = _iterator;
|
| this._skipCount = _skipCount;
|
| super.Iterator();
|
| - dart.assert(dart.notNull(typeof this._skipCount == "number") && dart.notNull(this._skipCount >= 0));
|
| + dart.assert(dart.notNull(typeof this._skipCount == number) && dart.notNull(this._skipCount >= 0));
|
| }
|
| moveNext() {
|
| - for (let i = 0; i < this._skipCount; i++) this._iterator.moveNext();
|
| + for (let i = 0; i < this._skipCount; i++)
|
| + this._iterator.moveNext();
|
| this._skipCount = 0;
|
| return this._iterator.moveNext();
|
| }
|
| - get current() { return this._iterator.current; }
|
| + get current() {
|
| + return this._iterator.current;
|
| + }
|
| }
|
| return SkipIterator;
|
| });
|
| let SkipIterator = SkipIterator$(dynamic);
|
| -
|
| let SkipWhileIterable$ = dart.generic(function(E) {
|
| class SkipWhileIterable extends collection.IterableBase$(E) {
|
| SkipWhileIterable(_iterable, _f) {
|
| @@ -638,7 +694,6 @@ var _internal;
|
| return SkipWhileIterable;
|
| });
|
| let SkipWhileIterable = SkipWhileIterable$(dynamic);
|
| -
|
| let SkipWhileIterator$ = dart.generic(function(E) {
|
| class SkipWhileIterator extends core.Iterator$(E) {
|
| SkipWhileIterator(_iterator, _f) {
|
| @@ -651,27 +706,34 @@ var _internal;
|
| if (!dart.notNull(this._hasSkipped)) {
|
| this._hasSkipped = true;
|
| while (this._iterator.moveNext()) {
|
| - if (!dart.notNull(this._f(this._iterator.current))) return true;
|
| + if (!dart.notNull(this._f(this._iterator.current)))
|
| + return true;
|
| }
|
| }
|
| return this._iterator.moveNext();
|
| }
|
| - get current() { return this._iterator.current; }
|
| + get current() {
|
| + return this._iterator.current;
|
| + }
|
| }
|
| return SkipWhileIterator;
|
| });
|
| let SkipWhileIterator = SkipWhileIterator$(dynamic);
|
| -
|
| let EmptyIterable$ = dart.generic(function(E) {
|
| class EmptyIterable extends collection.IterableBase$(E) {
|
| EmptyIterable() {
|
| super.IterableBase();
|
| }
|
| - get iterator() { return dart.as(new EmptyIterator(), core.Iterator$(E)); }
|
| - forEach(action) {
|
| + get iterator() {
|
| + return dart.as(new EmptyIterator(), core.Iterator$(E));
|
| + }
|
| + forEach(action) {}
|
| + get isEmpty() {
|
| + return true;
|
| + }
|
| + get length() {
|
| + return 0;
|
| }
|
| - get isEmpty() { return true; }
|
| - get length() { return 0; }
|
| get first() {
|
| throw IterableElementError.noElement();
|
| }
|
| @@ -684,30 +746,44 @@ var _internal;
|
| elementAt(index) {
|
| throw new core.RangeError.range(index, 0, 0, "index");
|
| }
|
| - contains(element) { return false; }
|
| - every(test) { return true; }
|
| - any(test) { return false; }
|
| + contains(element) {
|
| + return false;
|
| + }
|
| + every(test) {
|
| + return true;
|
| + }
|
| + any(test) {
|
| + return false;
|
| + }
|
| firstWhere(test, opt$) {
|
| - let orElse = opt$.orElse === undefined ? null : opt$.orElse;
|
| - if (orElse !== null) return orElse();
|
| + let orElse = opt$.orElse === void 0 ? null : opt$.orElse;
|
| + if (orElse !== null)
|
| + return orElse();
|
| throw IterableElementError.noElement();
|
| }
|
| lastWhere(test, opt$) {
|
| - let orElse = opt$.orElse === undefined ? null : opt$.orElse;
|
| - if (orElse !== null) return orElse();
|
| + let orElse = opt$.orElse === void 0 ? null : opt$.orElse;
|
| + if (orElse !== null)
|
| + return orElse();
|
| throw IterableElementError.noElement();
|
| }
|
| singleWhere(test, opt$) {
|
| - let orElse = opt$.orElse === undefined ? null : opt$.orElse;
|
| - if (orElse !== null) return orElse();
|
| + let orElse = opt$.orElse === void 0 ? null : opt$.orElse;
|
| + if (orElse !== null)
|
| + return orElse();
|
| throw IterableElementError.noElement();
|
| }
|
| join(separator) {
|
| - if (separator === undefined) separator = "";
|
| - return ""
|
| + if (separator === void 0)
|
| + separator = "";
|
| + return "";
|
| + }
|
| + where(test) {
|
| + return this;
|
| + }
|
| + map(f) {
|
| + return new EmptyIterable();
|
| }
|
| - where(test) { return this; }
|
| - map(f) { return new EmptyIterable(); }
|
| reduce(combine) {
|
| throw IterableElementError.noElement();
|
| }
|
| @@ -718,45 +794,53 @@ var _internal;
|
| core.RangeError.checkNotNegative(count, "count");
|
| return this;
|
| }
|
| - skipWhile(test) { return this; }
|
| + skipWhile(test) {
|
| + return this;
|
| + }
|
| take(count) {
|
| core.RangeError.checkNotNegative(count, "count");
|
| return this;
|
| }
|
| - takeWhile(test) { return this; }
|
| + takeWhile(test) {
|
| + return this;
|
| + }
|
| toList(opt$) {
|
| - let growable = opt$.growable === undefined ? true : opt$.growable;
|
| - return growable ? new List.from([]) : new core.List(0)
|
| + let growable = opt$.growable === void 0 ? true : opt$.growable;
|
| + return growable ? new List.from([]) : new core.List(0);
|
| + }
|
| + toSet() {
|
| + return new core.Set();
|
| }
|
| - toSet() { return new core.Set(); }
|
| }
|
| return EmptyIterable;
|
| });
|
| let EmptyIterable = EmptyIterable$(dynamic);
|
| -
|
| let EmptyIterator$ = dart.generic(function(E) {
|
| class EmptyIterator extends dart.Object {
|
| EmptyIterator() {
|
| }
|
| - moveNext() { return false; }
|
| - get current() { return dart.as(null, E); }
|
| + moveNext() {
|
| + return false;
|
| + }
|
| + get current() {
|
| + return dart.as(null, E);
|
| + }
|
| }
|
| return EmptyIterator;
|
| });
|
| let EmptyIterator = EmptyIterator$(dynamic);
|
| -
|
| let BidirectionalIterator$ = dart.generic(function(T) {
|
| class BidirectionalIterator extends dart.Object {
|
| }
|
| return BidirectionalIterator;
|
| });
|
| let BidirectionalIterator = BidirectionalIterator$(dynamic);
|
| -
|
| let IterableMixinWorkaround$ = dart.generic(function(T) {
|
| class IterableMixinWorkaround extends dart.Object {
|
| static contains(iterable, element) {
|
| for (let e of iterable) {
|
| - if (dart.equals(e, element)) return true;
|
| + if (dart.equals(e, element))
|
| + return true;
|
| }
|
| return false;
|
| }
|
| @@ -767,19 +851,22 @@ var _internal;
|
| }
|
| static any(iterable, f) {
|
| for (let e of iterable) {
|
| - if (f(e)) return true;
|
| + if (f(e))
|
| + return true;
|
| }
|
| return false;
|
| }
|
| static every(iterable, f) {
|
| for (let e of iterable) {
|
| - if (!dart.notNull(f(e))) return false;
|
| + if (!dart.notNull(f(e)))
|
| + return false;
|
| }
|
| return true;
|
| }
|
| static reduce(iterable, combine) {
|
| let iterator = iterable.iterator;
|
| - if (!dart.notNull(iterator.moveNext())) throw IterableElementError.noElement();
|
| + if (!dart.notNull(iterator.moveNext()))
|
| + throw IterableElementError.noElement();
|
| let value = iterator.current;
|
| while (iterator.moveNext()) {
|
| value = combine(value, iterator.current);
|
| @@ -804,7 +891,8 @@ var _internal;
|
| throw new core.ConcurrentModificationError(list);
|
| }
|
| }
|
| - if (retained.length === length) return;
|
| + if (retained.length === length)
|
| + return;
|
| list.length = retained.length;
|
| for (let i = 0; i < retained.length; i++) {
|
| list.set(i, retained.get(i));
|
| @@ -828,22 +916,25 @@ var _internal;
|
| let result = null;
|
| do {
|
| result = it.current;
|
| - }
|
| - while (it.moveNext());
|
| + } while (it.moveNext());
|
| return result;
|
| }
|
| static single(iterable) {
|
| let it = iterable.iterator;
|
| - if (!dart.notNull(it.moveNext())) throw IterableElementError.noElement();
|
| + if (!dart.notNull(it.moveNext()))
|
| + throw IterableElementError.noElement();
|
| let result = it.current;
|
| - if (it.moveNext()) throw IterableElementError.tooMany();
|
| + if (it.moveNext())
|
| + throw IterableElementError.tooMany();
|
| return result;
|
| }
|
| static firstWhere(iterable, test, orElse) {
|
| for (let element of iterable) {
|
| - if (test(element)) return element;
|
| + if (test(element))
|
| + return element;
|
| }
|
| - if (orElse !== null) return orElse();
|
| + if (orElse !== null)
|
| + return orElse();
|
| throw IterableElementError.noElement();
|
| }
|
| static lastWhere(iterable, test, orElse) {
|
| @@ -855,16 +946,20 @@ var _internal;
|
| foundMatching = true;
|
| }
|
| }
|
| - if (foundMatching) return result;
|
| - if (orElse !== null) return orElse();
|
| + if (foundMatching)
|
| + return result;
|
| + if (orElse !== null)
|
| + return orElse();
|
| throw IterableElementError.noElement();
|
| }
|
| static lastWhereList(list, test, orElse) {
|
| for (let i = list.length - 1; i >= 0; i--) {
|
| let element = list.get(i);
|
| - if (test(element)) return element;
|
| + if (test(element))
|
| + return element;
|
| }
|
| - if (orElse !== null) return orElse();
|
| + if (orElse !== null)
|
| + return orElse();
|
| throw IterableElementError.noElement();
|
| }
|
| static singleWhere(iterable, test) {
|
| @@ -879,29 +974,36 @@ var _internal;
|
| foundMatching = true;
|
| }
|
| }
|
| - if (foundMatching) return result;
|
| + if (foundMatching)
|
| + return result;
|
| throw IterableElementError.noElement();
|
| }
|
| static elementAt(iterable, index) {
|
| - if (!(typeof index == "number")) throw new core.ArgumentError.notNull("index");
|
| + if (!(typeof index == number))
|
| + throw new core.ArgumentError.notNull("index");
|
| core.RangeError.checkNotNegative(index, "index");
|
| let elementIndex = 0;
|
| for (let element of iterable) {
|
| - if (index === elementIndex) return element;
|
| + if (index === elementIndex)
|
| + return element;
|
| elementIndex++;
|
| }
|
| throw new core.RangeError.index(index, iterable, "index", null, elementIndex);
|
| }
|
| static join(iterable, separator) {
|
| - if (separator === undefined) separator = null;
|
| + if (separator === void 0)
|
| + separator = null;
|
| let buffer = new core.StringBuffer();
|
| buffer.writeAll(iterable, separator);
|
| return buffer.toString();
|
| }
|
| static joinList(list, separator) {
|
| - if (separator === undefined) separator = null;
|
| - if (list.isEmpty) return "";
|
| - if (list.length === 1) return `${list.get(0)}`;
|
| + if (separator === void 0)
|
| + separator = null;
|
| + if (list.isEmpty)
|
| + return "";
|
| + if (list.length === 1)
|
| + return `${list.get(0)}`;
|
| let buffer = new core.StringBuffer();
|
| if (separator.isEmpty) {
|
| for (let i = 0; i < list.length; i++) {
|
| @@ -944,11 +1046,13 @@ var _internal;
|
| return new ReversedListIterable(list);
|
| }
|
| static sortList(list, compare) {
|
| - if (compare === null) compare = dart.as(core.Comparable.compare, /* Unimplemented type (dynamic, dynamic) → int */);
|
| + if (compare === null)
|
| + compare = dart.as(core.Comparable.compare, dart.throw_("Unimplemented type (dynamic, dynamic) → int"));
|
| Sort.sort(list, compare);
|
| }
|
| static shuffleList(list, random) {
|
| - if (random === null) random = new math.Random();
|
| + if (random === null)
|
| + random = new math.Random();
|
| let length = list.length;
|
| while (length > 1) {
|
| let pos = random.nextInt(length);
|
| @@ -962,7 +1066,8 @@ var _internal;
|
| return Lists.indexOf(list, element, start, list.length);
|
| }
|
| static lastIndexOfList(list, element, start) {
|
| - if (start === null) start = list.length - 1;
|
| + if (start === null)
|
| + start = list.length - 1;
|
| return Lists.lastIndexOf(list, element, start);
|
| }
|
| static _rangeCheck(list, start, end) {
|
| @@ -975,8 +1080,10 @@ var _internal;
|
| static setRangeList(list, start, end, from, skipCount) {
|
| _rangeCheck(list, start, end);
|
| let length = end - start;
|
| - if (length === 0) return;
|
| - if (skipCount < 0) throw new core.ArgumentError(skipCount);
|
| + if (length === 0)
|
| + return;
|
| + if (skipCount < 0)
|
| + throw new core.ArgumentError(skipCount);
|
| let otherList = null;
|
| let otherStart = null;
|
| if (dart.is(from, core.List)) {
|
| @@ -1045,7 +1152,8 @@ var _internal;
|
| }
|
| static setContainsAll(set, other) {
|
| for (let element of other) {
|
| - if (!dart.notNull(set.contains(element))) return false;
|
| + if (!dart.notNull(set.contains(element)))
|
| + return false;
|
| }
|
| return true;
|
| }
|
| @@ -1083,13 +1191,17 @@ var _internal;
|
| return IterableMixinWorkaround;
|
| });
|
| let IterableMixinWorkaround = IterableMixinWorkaround$(dynamic);
|
| -
|
| class IterableElementError extends dart.Object {
|
| - static noElement() { return new core.StateError("No element"); }
|
| - static tooMany() { return new core.StateError("Too many elements"); }
|
| - static tooFew() { return new core.StateError("Too few elements"); }
|
| + static noElement() {
|
| + return new core.StateError("No element");
|
| + }
|
| + static tooMany() {
|
| + return new core.StateError("Too many elements");
|
| + }
|
| + static tooFew() {
|
| + return new core.StateError("Too few elements");
|
| + }
|
| }
|
| -
|
| let FixedLengthListMixin$ = dart.generic(function(E) {
|
| class FixedLengthListMixin extends dart.Object {
|
| set length(newLength) {
|
| @@ -1135,7 +1247,6 @@ var _internal;
|
| return FixedLengthListMixin;
|
| });
|
| let FixedLengthListMixin = FixedLengthListMixin$(dynamic);
|
| -
|
| let UnmodifiableListMixin$ = dart.generic(function(E) {
|
| class UnmodifiableListMixin extends dart.Object {
|
| set(index, value) {
|
| @@ -1169,11 +1280,13 @@ var _internal;
|
| throw new core.UnsupportedError("Cannot remove from an unmodifiable list");
|
| }
|
| sort(compare) {
|
| - if (compare === undefined) compare = null;
|
| + if (compare === void 0)
|
| + compare = null;
|
| throw new core.UnsupportedError("Cannot modify an unmodifiable list");
|
| }
|
| shuffle(random) {
|
| - if (random === undefined) random = null;
|
| + if (random === void 0)
|
| + random = null;
|
| throw new core.UnsupportedError("Cannot modify an unmodifiable list");
|
| }
|
| clear() {
|
| @@ -1186,7 +1299,8 @@ var _internal;
|
| throw new core.UnsupportedError("Cannot remove from an unmodifiable list");
|
| }
|
| setRange(start, end, iterable, skipCount) {
|
| - if (skipCount === undefined) skipCount = 0;
|
| + if (skipCount === void 0)
|
| + skipCount = 0;
|
| throw new core.UnsupportedError("Cannot modify an unmodifiable list");
|
| }
|
| removeRange(start, end) {
|
| @@ -1196,23 +1310,23 @@ var _internal;
|
| throw new core.UnsupportedError("Cannot remove from an unmodifiable list");
|
| }
|
| fillRange(start, end, fillValue) {
|
| - if (fillValue === undefined) fillValue = null;
|
| + if (fillValue === void 0)
|
| + fillValue = null;
|
| throw new core.UnsupportedError("Cannot modify an unmodifiable list");
|
| }
|
| }
|
| return UnmodifiableListMixin;
|
| });
|
| let UnmodifiableListMixin = UnmodifiableListMixin$(dynamic);
|
| -
|
| let FixedLengthListBase$ = dart.generic(function(E) {
|
| - class FixedLengthListBase extends dart.mixin(FixedLengthListMixin$(E)) {}
|
| -
|
| + class FixedLengthListBase extends dart.mixin(FixedLengthListMixin$(E)) {
|
| + }
|
| return FixedLengthListBase;
|
| });
|
| let FixedLengthListBase = FixedLengthListBase$(dynamic);
|
| let UnmodifiableListBase$ = dart.generic(function(E) {
|
| - class UnmodifiableListBase extends dart.mixin(UnmodifiableListMixin$(E)) {}
|
| -
|
| + class UnmodifiableListBase extends dart.mixin(UnmodifiableListMixin$(E)) {
|
| + }
|
| return UnmodifiableListBase;
|
| });
|
| let UnmodifiableListBase = UnmodifiableListBase$(dynamic);
|
| @@ -1221,26 +1335,43 @@ var _internal;
|
| this._backedList = _backedList;
|
| super.ListIterable();
|
| }
|
| - get length() { return this._backedList.length; }
|
| + get length() {
|
| + return this._backedList.length;
|
| + }
|
| elementAt(index) {
|
| core.RangeError.checkValidIndex(index, this);
|
| return index;
|
| }
|
| }
|
| -
|
| let ListMapView$ = dart.generic(function(E) {
|
| class ListMapView extends dart.Object {
|
| ListMapView(_values) {
|
| this._values = _values;
|
| }
|
| - get(key) { return dart.as(this.containsKey(key) ? this._values.get(key) : null, E); }
|
| - get length() { return this._values.length; }
|
| - get values() { return new SubListIterable(this._values, 0, null); }
|
| - get keys() { return new _ListIndicesIterable(this._values); }
|
| - get isEmpty() { return this._values.isEmpty; }
|
| - get isNotEmpty() { return this._values.isNotEmpty; }
|
| - containsValue(value) { return this._values.contains(value); }
|
| - containsKey(key) { return dart.notNull(dart.notNull(typeof key == "number") && dart.notNull(key >= 0)) && dart.notNull(key < this.length); }
|
| + get(key) {
|
| + return dart.as(this.containsKey(key) ? this._values.get(key) : null, E);
|
| + }
|
| + get length() {
|
| + return this._values.length;
|
| + }
|
| + get values() {
|
| + return new SubListIterable(this._values, 0, null);
|
| + }
|
| + get keys() {
|
| + return new _ListIndicesIterable(this._values);
|
| + }
|
| + get isEmpty() {
|
| + return this._values.isEmpty;
|
| + }
|
| + get isNotEmpty() {
|
| + return this._values.isNotEmpty;
|
| + }
|
| + containsValue(value) {
|
| + return this._values.contains(value);
|
| + }
|
| + containsKey(key) {
|
| + return dart.notNull(dart.notNull(typeof key == number) && dart.notNull(key >= 0)) && dart.notNull(key < this.length);
|
| + }
|
| forEach(f) {
|
| let length = this._values.length;
|
| for (let i = 0; i < length; i++) {
|
| @@ -1265,44 +1396,59 @@ var _internal;
|
| addAll(other) {
|
| throw new core.UnsupportedError("Cannot modify an unmodifiable map");
|
| }
|
| - toString() { return collection.Maps.mapToString(this); }
|
| + toString() {
|
| + return collection.Maps.mapToString(this);
|
| + }
|
| }
|
| return ListMapView;
|
| });
|
| let ListMapView = ListMapView$(dynamic);
|
| -
|
| let ReversedListIterable$ = dart.generic(function(E) {
|
| class ReversedListIterable extends ListIterable$(E) {
|
| ReversedListIterable(_source) {
|
| this._source = _source;
|
| super.ListIterable();
|
| }
|
| - get length() { return this._source.length; }
|
| - elementAt(index) { return this._source.elementAt(this._source.length - 1 - index); }
|
| + get length() {
|
| + return this._source.length;
|
| + }
|
| + elementAt(index) {
|
| + return this._source.elementAt(this._source.length - 1 - index);
|
| + }
|
| }
|
| return ReversedListIterable;
|
| });
|
| let ReversedListIterable = ReversedListIterable$(dynamic);
|
| -
|
| class UnmodifiableListError extends dart.Object {
|
| - static add() { return new core.UnsupportedError("Cannot add to unmodifiable List"); }
|
| - static change() { return new core.UnsupportedError("Cannot change the content of an unmodifiable List"); }
|
| - static length() { return new core.UnsupportedError("Cannot change length of unmodifiable List"); }
|
| - static remove() { return new core.UnsupportedError("Cannot remove from unmodifiable List"); }
|
| + static add() {
|
| + return new core.UnsupportedError("Cannot add to unmodifiable List");
|
| + }
|
| + static change() {
|
| + return new core.UnsupportedError("Cannot change the content of an unmodifiable List");
|
| + }
|
| + static length() {
|
| + return new core.UnsupportedError("Cannot change length of unmodifiable List");
|
| + }
|
| + static remove() {
|
| + return new core.UnsupportedError("Cannot remove from unmodifiable List");
|
| + }
|
| }
|
| -
|
| class NonGrowableListError extends dart.Object {
|
| - static add() { return new core.UnsupportedError("Cannot add to non-growable List"); }
|
| - static length() { return new core.UnsupportedError("Cannot change length of non-growable List"); }
|
| - static remove() { return new core.UnsupportedError("Cannot remove from non-growable List"); }
|
| + static add() {
|
| + return new core.UnsupportedError("Cannot add to non-growable List");
|
| + }
|
| + static length() {
|
| + return new core.UnsupportedError("Cannot change length of non-growable List");
|
| + }
|
| + static remove() {
|
| + return new core.UnsupportedError("Cannot remove from non-growable List");
|
| + }
|
| }
|
| -
|
| // Function makeListFixedLength: (List<dynamic>) → List
|
| function makeListFixedLength(growableList) {
|
| - dart.dinvoke(/* Unimplemented unknown name */JSArray, "markFixedList", growableList);
|
| + dart.dinvoke(/* Unimplemented unknown name */JSArray, 'markFixedList', growableList);
|
| return growableList;
|
| }
|
| -
|
| class Lists extends dart.Object {
|
| static copy(src, srcStart, dst, dstStart, count) {
|
| if (srcStart < dstStart) {
|
| @@ -1316,12 +1462,16 @@ var _internal;
|
| }
|
| }
|
| static areEqual(a, b) {
|
| - if (core.identical(a, b)) return true;
|
| - if (!dart.notNull((dart.is(b, core.List)))) return false;
|
| + if (core.identical(a, b))
|
| + return true;
|
| + if (!dart.notNull(dart.is(b, core.List)))
|
| + return false;
|
| let length = a.length;
|
| - if (length !== dart.dload(b, "length")) return false;
|
| + if (length !== dart.dload(b, 'length'))
|
| + return false;
|
| for (let i = 0; i < length; i++) {
|
| - if (!dart.notNull(core.identical(a.get(i), dart.dindex(b, i)))) return false;
|
| + if (!dart.notNull(core.identical(a.get(i), dart.dindex(b, i))))
|
| + return false;
|
| }
|
| return true;
|
| }
|
| @@ -1365,25 +1515,23 @@ var _internal;
|
| }
|
| }
|
| }
|
| -
|
| _internal.printToZone = null;
|
| // Function printToConsole: (String) → void
|
| function printToConsole(line) {
|
| dart.dinvokef(/* Unimplemented unknown name */printString, `${line}`);
|
| }
|
| -
|
| class Sort extends dart.Object {
|
| static sort(a, compare) {
|
| _doSort(a, 0, a.length - 1, compare);
|
| }
|
| static sortRange(a, from, to, compare) {
|
| - if (dart.notNull(dart.notNull((from < 0)) || dart.notNull((to > a.length))) || dart.notNull((to < from))) {
|
| + if (dart.notNull(dart.notNull(from < 0) || dart.notNull(to > a.length)) || dart.notNull(to < from)) {
|
| throw "OutOfRange";
|
| }
|
| _doSort(a, from, to - 1, compare);
|
| }
|
| static _doSort(a, left, right, compare) {
|
| - if ((right - left) <= _INSERTION_SORT_THRESHOLD) {
|
| + if (right - left <= _INSERTION_SORT_THRESHOLD) {
|
| _insertionSort(a, left, right, compare);
|
| } else {
|
| _dualPivotQuicksort(a, left, right, compare);
|
| @@ -1393,7 +1541,7 @@ var _internal;
|
| for (let i = left + 1; i <= right; i++) {
|
| let el = a.get(i);
|
| let j = i;
|
| - while (dart.notNull((j > left)) && dart.notNull((compare(a.get(j - 1), el) > 0))) {
|
| + while (dart.notNull(j > left) && dart.notNull(compare(a.get(j - 1), el) > 0)) {
|
| a.set(j, a.get(j - 1));
|
| j--;
|
| }
|
| @@ -1467,13 +1615,14 @@ var _internal;
|
| a.set(index4, a.get(right));
|
| let less = left + 1;
|
| let great = right - 1;
|
| - let pivots_are_equal = (compare(pivot1, pivot2) === 0);
|
| + let pivots_are_equal = compare(pivot1, pivot2) === 0;
|
| if (pivots_are_equal) {
|
| let pivot = pivot1;
|
| for (let k = less; k <= great; k++) {
|
| let ak = a.get(k);
|
| let comp = compare(ak, pivot);
|
| - if (comp === 0) continue;
|
| + if (comp === 0)
|
| + continue;
|
| if (comp < 0) {
|
| if (k !== less) {
|
| a.set(k, a.get(less));
|
| @@ -1516,7 +1665,8 @@ var _internal;
|
| let comp = compare(a.get(great), pivot2);
|
| if (comp > 0) {
|
| great--;
|
| - if (great < k) break;
|
| + if (great < k)
|
| + break;
|
| continue;
|
| } else {
|
| comp = compare(a.get(great), pivot1);
|
| @@ -1567,7 +1717,8 @@ var _internal;
|
| let comp = compare(a.get(great), pivot2);
|
| if (comp === 0) {
|
| great--;
|
| - if (great < k) break;
|
| + if (great < k)
|
| + break;
|
| continue;
|
| } else {
|
| comp = compare(a.get(great), pivot1);
|
| @@ -1592,7 +1743,6 @@ var _internal;
|
| }
|
| }
|
| Sort._INSERTION_SORT_THRESHOLD = 32;
|
| -
|
| class Symbol extends dart.Object {
|
| Symbol(name) {
|
| this._name = name;
|
| @@ -1603,42 +1753,45 @@ var _internal;
|
| Symbol$validated(name) {
|
| this._name = validatePublicSymbol(name);
|
| }
|
| - ['=='](other) { return dart.notNull(dart.is(other, Symbol)) && dart.notNull(dart.equals(this._name, dart.dload(other, "_name"))); }
|
| + ['=='](other) {
|
| + return dart.notNull(dart.is(other, Symbol)) && dart.notNull(dart.equals(this._name, dart.dload(other, '_name')));
|
| + }
|
| get hashCode() {
|
| let arbitraryPrime = 664597;
|
| - return 536870911 & (arbitraryPrime * this._name.hashCode);
|
| + return 536870911 & arbitraryPrime * this._name.hashCode;
|
| + }
|
| + toString() {
|
| + return `Symbol("${this._name}")`;
|
| + }
|
| + static getName(symbol) {
|
| + return symbol._name;
|
| }
|
| - toString() { return `Symbol("${this._name}")`; }
|
| - static getName(symbol) { return symbol._name; }
|
| static validatePublicSymbol(name) {
|
| - if (dart.notNull(name.isEmpty) || dart.notNull(publicSymbolPattern.hasMatch(name))) return name;
|
| + if (dart.notNull(name.isEmpty) || dart.notNull(publicSymbolPattern.hasMatch(name)))
|
| + return name;
|
| if (name.startsWith('_')) {
|
| throw new core.ArgumentError(`"${name}" is a private identifier`);
|
| }
|
| throw new core.ArgumentError(`"${name}" is not a valid (qualified) symbol name`);
|
| }
|
| static isValidSymbol(name) {
|
| - return (dart.notNull(name.isEmpty) || dart.notNull(symbolPattern.hasMatch(name)));
|
| + return dart.notNull(name.isEmpty) || dart.notNull(symbolPattern.hasMatch(name));
|
| }
|
| }
|
| - dart.defineNamedConstructor(Symbol, "unvalidated");
|
| - dart.defineNamedConstructor(Symbol, "validated");
|
| - 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|ull)|' +
|
| - 'ret(?:hrow|urn)|s(?:uper|witch)|t(?:h(?:is|row)|r(?:ue|y))|' +
|
| - 'v(?:ar|oid)|w(?:hile|ith))';
|
| - Symbol.publicIdentifierRE = '(?!' +
|
| - `${reservedWordRE}` +
|
| - '\\b(?!\\$))[a-zA-Z$][\\w$]*';
|
| - Symbol.identifierRE = '(?!' +
|
| - `${reservedWordRE}` +
|
| - '\\b(?!\\$))[a-zA-Z$_][\\w$]*';
|
| + dart.defineNamedConstructor(Symbol, 'unvalidated');
|
| + dart.defineNamedConstructor(Symbol, 'validated');
|
| + 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|ull)|' + 'ret(?:hrow|urn)|s(?:uper|witch)|t(?:h(?:is|row)|r(?:ue|y))|' + 'v(?:ar|oid)|w(?:hile|ith))';
|
| + Symbol.publicIdentifierRE = '(?!' + `${reservedWordRE}` + '\\b(?!\\$))[a-zA-Z$][\\w$]*';
|
| + Symbol.identifierRE = '(?!' + `${reservedWordRE}` + '\\b(?!\\$))[a-zA-Z$_][\\w$]*';
|
| Symbol.operatorRE = '(?:[\\-+*/%&|^]|\\[\\]=?|==|~/?|<[<=]?|>[>=]?|unary-)';
|
| dart.defineLazyProperties(Symbol, {
|
| - get publicSymbolPattern() { return new core.RegExp(`^(?:${operatorRE}$|${publicIdentifierRE}(?:=?$|[.](?!$)))+?$`) },
|
| - get symbolPattern() { return new core.RegExp(`^(?:${operatorRE}$|${identifierRE}(?:=?$|[.](?!$)))+?$`) },
|
| + get publicSymbolPattern() {
|
| + return new core.RegExp(`^(?:${operatorRE}$|${publicIdentifierRE}(?:=?$|[.](?!$)))+?$`);
|
| + },
|
| + get symbolPattern() {
|
| + return new core.RegExp(`^(?:${operatorRE}$|${identifierRE}(?:=?$|[.](?!$)))+?$`);
|
| + }
|
| });
|
| -
|
| // Exports:
|
| _internal.POWERS_OF_TEN = POWERS_OF_TEN;
|
| _internal.EfficientLength = EfficientLength;
|
| @@ -1697,10 +1850,10 @@ var _internal;
|
| _internal.FixedLengthListMixin$ = FixedLengthListMixin$;
|
| _internal.UnmodifiableListMixin = UnmodifiableListMixin;
|
| _internal.UnmodifiableListMixin$ = UnmodifiableListMixin$;
|
| - _internal.FixedLengthListBase$ = FixedLengthListBase$;
|
| _internal.FixedLengthListBase = FixedLengthListBase;
|
| - _internal.UnmodifiableListBase$ = UnmodifiableListBase$;
|
| + _internal.FixedLengthListBase$ = FixedLengthListBase$;
|
| _internal.UnmodifiableListBase = UnmodifiableListBase;
|
| + _internal.UnmodifiableListBase$ = UnmodifiableListBase$;
|
| _internal.ListMapView = ListMapView;
|
| _internal.ListMapView$ = ListMapView$;
|
| _internal.ReversedListIterable = ReversedListIterable;
|
|
|