mirror of
https://github.com/dart-lang/sdk
synced 2024-09-15 22:51:29 +00:00
Revert "Rename mappedBy to map."
This reverts commit 17899. Review URL: https://codereview.chromium.org//12087103 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17907 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
parent
12869cc864
commit
b1a118d5ce
|
@ -38,7 +38,7 @@ String mapToQuery(Map<String, String> map) {
|
|||
var pairs = <List<String>>[];
|
||||
map.forEach((key, value) =>
|
||||
pairs.add([encodeUriComponent(key), encodeUriComponent(value)]));
|
||||
return Strings.join(pairs.map((pair) => "${pair[0]}=${pair[1]}"), "&");
|
||||
return Strings.join(pairs.mappedBy((pair) => "${pair[0]}=${pair[1]}"), "&");
|
||||
}
|
||||
|
||||
/// Adds all key/value pairs from [source] to [destination], overwriting any
|
||||
|
|
|
@ -30,7 +30,7 @@ main() {
|
|||
void runEverything(_) {
|
||||
// Initialize all locales and wait for them to finish before running tests.
|
||||
var futures = DateFormat.allLocalesWithSymbols()
|
||||
.map((locale) => initializeDateFormatting(locale, url))
|
||||
.mappedBy((locale) => initializeDateFormatting(locale, url))
|
||||
.toList();
|
||||
Future.wait(futures).then(expectAsync1((_) {
|
||||
runDateTests(smallSetOfLocales());
|
||||
|
|
|
@ -26,7 +26,7 @@ runWith([Function getSubset]) {
|
|||
void runEverything(Function getSubset) {
|
||||
// Initialize all locales and wait for them to finish before running tests.
|
||||
var futures = DateFormat.allLocalesWithSymbols()
|
||||
.map((locale) => initializeDateFormatting(locale, null))
|
||||
.mappedBy((locale) => initializeDateFormatting(locale, null))
|
||||
.toList();
|
||||
Future.wait(futures).then((results) => runDateTests(getSubset()));
|
||||
}
|
||||
|
|
|
@ -218,12 +218,12 @@ runDateTests([List<String> subset]) {
|
|||
var date_format = new DateFormat("d");
|
||||
expect(
|
||||
date_format.parsePattern("hh:mm:ss")
|
||||
.map((x) => x.pattern)
|
||||
.mappedBy((x) => x.pattern)
|
||||
.toList(),
|
||||
orderedEquals(["hh",":", "mm",":","ss"]));
|
||||
expect(
|
||||
date_format.parsePattern("hh:mm:ss")
|
||||
.map((x) => x.pattern)
|
||||
.mappedBy((x) => x.pattern)
|
||||
.toList(),
|
||||
orderedEquals(["hh",":", "mm",":","ss"]));
|
||||
});
|
||||
|
|
|
@ -39,7 +39,7 @@ String mapToQuery(Map<String, String> map) {
|
|||
value = (value == null || value.isEmpty) ? null : encodeUriComponent(value);
|
||||
pairs.add([key, value]);
|
||||
});
|
||||
return Strings.join(pairs.map((pair) {
|
||||
return Strings.join(pairs.mappedBy((pair) {
|
||||
if (pair[1] == null) return pair[0];
|
||||
return "${pair[0]}=${pair[1]}";
|
||||
}), "&");
|
||||
|
|
|
@ -179,7 +179,7 @@ _validateArgList(String method, List<String> args) {
|
|||
var message = new StringBuffer();
|
||||
message.add("$method(");
|
||||
message.add(args.take(numArgs)
|
||||
.map((arg) => arg == null ? "null" : '"$arg"')
|
||||
.mappedBy((arg) => arg == null ? "null" : '"$arg"')
|
||||
.join(", "));
|
||||
message.add("): part ${i - 1} was null, but part $i was not.");
|
||||
throw new ArgumentError(message.toString());
|
||||
|
|
|
@ -533,13 +533,13 @@ class _FieldList extends Iterable {
|
|||
|
||||
List get constructorFields => _constructorFields;
|
||||
List constructorFieldNames() =>
|
||||
constructorFields.map((x) => x.name).toList();
|
||||
constructorFields.mappedBy((x) => x.name).toList();
|
||||
List constructorFieldIndices() =>
|
||||
constructorFields.map((x) => x.index).toList();
|
||||
constructorFields.mappedBy((x) => x.index).toList();
|
||||
List regularFields() => contents.where((x) => !x.usedInConstructor).toList();
|
||||
List regularFieldNames() => regularFields().map((x) => x.name).toList();
|
||||
List regularFieldNames() => regularFields().mappedBy((x) => x.name).toList();
|
||||
List regularFieldIndices() =>
|
||||
regularFields().map((x) => x.index).toList();
|
||||
regularFields().mappedBy((x) => x.index).toList();
|
||||
|
||||
/**
|
||||
* If we weren't given any non-constructor fields to use, figure out what
|
||||
|
@ -549,7 +549,7 @@ class _FieldList extends Iterable {
|
|||
*/
|
||||
void figureOutFields() {
|
||||
Iterable names(Iterable<DeclarationMirror> mirrors) =>
|
||||
mirrors.map((each) => each.simpleName).toList();
|
||||
mirrors.mappedBy((each) => each.simpleName).toList();
|
||||
|
||||
if (!_shouldFigureOutFields || !regularFields().isEmpty) return;
|
||||
var fields = publicFields(mirror);
|
||||
|
@ -606,7 +606,7 @@ class Constructor {
|
|||
*/
|
||||
constructFrom(state, Reader r) {
|
||||
// TODO(alanknight): Handle named parameters
|
||||
Collection inflated = fieldNumbers.map(
|
||||
Collection inflated = fieldNumbers.mappedBy(
|
||||
(x) => (x is int) ? reflect(r.inflateReference(state[x])) : reflect(x));
|
||||
var result = type.newInstance(name, inflated.toList());
|
||||
return deprecatedFutureValue(result);
|
||||
|
|
|
@ -161,7 +161,7 @@ class SimpleJsonFormat extends Format {
|
|||
var result = {};
|
||||
result["rules"] = null;
|
||||
var ruleData =
|
||||
new List(r.serialization.rules.length).map((x) => []).toList();
|
||||
new List(r.serialization.rules.length).mappedBy((x) => []).toList();
|
||||
var top = recursivelyFixUp(data, r, ruleData);
|
||||
result["data"] = ruleData;
|
||||
result["roots"] = [top];
|
||||
|
@ -434,4 +434,4 @@ class SimpleFlatFormat extends Format {
|
|||
input.moveNext();
|
||||
return input.current;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -197,7 +197,7 @@ class Writer implements ReaderOrWriter {
|
|||
* Return a list of [Reference] objects pointing to our roots. This will be
|
||||
* stored in the output under "roots" in the default format.
|
||||
*/
|
||||
_rootReferences() => trace.roots.map(_referenceFor).toList();
|
||||
_rootReferences() => trace.roots.mappedBy(_referenceFor).toList();
|
||||
|
||||
/**
|
||||
* Given an object, return a reference for it if one exists. If there's
|
||||
|
@ -331,7 +331,7 @@ class Reader implements ReaderOrWriter {
|
|||
// When we set the data, initialize the object storage to a matching size.
|
||||
void set data(List<List> newData) {
|
||||
_data = newData;
|
||||
objects = _data.map((x) => new List(x.length)).toList();
|
||||
objects = _data.mappedBy((x) => new List(x.length)).toList();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -77,7 +77,7 @@ abstract class MapLikeIterable {
|
|||
* [collection] is a List, it will be the same as the map() method if the
|
||||
* [key] parameter wasn't passed.
|
||||
*/
|
||||
map(Function f) {
|
||||
mappedBy(Function f) {
|
||||
var result = copyEmpty();
|
||||
forEach((key, value) {
|
||||
result[key] = f(key, value);
|
||||
|
@ -131,9 +131,9 @@ values(x) {
|
|||
}
|
||||
|
||||
mapValues(x, f) {
|
||||
if (x is Set) return x.map(f).toSet();
|
||||
if (x is Iterable) return x.map(f).toList();
|
||||
if (x is Map) return new ListLikeIterable(x).map(f);
|
||||
if (x is Set) return x.mappedBy(f).toSet();
|
||||
if (x is Iterable) return x.mappedBy(f).toList();
|
||||
if (x is Map) return new ListLikeIterable(x).mappedBy(f);
|
||||
throw new ArgumentError("Invalid argument");
|
||||
}
|
||||
|
||||
|
@ -158,7 +158,7 @@ class ListLikeIterable {
|
|||
* [collection] is a List, it will be the same as if map() had been called
|
||||
* directly on [collection].
|
||||
*/
|
||||
map(Function f) {
|
||||
mappedBy(Function f) {
|
||||
var result = new Map();
|
||||
collection.forEach((key, value) => result[key] = f(value));
|
||||
return result;
|
||||
|
@ -251,4 +251,4 @@ class IdentityMap<K, V> implements Map<K, V> {
|
|||
|
||||
// Note that this is doing an equality comparison.
|
||||
bool containsValue(x) => values.contains(x);
|
||||
}
|
||||
}
|
|
@ -479,7 +479,7 @@ class _LazyMap implements Map {
|
|||
|
||||
// These operations will work, but may be expensive, and are probably
|
||||
// best avoided.
|
||||
get _inflated => keysAndValues(_raw).map(_reader.inflateReference);
|
||||
get _inflated => keysAndValues(_raw).mappedBy(_reader.inflateReference);
|
||||
bool containsValue(x) => _inflated.containsValue(x);
|
||||
Iterable get values => _inflated.values;
|
||||
void forEach(f) => _inflated.forEach(f);
|
||||
|
@ -518,7 +518,7 @@ class _LazyList extends Iterable implements List {
|
|||
// These operations, and other inherited methods that iterate over the whole
|
||||
// list will work, but may be expensive, and are probably
|
||||
// best avoided.
|
||||
List get _inflated => _raw.map(_reader.inflateReference);
|
||||
List get _inflated => _raw.mappedBy(_reader.inflateReference);
|
||||
Iterator get iterator => _inflated.iterator;
|
||||
indexOf(x, [pos = 0]) => _inflated.toList().indexOf(x);
|
||||
lastIndexOf(x, [pos]) => _inflated.toList().lastIndexOf(x);
|
||||
|
|
|
@ -641,7 +641,7 @@ runRoundTripTestFlat(serializerSetUp) {
|
|||
/** Extract the state from [object] using the rules in [s] and return it. */
|
||||
states(object, Serialization s) {
|
||||
var rules = s.rulesFor(object, null);
|
||||
return rules.map((x) => x.extractState(object, doNothing)).toList();
|
||||
return rules.mappedBy((x) => x.extractState(object, doNothing)).toList();
|
||||
}
|
||||
|
||||
/** A hard-coded rule for serializing Node instances. */
|
||||
|
|
|
@ -58,7 +58,7 @@ class CompactVMConfiguration extends VMConfiguration {
|
|||
}
|
||||
|
||||
String _indent(String str) {
|
||||
return str.split("\n").map((line) => " $line").join("\n");
|
||||
return str.split("\n").mappedBy((line) => " $line").join("\n");
|
||||
}
|
||||
|
||||
void onSummary(int passed, int failed, int errors, List<TestCase> results,
|
||||
|
|
|
@ -146,7 +146,7 @@ class Configuration {
|
|||
// TODO(nweiz): Use this simpler code once issue 2980 is fixed.
|
||||
// return str.replaceAll(new RegExp("^", multiLine: true), " ");
|
||||
|
||||
return Strings.join(str.split("\n").map((line) => " $line"), "\n");
|
||||
return Strings.join(str.split("\n").mappedBy((line) => " $line"), "\n");
|
||||
}
|
||||
|
||||
/** Handle errors that happen outside the tests. */
|
||||
|
|
|
@ -91,7 +91,7 @@ class _SequenceNode extends _Node {
|
|||
}
|
||||
|
||||
String toString() =>
|
||||
'$tag [${Strings.join(content.map((e) => '$e'), ', ')}]';
|
||||
'$tag [${Strings.join(content.mappedBy((e) => '$e'), ', ')}]';
|
||||
|
||||
int get hashCode => super.hashCode ^ _hashCode(content);
|
||||
|
||||
|
@ -150,7 +150,7 @@ class _ScalarNode extends _Node {
|
|||
// TODO(nweiz): This could be faster if we used a RegExp to check for
|
||||
// special characters and short-circuited if they didn't exist.
|
||||
|
||||
var escapedValue = value.charCodes.map((c) {
|
||||
var escapedValue = value.charCodes.mappedBy((c) {
|
||||
switch (c) {
|
||||
case _Parser.TAB: return "\\t";
|
||||
case _Parser.LF: return "\\n";
|
||||
|
@ -223,7 +223,7 @@ class _MappingNode extends _Node {
|
|||
|
||||
String toString() {
|
||||
var strContent = content.keys
|
||||
.map((k) => '${k}: ${content[k]}')
|
||||
.mappedBy((k) => '${k}: ${content[k]}')
|
||||
.join(', ');
|
||||
return '$tag {$strContent}';
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ class _Visitor {
|
|||
|
||||
/// Visits each node in [seq] and returns a list of the results.
|
||||
visitSequence(_SequenceNode seq)
|
||||
=> seq.content.map((e) => e.visit(this)).toList();
|
||||
=> seq.content.mappedBy((e) => e.visit(this)).toList();
|
||||
|
||||
/// Visits each key and value in [map] and returns a map of the results.
|
||||
visitMapping(_MappingNode map) {
|
||||
|
|
|
@ -60,8 +60,8 @@ loadYaml(String yaml) {
|
|||
/// are YamlMaps. These have a few small behavioral differences from the default
|
||||
/// Map implementation; for details, see the YamlMap class.
|
||||
List loadYamlStream(String yaml) {
|
||||
return new _Parser(yaml).l_yamlStream()
|
||||
.map((doc) => new _Constructor(new _Composer(doc).compose()).construct())
|
||||
return new _Parser(yaml).l_yamlStream().mappedBy((doc) =>
|
||||
new _Constructor(new _Composer(doc).compose()).construct())
|
||||
.toList();
|
||||
}
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ class YamlMap implements Map {
|
|||
void clear() => _map.clear();
|
||||
void forEach(void f(key, value)) =>
|
||||
_map.forEach((k, v) => f(_unwrapKey(k), v));
|
||||
Iterable get keys => _map.keys.map(_unwrapKey);
|
||||
Iterable get keys => _map.keys.mappedBy(_unwrapKey);
|
||||
Iterable get values => _map.values;
|
||||
int get length => _map.length;
|
||||
bool get isEmpty => _map.isEmpty;
|
||||
|
|
|
@ -34,7 +34,6 @@ class _ObjectArray<E> implements List<E> {
|
|||
"Cannot remove element of a non-extendable array");
|
||||
}
|
||||
|
||||
// Collection interface.
|
||||
void removeAll(Iterable elements) {
|
||||
throw new UnsupportedError(
|
||||
"Cannot remove element of a non-extendable array");
|
||||
|
@ -55,7 +54,6 @@ class _ObjectArray<E> implements List<E> {
|
|||
"Cannot remove element of a non-extendable array");
|
||||
}
|
||||
|
||||
// List interface.
|
||||
void setRange(int start, int length, List<E> from, [int startFrom = 0]) {
|
||||
if (length < 0) {
|
||||
throw new ArgumentError("negative length $length");
|
||||
|
@ -86,7 +84,7 @@ class _ObjectArray<E> implements List<E> {
|
|||
return list;
|
||||
}
|
||||
|
||||
// Iterable interface.
|
||||
// Collection interface.
|
||||
|
||||
bool contains(E element) {
|
||||
return IterableMixinWorkaround.contains(this, element);
|
||||
|
@ -100,12 +98,8 @@ class _ObjectArray<E> implements List<E> {
|
|||
return IterableMixinWorkaround.joinList(this, separator);
|
||||
}
|
||||
|
||||
Iterable map(f(E element)) {
|
||||
return IterableMixinWorkaround.map(this, f);
|
||||
}
|
||||
|
||||
List mappedBy(f(E element)) {
|
||||
IterableMixinWorkaround.mappedByList(this, f);
|
||||
return IterableMixinWorkaround.mappedByList(this, f);
|
||||
}
|
||||
|
||||
reduce(initialValue, combine(previousValue, E element)) {
|
||||
|
@ -116,7 +110,7 @@ class _ObjectArray<E> implements List<E> {
|
|||
return IterableMixinWorkaround.where(this, f);
|
||||
}
|
||||
|
||||
Iterable<E> take(int n) {
|
||||
List<E> take(int n) {
|
||||
return IterableMixinWorkaround.takeList(this, n);
|
||||
}
|
||||
|
||||
|
@ -124,7 +118,7 @@ class _ObjectArray<E> implements List<E> {
|
|||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<E> skip(int n) {
|
||||
List<E> skip(int n) {
|
||||
return IterableMixinWorkaround.skipList(this, n);
|
||||
}
|
||||
|
||||
|
@ -330,10 +324,6 @@ class _ImmutableArray<E> implements List<E> {
|
|||
IterableMixinWorkaround.forEach(this, f);
|
||||
}
|
||||
|
||||
Iterable map(f(E element)) {
|
||||
return IterableMixinWorkaround.map(this, f);
|
||||
}
|
||||
|
||||
List mappedBy(f(E element)) {
|
||||
return IterableMixinWorkaround.mappedByList(this, f);
|
||||
}
|
||||
|
@ -350,7 +340,7 @@ class _ImmutableArray<E> implements List<E> {
|
|||
return IterableMixinWorkaround.where(this, f);
|
||||
}
|
||||
|
||||
Iterable<E> take(int n) {
|
||||
List<E> take(int n) {
|
||||
return IterableMixinWorkaround.takeList(this, n);
|
||||
}
|
||||
|
||||
|
@ -358,7 +348,7 @@ class _ImmutableArray<E> implements List<E> {
|
|||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<E> skip(int n) {
|
||||
List<E> skip(int n) {
|
||||
return IterableMixinWorkaround.skipList(this, n);
|
||||
}
|
||||
|
||||
|
|
|
@ -229,10 +229,6 @@ abstract class _ByteArrayBase {
|
|||
}
|
||||
}
|
||||
|
||||
Iterable map(f(int element)) {
|
||||
return IterableMixinWorkaround.map(this, f);
|
||||
}
|
||||
|
||||
List mappedBy(f(int element)) {
|
||||
return IterableMixinWorkaround.mappedByList(this, f);
|
||||
}
|
||||
|
@ -250,7 +246,7 @@ abstract class _ByteArrayBase {
|
|||
return IterableMixinWorkaround.where(this, f);
|
||||
}
|
||||
|
||||
Iterable<int> take(int n) {
|
||||
List<int> take(int n) {
|
||||
return IterableMixinWorkaround.takeList(this, n);
|
||||
}
|
||||
|
||||
|
@ -258,7 +254,7 @@ abstract class _ByteArrayBase {
|
|||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<int> skip(int n) {
|
||||
List<int> skip(int n) {
|
||||
return IterableMixinWorkaround.skipList(this, n);
|
||||
}
|
||||
|
||||
|
|
|
@ -242,10 +242,6 @@ class _GrowableObjectArray<T> implements List<T> {
|
|||
return buffer.toString();
|
||||
}
|
||||
|
||||
Iterable map(f(T element)) {
|
||||
return IterableMixinWorkaround.map(this, f);
|
||||
}
|
||||
|
||||
List mappedBy(f(T element)) {
|
||||
return IterableMixinWorkaround.mappedByList(this, f);
|
||||
}
|
||||
|
@ -258,7 +254,7 @@ class _GrowableObjectArray<T> implements List<T> {
|
|||
return IterableMixinWorkaround.where(this, f);
|
||||
}
|
||||
|
||||
Iterable<T> take(int n) {
|
||||
List<T> take(int n) {
|
||||
return IterableMixinWorkaround.takeList(this, n);
|
||||
}
|
||||
|
||||
|
@ -266,7 +262,7 @@ class _GrowableObjectArray<T> implements List<T> {
|
|||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<T> skip(int n) {
|
||||
List<T> skip(int n) {
|
||||
return IterableMixinWorkaround.skipList(this, n);
|
||||
}
|
||||
|
||||
|
|
|
@ -131,7 +131,7 @@ void compile(List<String> argv) {
|
|||
setCategories(String argument) {
|
||||
List<String> categories = extractParameter(argument).split(',');
|
||||
Set<String> allowedCategories =
|
||||
LIBRARIES.values.map((x) => x.category).toSet();
|
||||
LIBRARIES.values.mappedBy((x) => x.category).toSet();
|
||||
allowedCategories.remove('Shared');
|
||||
allowedCategories.remove('Internal');
|
||||
List<String> allowedCategoriesList =
|
||||
|
|
|
@ -137,7 +137,7 @@ class DartBackend extends Backend {
|
|||
Set<DartType> processedTypes = new Set<DartType>();
|
||||
List<DartType> workQueue = new List<DartType>();
|
||||
workQueue.addAll(
|
||||
classMembers.keys.map((classElement) => classElement.thisType));
|
||||
classMembers.keys.mappedBy((classElement) => classElement.thisType));
|
||||
workQueue.addAll(compiler.resolverWorld.isChecks);
|
||||
Element typeErrorElement =
|
||||
compiler.coreLibrary.find(new SourceString('TypeError'));
|
||||
|
|
|
@ -191,7 +191,7 @@ void renamePlaceholders(
|
|||
sorted(functionScope.localPlaceholders,
|
||||
compareBy((LocalPlaceholder ph) => -ph.nodes.length));
|
||||
List<Set<Node>> currentSortedNodes =
|
||||
currentSortedPlaceholders.map((ph) => ph.nodes).toList();
|
||||
currentSortedPlaceholders.mappedBy((ph) => ph.nodes).toList();
|
||||
// Make room in all sorted locals list for new stuff.
|
||||
while (currentSortedNodes.length > allSortedLocals.length) {
|
||||
allSortedLocals.add(new Set<Node>());
|
||||
|
|
|
@ -791,7 +791,7 @@ class ArrayInitializer extends Expression {
|
|||
|
||||
static List<ArrayElement> _convert(List<Expression> expressions) {
|
||||
int index = 0;
|
||||
return expressions.map(
|
||||
return expressions.mappedBy(
|
||||
(expression) => new ArrayElement(index++, expression))
|
||||
.toList();
|
||||
}
|
||||
|
@ -896,7 +896,8 @@ Call call(Expression target, List<Expression> arguments) {
|
|||
}
|
||||
|
||||
Fun fun(List<String> parameterNames, Block body) {
|
||||
return new Fun(parameterNames.map((n) => new Parameter(n)).toList(), body);
|
||||
return new Fun(parameterNames.mappedBy((n) => new Parameter(n)).toList(),
|
||||
body);
|
||||
}
|
||||
|
||||
Assignment assign(Expression leftHandSide, Expression value) {
|
||||
|
|
|
@ -1849,7 +1849,7 @@ $lazyInitializerLogic
|
|||
}
|
||||
|
||||
List<js.Expression> argNames =
|
||||
selector.getOrderedNamedArguments().map((SourceString name) =>
|
||||
selector.getOrderedNamedArguments().mappedBy((SourceString name) =>
|
||||
js.string(name.slowToString())).toList();
|
||||
|
||||
String internalName = namer.invocationMirrorInternalName(selector);
|
||||
|
@ -1870,7 +1870,7 @@ $lazyInitializerLogic
|
|||
js.string(internalName),
|
||||
new js.LiteralNumber('$type'),
|
||||
new js.ArrayInitializer.from(
|
||||
parameters.map((param) => js.use(param.name))
|
||||
parameters.mappedBy((param) => js.use(param.name))
|
||||
.toList()),
|
||||
new js.ArrayInitializer.from(argNames)])]);
|
||||
js.Expression function =
|
||||
|
|
|
@ -80,10 +80,10 @@ $lazyInitializerLogic
|
|||
new js.VariableDeclaration(mangledName),
|
||||
new js.Fun(
|
||||
fieldNames
|
||||
.map((fieldName) => new js.Parameter(fieldName))
|
||||
.mappedBy((fieldName) => new js.Parameter(fieldName))
|
||||
.toList(),
|
||||
new js.Block(
|
||||
fieldNames.map((fieldName) =>
|
||||
fieldNames.mappedBy((fieldName) =>
|
||||
new js.ExpressionStatement(
|
||||
new js.Assignment(
|
||||
new js.This().dot(fieldName),
|
||||
|
|
|
@ -161,7 +161,7 @@ function(cls, desc) {
|
|||
compiler.findHelper(const SourceString('convertDartClosureToJS'));
|
||||
String closureConverter = backend.namer.isolateAccess(converter);
|
||||
Set<String> stubParameterNames = new Set<String>.from(
|
||||
stubParameters.map((param) => param.name));
|
||||
stubParameters.mappedBy((param) => param.name));
|
||||
parameters.forEachParameter((Element parameter) {
|
||||
String name = parameter.name.slowToString();
|
||||
// If [name] is not in [stubParameters], then the parameter is an optional
|
||||
|
@ -255,7 +255,7 @@ function(cls, desc) {
|
|||
js.use('Object').dot('prototype').dot(methodName).dot('call')
|
||||
.callWith(
|
||||
<js.Expression>[js.use('this')]..addAll(
|
||||
parameters.map((param) => js.use(param.name))))));
|
||||
parameters.mappedBy((param) => js.use(param.name))))));
|
||||
}
|
||||
|
||||
js.Block generateMethodBodyWithPrototypeCheckForElement(
|
||||
|
@ -406,7 +406,7 @@ function(cls, desc) {
|
|||
// [['Node', 'Text|HTMLElement|HTMLDivElement|...'], ...]
|
||||
js.Expression table =
|
||||
new js.ArrayInitializer.from(
|
||||
preorderDispatchClasses.map((cls) =>
|
||||
preorderDispatchClasses.mappedBy((cls) =>
|
||||
new js.ArrayInitializer.from([
|
||||
js.string(toNativeTag(cls)),
|
||||
tagDefns[cls]])));
|
||||
|
|
|
@ -35,7 +35,8 @@ class ConstantMap<V> implements Map<String, V> {
|
|||
}
|
||||
|
||||
Iterable<V> get values {
|
||||
return _keys.map((String key) => this[key]);
|
||||
// TODO(floitsch): don't wrap the map twice.
|
||||
return keys.mappedBy((String key) => this[key]);
|
||||
}
|
||||
|
||||
bool get isEmpty => length == 0;
|
||||
|
|
|
@ -84,10 +84,6 @@ class JSArray<E> implements List<E> {
|
|||
return IterableMixinWorkaround.forEach(this, f);
|
||||
}
|
||||
|
||||
Iterable map(f(E element)) {
|
||||
return IterableMixinWorkaround.map(this, f);
|
||||
}
|
||||
|
||||
List mappedBy(f(E element)) {
|
||||
return IterableMixinWorkaround.mappedByList(this, f);
|
||||
}
|
||||
|
@ -101,7 +97,7 @@ class JSArray<E> implements List<E> {
|
|||
return JS('String', "#.join(#)", list, separator);
|
||||
}
|
||||
|
||||
Iterable<E> take(int n) {
|
||||
List<E> take(int n) {
|
||||
return IterableMixinWorkaround.takeList(this, n);
|
||||
}
|
||||
|
||||
|
@ -109,7 +105,7 @@ class JSArray<E> implements List<E> {
|
|||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<E> skip(int n) {
|
||||
List<E> skip(int n) {
|
||||
return IterableMixinWorkaround.skipList(this, n);
|
||||
}
|
||||
|
||||
|
|
|
@ -1214,7 +1214,7 @@ abstract class SsaCodeGenerator implements HVisitor, HBlockInformationVisitor {
|
|||
if (handler == null) return;
|
||||
|
||||
// Map the instructions to strings.
|
||||
Iterable<Copy> copies = handler.copies.map((Copy copy) {
|
||||
Iterable<Copy> copies = handler.copies.mappedBy((Copy copy) {
|
||||
return new Copy(variableNames.getName(copy.source),
|
||||
variableNames.getName(copy.destination));
|
||||
});
|
||||
|
|
|
@ -357,7 +357,7 @@ class Dartdoc {
|
|||
}
|
||||
|
||||
startFile("apidoc.json");
|
||||
var libraries = _sortedLibraries.map(
|
||||
var libraries = _sortedLibraries.mappedBy(
|
||||
(lib) => new LibraryElement(lib.qualifiedName, lib))
|
||||
.toList();
|
||||
write(json_serializer.serialize(libraries));
|
||||
|
@ -1700,7 +1700,7 @@ class Dartdoc {
|
|||
final typeArgs = type.typeArguments;
|
||||
if (typeArgs.length > 0) {
|
||||
final args =
|
||||
Strings.join(typeArgs.map((arg) => typeName(arg)), ', ');
|
||||
Strings.join(typeArgs.mappedBy((arg) => typeName(arg)), ', ');
|
||||
return '${type.originalDeclaration.simpleName}<$args>';
|
||||
}
|
||||
|
||||
|
|
|
@ -129,17 +129,10 @@ abstract class Stream<T> {
|
|||
* Create a new stream that converts each element of this stream
|
||||
* to a new value using the [convert] function.
|
||||
*/
|
||||
Stream map(convert(T event)) {
|
||||
Stream mappedBy(convert(T event)) {
|
||||
return new _MapStream<T, dynamic>(this, convert);
|
||||
}
|
||||
|
||||
/**
|
||||
* Deprecated alias for [map].
|
||||
*
|
||||
* @deprecated
|
||||
*/
|
||||
Stream mappedBy(f(E element)) => map(f);
|
||||
|
||||
/**
|
||||
* Create a wrapper Stream that intercepts some errors from this stream.
|
||||
*
|
||||
|
|
|
@ -313,18 +313,12 @@ class IterableMixinWorkaround {
|
|||
return new WhereIterable(iterable, f);
|
||||
}
|
||||
|
||||
static Iterable map(Iterable iterable, f(var element)) {
|
||||
return new MappedIterable(iterable, f);
|
||||
}
|
||||
|
||||
static List mappedByList(List list, f(var element)) {
|
||||
// This is currently a List as well as an Iterable.
|
||||
return new MappedList(list, f);
|
||||
}
|
||||
|
||||
static Iterable takeList(List list, int n) {
|
||||
static List takeList(List list, int n) {
|
||||
// The generic type is currently lost. It will be fixed with mixins.
|
||||
// This is currently a List as well as an Iterable.
|
||||
return new ListView(list, 0, n);
|
||||
}
|
||||
|
||||
|
@ -333,9 +327,8 @@ class IterableMixinWorkaround {
|
|||
return new TakeWhileIterable(iterable, test);
|
||||
}
|
||||
|
||||
static Iterable skipList(List list, int n) {
|
||||
static List skipList(List list, int n) {
|
||||
// The generic type is currently lost. It will be fixed with mixins.
|
||||
// This is currently a List as well as an Iterable.
|
||||
return new ListView(list, n, null);
|
||||
}
|
||||
|
||||
|
@ -450,7 +443,7 @@ class Collections {
|
|||
=> IterableMixinWorkaround.mappedByList(list, f);
|
||||
|
||||
/** Deprecated. Use the same method in [IterableMixinWorkaround] instead.*/
|
||||
static Iterable takeList(List list, int n)
|
||||
static List takeList(List list, int n)
|
||||
=> IterableMixinWorkaround.takeList(list, n);
|
||||
|
||||
/** Deprecated. Use the same method in [IterableMixinWorkaround] instead.*/
|
||||
|
@ -458,7 +451,7 @@ class Collections {
|
|||
=> IterableMixinWorkaround.takeWhile(iterable, test);
|
||||
|
||||
/** Deprecated. Use the same method in [IterableMixinWorkaround] instead.*/
|
||||
static Iterable skipList(List list, int n)
|
||||
static List skipList(List list, int n)
|
||||
=> IterableMixinWorkaround.skipList(list, n);
|
||||
|
||||
/** Deprecated. Use the same method in [IterableMixinWorkaround] instead.*/
|
||||
|
|
|
@ -51,7 +51,7 @@ class Maps {
|
|||
}
|
||||
|
||||
static Iterable getValues(Map map) {
|
||||
return map.keys.map((key) => map[key]);
|
||||
return map.keys.mappedBy((key) => map[key]);
|
||||
}
|
||||
|
||||
static int length(Map map) => map.keys.length;
|
||||
|
|
|
@ -93,10 +93,6 @@ abstract class ListBase<E> extends Collection<E> implements List<E> {
|
|||
return result;
|
||||
}
|
||||
|
||||
Iterable map(f(E element)) {
|
||||
return new MappedIterable(this, f);
|
||||
}
|
||||
|
||||
List mappedBy(f(E element)) {
|
||||
return new MappedList(this, f);
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ abstract class Iterable<E> {
|
|||
* with that index to create the next value.
|
||||
*
|
||||
* As an [Iterable], [:new Iterable.generate(n, generator)):] is equivalent to
|
||||
* [:const [0, ..., n - 1].map(generator):]
|
||||
* [:const [0, ..., n - 1].mappedBy(generator):]
|
||||
*/
|
||||
factory Iterable.generate(int count, E generator(int index)) {
|
||||
return new _GeneratorIterable<E>(count, generator);
|
||||
|
@ -48,14 +48,7 @@ abstract class Iterable<E> {
|
|||
* multiple times over the the returned [Iterable] will invoke the supplied
|
||||
* function [f] multiple times on the same element.
|
||||
*/
|
||||
Iterable map(f(E element)) => new MappedIterable<E, dynamic>(this, f);
|
||||
|
||||
/**
|
||||
* Deprecated alias for [map].
|
||||
*
|
||||
* @deprecated
|
||||
*/
|
||||
Iterable mappedBy(f(E element)) => map(f);
|
||||
Iterable mappedBy(f(E element)) => new MappedIterable<E, dynamic>(this, f);
|
||||
|
||||
/**
|
||||
* Returns a lazy [Iterable] with all elements that satisfy the
|
||||
|
|
|
@ -190,4 +190,36 @@ abstract class List<E> implements Collection<E> {
|
|||
* [start] is greater than the length of the list.
|
||||
*/
|
||||
void insertRange(int start, int length, [E fill]);
|
||||
|
||||
/**
|
||||
* Returns a lazy unmodifiable [List] where each element [:e:] of [:this:] is
|
||||
* replaced by the result of [:f(e):].
|
||||
*
|
||||
* This method returns a view of the mapped elements. As long as the
|
||||
* returned [List] is not indexed or iterated over, the supplied function [f]
|
||||
* will not be invoked. The transformed elements will not be cached. Accessing
|
||||
* elements multiple times will invoke the supplied function [f] multiple
|
||||
* times.
|
||||
*/
|
||||
List mappedBy(f(E element));
|
||||
|
||||
/**
|
||||
* Returns an unmodifiable [List] that hides the first [n] elements.
|
||||
*
|
||||
* The returned list is a view backed by [:this:].
|
||||
*
|
||||
* While [:this:] has fewer than [n] elements, then the resulting [List]
|
||||
* will be empty.
|
||||
*/
|
||||
List<E> skip(int n);
|
||||
|
||||
/**
|
||||
* Returns an unmodifiable [List] with at most [n] elements.
|
||||
*
|
||||
* The returned list is a view backed by this.
|
||||
*
|
||||
* The returned [List] may contain fewer than [n] elements, while [:this:]
|
||||
* contains fewer than [n] elements.
|
||||
*/
|
||||
List<E> take(int n);
|
||||
}
|
||||
|
|
|
@ -7157,11 +7157,7 @@ class DomMimeTypeArray implements JavaScriptIndexingBehavior, List<DomMimeType>
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(DomMimeType element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(DomMimeType element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(DomMimeType element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<DomMimeType> where(bool f(DomMimeType element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -7175,13 +7171,13 @@ class DomMimeTypeArray implements JavaScriptIndexingBehavior, List<DomMimeType>
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<DomMimeType> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<DomMimeType> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<DomMimeType> takeWhile(bool test(DomMimeType value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<DomMimeType> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<DomMimeType> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<DomMimeType> skipWhile(bool test(DomMimeType value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -7410,11 +7406,7 @@ class DomPluginArray implements JavaScriptIndexingBehavior, List<DomPlugin> nati
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(DomPlugin element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(DomPlugin element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(DomPlugin element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<DomPlugin> where(bool f(DomPlugin element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -7428,13 +7420,13 @@ class DomPluginArray implements JavaScriptIndexingBehavior, List<DomPlugin> nati
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<DomPlugin> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<DomPlugin> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<DomPlugin> takeWhile(bool test(DomPlugin value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<DomPlugin> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<DomPlugin> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<DomPlugin> skipWhile(bool test(DomPlugin value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -7770,11 +7762,7 @@ class DomStringList implements JavaScriptIndexingBehavior, List<String> native "
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(String element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(String element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(String element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<String> where(bool f(String element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -7788,13 +7776,13 @@ class DomStringList implements JavaScriptIndexingBehavior, List<String> native "
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<String> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<String> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<String> takeWhile(bool test(String value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<String> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<String> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<String> skipWhile(bool test(String value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -8029,11 +8017,7 @@ class _ChildrenElementList implements List {
|
|||
return IterableMixinWorkaround.joinList(this, separator);
|
||||
}
|
||||
|
||||
Iterable map(f(Element element)) {
|
||||
return IterableMixinWorkaround.map(this, f);
|
||||
}
|
||||
|
||||
List mappedBy(f(ELement element)) {
|
||||
List mappedBy(f(Element element)) {
|
||||
return IterableMixinWorkaround.mappedByList(this, f);
|
||||
}
|
||||
|
||||
|
@ -8045,7 +8029,7 @@ class _ChildrenElementList implements List {
|
|||
return _element.$dom_firstElementChild == null;
|
||||
}
|
||||
|
||||
Iterable<Element> take(int n) {
|
||||
List<Element> take(int n) {
|
||||
return IterableMixinWorkaround.takeList(this, n);
|
||||
}
|
||||
|
||||
|
@ -8053,7 +8037,7 @@ class _ChildrenElementList implements List {
|
|||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<Element> skip(int n) {
|
||||
List<Element> skip(int n) {
|
||||
return IterableMixinWorkaround.skipList(this, n);
|
||||
}
|
||||
|
||||
|
@ -8246,11 +8230,7 @@ class _FrozenElementList implements List {
|
|||
return IterableMixinWorkaround.joinList(this, separator);
|
||||
}
|
||||
|
||||
Iterable map(f(Element element)) {
|
||||
return IterableMixinWorkaround.map(this, f);
|
||||
}
|
||||
|
||||
List mappedBy(f(ELement element)) {
|
||||
List mappedBy(f(Element element)) {
|
||||
return IterableMixinWorkaround.mappedByList(this, f);
|
||||
}
|
||||
|
||||
|
@ -8279,7 +8259,7 @@ class _FrozenElementList implements List {
|
|||
List<Element> toList() => new List<Element>.from(this);
|
||||
Set<Element> toSet() => new Set<Element>.from(this);
|
||||
|
||||
Iterable<Element> take(int n) {
|
||||
List<Element> take(int n) {
|
||||
return IterableMixinWorkaround.takeList(this, n);
|
||||
}
|
||||
|
||||
|
@ -8287,7 +8267,7 @@ class _FrozenElementList implements List {
|
|||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<Element> skip(int n) {
|
||||
List<Element> skip(int n) {
|
||||
return IterableMixinWorkaround.skipList(this, n);
|
||||
}
|
||||
|
||||
|
@ -10708,11 +10688,7 @@ class FileList implements JavaScriptIndexingBehavior, List<File> native "*FileLi
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(File element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(File element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(File element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<File> where(bool f(File element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -10726,13 +10702,13 @@ class FileList implements JavaScriptIndexingBehavior, List<File> native "*FileLi
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<File> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<File> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<File> takeWhile(bool test(File value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<File> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<File> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<File> skipWhile(bool test(File value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -11315,11 +11291,7 @@ class Float32Array extends ArrayBufferView implements JavaScriptIndexingBehavior
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(num element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(num element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(num element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<num> where(bool f(num element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -11333,13 +11305,13 @@ class Float32Array extends ArrayBufferView implements JavaScriptIndexingBehavior
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<num> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<num> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<num> takeWhile(bool test(num value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<num> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<num> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<num> skipWhile(bool test(num value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -11525,11 +11497,7 @@ class Float64Array extends ArrayBufferView implements JavaScriptIndexingBehavior
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(num element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(num element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(num element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<num> where(bool f(num element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -11543,13 +11511,13 @@ class Float64Array extends ArrayBufferView implements JavaScriptIndexingBehavior
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<num> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<num> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<num> takeWhile(bool test(num value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<num> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<num> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<num> skipWhile(bool test(num value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -12030,11 +11998,7 @@ class HtmlAllCollection implements JavaScriptIndexingBehavior, List<Node> native
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(Node element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(Node element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(Node element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<Node> where(bool f(Node element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -12048,13 +12012,13 @@ class HtmlAllCollection implements JavaScriptIndexingBehavior, List<Node> native
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<Node> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<Node> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<Node> takeWhile(bool test(Node value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<Node> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<Node> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<Node> skipWhile(bool test(Node value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -12237,11 +12201,7 @@ class HtmlCollection implements JavaScriptIndexingBehavior, List<Node> native "*
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(Node element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(Node element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(Node element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<Node> where(bool f(Node element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -12255,13 +12215,13 @@ class HtmlCollection implements JavaScriptIndexingBehavior, List<Node> native "*
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<Node> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<Node> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<Node> takeWhile(bool test(Node value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<Node> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<Node> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<Node> skipWhile(bool test(Node value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -14039,11 +13999,7 @@ class Int16Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(int element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(int element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(int element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<int> where(bool f(int element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -14057,13 +14013,13 @@ class Int16Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<int> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<int> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<int> takeWhile(bool test(int value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<int> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<int> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<int> skipWhile(bool test(int value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -14249,11 +14205,7 @@ class Int32Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(int element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(int element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(int element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<int> where(bool f(int element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -14267,13 +14219,13 @@ class Int32Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<int> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<int> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<int> takeWhile(bool test(int value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<int> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<int> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<int> skipWhile(bool test(int value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -14459,11 +14411,7 @@ class Int8Array extends ArrayBufferView implements JavaScriptIndexingBehavior, L
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(int element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(int element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(int element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<int> where(bool f(int element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -14477,13 +14425,13 @@ class Int8Array extends ArrayBufferView implements JavaScriptIndexingBehavior, L
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<int> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<int> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<int> takeWhile(bool test(int value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<int> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<int> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<int> skipWhile(bool test(int value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -16731,11 +16679,7 @@ class NamedNodeMap implements JavaScriptIndexingBehavior, List<Node> native "*Na
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(Node element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(Node element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(Node element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<Node> where(bool f(Node element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -16749,13 +16693,13 @@ class NamedNodeMap implements JavaScriptIndexingBehavior, List<Node> native "*Na
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<Node> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<Node> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<Node> takeWhile(bool test(Node value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<Node> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<Node> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<Node> skipWhile(bool test(Node value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -17201,10 +17145,6 @@ class _ChildNodeListLazy implements List {
|
|||
return IterableMixinWorkaround.joinList(this, separator);
|
||||
}
|
||||
|
||||
Iterable map(f(Node element)) {
|
||||
return IterableMixinWorkaround.map(this, f);
|
||||
}
|
||||
|
||||
List mappedBy(f(Node element)) {
|
||||
return IterableMixinWorkaround.mappedByList(this, f);
|
||||
}
|
||||
|
@ -17224,7 +17164,7 @@ class _ChildNodeListLazy implements List {
|
|||
|
||||
// From List<Node>:
|
||||
|
||||
Iterable<Node> take(int n) {
|
||||
List<Node> take(int n) {
|
||||
return IterableMixinWorkaround.takeList(this, n);
|
||||
}
|
||||
|
||||
|
@ -17232,7 +17172,7 @@ class _ChildNodeListLazy implements List {
|
|||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<Node> skip(int n) {
|
||||
List<Node> skip(int n) {
|
||||
return IterableMixinWorkaround.skipList(this, n);
|
||||
}
|
||||
|
||||
|
@ -17593,11 +17533,7 @@ class NodeList implements JavaScriptIndexingBehavior, List<Node> native "*NodeLi
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(Node element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(Node element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(Node element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<Node> where(bool f(Node element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -17611,13 +17547,13 @@ class NodeList implements JavaScriptIndexingBehavior, List<Node> native "*NodeLi
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<Node> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<Node> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<Node> takeWhile(bool test(Node value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<Node> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<Node> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<Node> skipWhile(bool test(Node value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -19967,11 +19903,7 @@ class SourceBufferList extends EventTarget implements JavaScriptIndexingBehavior
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(SourceBuffer element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(SourceBuffer element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(SourceBuffer element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<SourceBuffer> where(bool f(SourceBuffer element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -19985,13 +19917,13 @@ class SourceBufferList extends EventTarget implements JavaScriptIndexingBehavior
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<SourceBuffer> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<SourceBuffer> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<SourceBuffer> takeWhile(bool test(SourceBuffer value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<SourceBuffer> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<SourceBuffer> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<SourceBuffer> skipWhile(bool test(SourceBuffer value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -20243,11 +20175,7 @@ class SpeechGrammarList implements JavaScriptIndexingBehavior, List<SpeechGramma
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(SpeechGrammar element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(SpeechGrammar element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(SpeechGrammar element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<SpeechGrammar> where(bool f(SpeechGrammar element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -20261,13 +20189,13 @@ class SpeechGrammarList implements JavaScriptIndexingBehavior, List<SpeechGramma
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<SpeechGrammar> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<SpeechGrammar> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<SpeechGrammar> takeWhile(bool test(SpeechGrammar value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<SpeechGrammar> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<SpeechGrammar> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<SpeechGrammar> skipWhile(bool test(SpeechGrammar value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -20857,11 +20785,7 @@ class SqlResultSetRowList implements JavaScriptIndexingBehavior, List<Map> nativ
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(Map element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(Map element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(Map element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<Map> where(bool f(Map element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -20875,13 +20799,13 @@ class SqlResultSetRowList implements JavaScriptIndexingBehavior, List<Map> nativ
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<Map> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<Map> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<Map> takeWhile(bool test(Map value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<Map> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<Map> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<Map> skipWhile(bool test(Map value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -21939,11 +21863,7 @@ class TextTrackCueList implements List<TextTrackCue>, JavaScriptIndexingBehavior
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(TextTrackCue element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(TextTrackCue element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(TextTrackCue element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<TextTrackCue> where(bool f(TextTrackCue element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -21957,13 +21877,13 @@ class TextTrackCueList implements List<TextTrackCue>, JavaScriptIndexingBehavior
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<TextTrackCue> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<TextTrackCue> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<TextTrackCue> takeWhile(bool test(TextTrackCue value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<TextTrackCue> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<TextTrackCue> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<TextTrackCue> skipWhile(bool test(TextTrackCue value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -22150,11 +22070,7 @@ class TextTrackList extends EventTarget implements JavaScriptIndexingBehavior, L
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(TextTrack element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(TextTrack element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(TextTrack element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<TextTrack> where(bool f(TextTrack element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -22168,13 +22084,13 @@ class TextTrackList extends EventTarget implements JavaScriptIndexingBehavior, L
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<TextTrack> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<TextTrack> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<TextTrack> takeWhile(bool test(TextTrack value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<TextTrack> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<TextTrack> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<TextTrack> skipWhile(bool test(TextTrack value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -22547,11 +22463,7 @@ class TouchList implements JavaScriptIndexingBehavior, List<Touch> native "*Touc
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(Touch element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(Touch element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(Touch element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<Touch> where(bool f(Touch element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -22565,13 +22477,13 @@ class TouchList implements JavaScriptIndexingBehavior, List<Touch> native "*Touc
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<Touch> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<Touch> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<Touch> takeWhile(bool test(Touch value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<Touch> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<Touch> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<Touch> skipWhile(bool test(Touch value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -22980,11 +22892,7 @@ class Uint16Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(int element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(int element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(int element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<int> where(bool f(int element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -22998,13 +22906,13 @@ class Uint16Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<int> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<int> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<int> takeWhile(bool test(int value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<int> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<int> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<int> skipWhile(bool test(int value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -23190,11 +23098,7 @@ class Uint32Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(int element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(int element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(int element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<int> where(bool f(int element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -23208,13 +23112,13 @@ class Uint32Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<int> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<int> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<int> takeWhile(bool test(int value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<int> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<int> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<int> skipWhile(bool test(int value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -23400,11 +23304,7 @@ class Uint8Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(int element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(int element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(int element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<int> where(bool f(int element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -23418,13 +23318,13 @@ class Uint8Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<int> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<int> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<int> takeWhile(bool test(int value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<int> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<int> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<int> skipWhile(bool test(int value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -23607,11 +23507,7 @@ class Uint8ClampedArray extends Uint8Array implements JavaScriptIndexingBehavior
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(int element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(int element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(int element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<int> where(bool f(int element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -23625,13 +23521,13 @@ class Uint8ClampedArray extends Uint8Array implements JavaScriptIndexingBehavior
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<int> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<int> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<int> takeWhile(bool test(int value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<int> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<int> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<int> skipWhile(bool test(int value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -27472,11 +27368,7 @@ class _ClientRectList implements JavaScriptIndexingBehavior, List<ClientRect> na
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(ClientRect element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(ClientRect element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(ClientRect element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<ClientRect> where(bool f(ClientRect element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -27490,13 +27382,13 @@ class _ClientRectList implements JavaScriptIndexingBehavior, List<ClientRect> na
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<ClientRect> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<ClientRect> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<ClientRect> takeWhile(bool test(ClientRect value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<ClientRect> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<ClientRect> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<ClientRect> skipWhile(bool test(ClientRect value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -27669,11 +27561,7 @@ class _CssRuleList implements JavaScriptIndexingBehavior, List<CssRule> native "
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(CssRule element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(CssRule element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(CssRule element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<CssRule> where(bool f(CssRule element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -27687,13 +27575,13 @@ class _CssRuleList implements JavaScriptIndexingBehavior, List<CssRule> native "
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<CssRule> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<CssRule> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<CssRule> takeWhile(bool test(CssRule value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<CssRule> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<CssRule> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<CssRule> skipWhile(bool test(CssRule value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -27866,11 +27754,7 @@ class _CssValueList extends CssValue implements List<CssValue>, JavaScriptIndexi
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(CssValue element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(CssValue element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(CssValue element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<CssValue> where(bool f(CssValue element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -27884,13 +27768,13 @@ class _CssValueList extends CssValue implements List<CssValue>, JavaScriptIndexi
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<CssValue> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<CssValue> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<CssValue> takeWhile(bool test(CssValue value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<CssValue> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<CssValue> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<CssValue> skipWhile(bool test(CssValue value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -28072,11 +27956,7 @@ class _EntryArray implements JavaScriptIndexingBehavior, List<Entry> native "*En
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(Entry element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(Entry element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(Entry element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<Entry> where(bool f(Entry element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -28090,13 +27970,13 @@ class _EntryArray implements JavaScriptIndexingBehavior, List<Entry> native "*En
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<Entry> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<Entry> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<Entry> takeWhile(bool test(Entry value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<Entry> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<Entry> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<Entry> skipWhile(bool test(Entry value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -28269,11 +28149,7 @@ class _EntryArraySync implements JavaScriptIndexingBehavior, List<EntrySync> nat
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(EntrySync element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(EntrySync element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(EntrySync element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<EntrySync> where(bool f(EntrySync element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -28287,13 +28163,13 @@ class _EntryArraySync implements JavaScriptIndexingBehavior, List<EntrySync> nat
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<EntrySync> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<EntrySync> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<EntrySync> takeWhile(bool test(EntrySync value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<EntrySync> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<EntrySync> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<EntrySync> skipWhile(bool test(EntrySync value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -28545,11 +28421,7 @@ class _GamepadList implements JavaScriptIndexingBehavior, List<Gamepad> native "
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(Gamepad element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(Gamepad element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(Gamepad element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<Gamepad> where(bool f(Gamepad element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -28563,13 +28435,13 @@ class _GamepadList implements JavaScriptIndexingBehavior, List<Gamepad> native "
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<Gamepad> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<Gamepad> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<Gamepad> takeWhile(bool test(Gamepad value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<Gamepad> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<Gamepad> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<Gamepad> skipWhile(bool test(Gamepad value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -28751,11 +28623,7 @@ class _MediaStreamList implements JavaScriptIndexingBehavior, List<MediaStream>
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(MediaStream element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(MediaStream element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(MediaStream element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<MediaStream> where(bool f(MediaStream element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -28769,13 +28637,13 @@ class _MediaStreamList implements JavaScriptIndexingBehavior, List<MediaStream>
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<MediaStream> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<MediaStream> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<MediaStream> takeWhile(bool test(MediaStream value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<MediaStream> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<MediaStream> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<MediaStream> skipWhile(bool test(MediaStream value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -28948,11 +28816,7 @@ class _SpeechInputResultList implements JavaScriptIndexingBehavior, List<SpeechI
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(SpeechInputResult element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(SpeechInputResult element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(SpeechInputResult element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<SpeechInputResult> where(bool f(SpeechInputResult element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -28966,13 +28830,13 @@ class _SpeechInputResultList implements JavaScriptIndexingBehavior, List<SpeechI
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<SpeechInputResult> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<SpeechInputResult> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<SpeechInputResult> takeWhile(bool test(SpeechInputResult value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<SpeechInputResult> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<SpeechInputResult> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<SpeechInputResult> skipWhile(bool test(SpeechInputResult value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -29145,11 +29009,7 @@ class _SpeechRecognitionResultList implements JavaScriptIndexingBehavior, List<S
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(SpeechRecognitionResult element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(SpeechRecognitionResult element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(SpeechRecognitionResult element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<SpeechRecognitionResult> where(bool f(SpeechRecognitionResult element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -29163,13 +29023,13 @@ class _SpeechRecognitionResultList implements JavaScriptIndexingBehavior, List<S
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<SpeechRecognitionResult> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<SpeechRecognitionResult> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<SpeechRecognitionResult> takeWhile(bool test(SpeechRecognitionResult value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<SpeechRecognitionResult> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<SpeechRecognitionResult> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<SpeechRecognitionResult> skipWhile(bool test(SpeechRecognitionResult value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -29342,11 +29202,7 @@ class _StyleSheetList implements JavaScriptIndexingBehavior, List<StyleSheet> na
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(StyleSheet element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(StyleSheet element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(StyleSheet element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<StyleSheet> where(bool f(StyleSheet element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -29360,13 +29216,13 @@ class _StyleSheetList implements JavaScriptIndexingBehavior, List<StyleSheet> na
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<StyleSheet> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<StyleSheet> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<StyleSheet> takeWhile(bool test(StyleSheet value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<StyleSheet> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<StyleSheet> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<StyleSheet> skipWhile(bool test(StyleSheet value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -29893,8 +29749,6 @@ abstract class CssClassSet implements Set<String> {
|
|||
|
||||
String join([String separator]) => readClasses().join(separator);
|
||||
|
||||
Iterable map(f(String element)) => readClasses().map(f);
|
||||
|
||||
Iterable mappedBy(f(String element)) => readClasses().mappedBy(f);
|
||||
|
||||
Iterable<String> where(bool f(String element)) => readClasses().where(f);
|
||||
|
@ -29992,7 +29846,7 @@ abstract class CssClassSet implements Set<String> {
|
|||
* Helper method used to modify the set of css classes on this element.
|
||||
*
|
||||
* f - callback with:
|
||||
* s - a Set of all the css class name currently on this element.
|
||||
* s - a Set of all the css class name currently on this element.
|
||||
*
|
||||
* After f returns, the modified set is written to the
|
||||
* className property of this element.
|
||||
|
|
|
@ -7880,11 +7880,7 @@ class DomMimeTypeArray extends NativeFieldWrapperClass1 implements List<DomMimeT
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(DomMimeType element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(DomMimeType element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(DomMimeType element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<DomMimeType> where(bool f(DomMimeType element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -7898,13 +7894,13 @@ class DomMimeTypeArray extends NativeFieldWrapperClass1 implements List<DomMimeT
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<DomMimeType> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<DomMimeType> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<DomMimeType> takeWhile(bool test(DomMimeType value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<DomMimeType> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<DomMimeType> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<DomMimeType> skipWhile(bool test(DomMimeType value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -8147,11 +8143,7 @@ class DomPluginArray extends NativeFieldWrapperClass1 implements List<DomPlugin>
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(DomPlugin element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(DomPlugin element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(DomPlugin element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<DomPlugin> where(bool f(DomPlugin element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -8165,13 +8157,13 @@ class DomPluginArray extends NativeFieldWrapperClass1 implements List<DomPlugin>
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<DomPlugin> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<DomPlugin> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<DomPlugin> takeWhile(bool test(DomPlugin value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<DomPlugin> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<DomPlugin> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<DomPlugin> skipWhile(bool test(DomPlugin value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -8533,11 +8525,7 @@ class DomStringList extends NativeFieldWrapperClass1 implements List<String> {
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(String element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(String element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(String element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<String> where(bool f(String element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -8551,13 +8539,13 @@ class DomStringList extends NativeFieldWrapperClass1 implements List<String> {
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<String> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<String> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<String> takeWhile(bool test(String value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<String> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<String> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<String> skipWhile(bool test(String value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -8813,11 +8801,7 @@ class _ChildrenElementList implements List {
|
|||
return IterableMixinWorkaround.joinList(this, separator);
|
||||
}
|
||||
|
||||
Iterable map(f(Element element)) {
|
||||
return IterableMixinWorkaround.map(this, f);
|
||||
}
|
||||
|
||||
List mappedBy(f(ELement element)) {
|
||||
List mappedBy(f(Element element)) {
|
||||
return IterableMixinWorkaround.mappedByList(this, f);
|
||||
}
|
||||
|
||||
|
@ -8829,7 +8813,7 @@ class _ChildrenElementList implements List {
|
|||
return _element.$dom_firstElementChild == null;
|
||||
}
|
||||
|
||||
Iterable<Element> take(int n) {
|
||||
List<Element> take(int n) {
|
||||
return IterableMixinWorkaround.takeList(this, n);
|
||||
}
|
||||
|
||||
|
@ -8837,7 +8821,7 @@ class _ChildrenElementList implements List {
|
|||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<Element> skip(int n) {
|
||||
List<Element> skip(int n) {
|
||||
return IterableMixinWorkaround.skipList(this, n);
|
||||
}
|
||||
|
||||
|
@ -9030,11 +9014,7 @@ class _FrozenElementList implements List {
|
|||
return IterableMixinWorkaround.joinList(this, separator);
|
||||
}
|
||||
|
||||
Iterable map(f(Element element)) {
|
||||
return IterableMixinWorkaround.map(this, f);
|
||||
}
|
||||
|
||||
List mappedBy(f(ELement element)) {
|
||||
List mappedBy(f(Element element)) {
|
||||
return IterableMixinWorkaround.mappedByList(this, f);
|
||||
}
|
||||
|
||||
|
@ -9063,7 +9043,7 @@ class _FrozenElementList implements List {
|
|||
List<Element> toList() => new List<Element>.from(this);
|
||||
Set<Element> toSet() => new Set<Element>.from(this);
|
||||
|
||||
Iterable<Element> take(int n) {
|
||||
List<Element> take(int n) {
|
||||
return IterableMixinWorkaround.takeList(this, n);
|
||||
}
|
||||
|
||||
|
@ -9071,7 +9051,7 @@ class _FrozenElementList implements List {
|
|||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<Element> skip(int n) {
|
||||
List<Element> skip(int n) {
|
||||
return IterableMixinWorkaround.skipList(this, n);
|
||||
}
|
||||
|
||||
|
@ -11460,11 +11440,7 @@ class FileList extends NativeFieldWrapperClass1 implements List<File> {
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(File element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(File element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(File element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<File> where(bool f(File element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -11478,13 +11454,13 @@ class FileList extends NativeFieldWrapperClass1 implements List<File> {
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<File> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<File> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<File> takeWhile(bool test(File value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<File> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<File> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<File> skipWhile(bool test(File value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -12121,11 +12097,7 @@ class Float32Array extends ArrayBufferView implements List<num> {
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(num element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(num element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(num element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<num> where(bool f(num element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -12139,13 +12111,13 @@ class Float32Array extends ArrayBufferView implements List<num> {
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<num> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<num> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<num> takeWhile(bool test(num value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<num> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<num> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<num> skipWhile(bool test(num value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -12350,11 +12322,7 @@ class Float64Array extends ArrayBufferView implements List<num> {
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(num element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(num element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(num element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<num> where(bool f(num element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -12368,13 +12336,13 @@ class Float64Array extends ArrayBufferView implements List<num> {
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<num> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<num> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<num> takeWhile(bool test(num value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<num> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<num> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<num> skipWhile(bool test(num value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -12926,11 +12894,7 @@ class HtmlAllCollection extends NativeFieldWrapperClass1 implements List<Node> {
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(Node element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(Node element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(Node element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<Node> where(bool f(Node element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -12944,13 +12908,13 @@ class HtmlAllCollection extends NativeFieldWrapperClass1 implements List<Node> {
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<Node> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<Node> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<Node> takeWhile(bool test(Node value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<Node> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<Node> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<Node> skipWhile(bool test(Node value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -13135,11 +13099,7 @@ class HtmlCollection extends NativeFieldWrapperClass1 implements List<Node> {
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(Node element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(Node element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(Node element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<Node> where(bool f(Node element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -13153,13 +13113,13 @@ class HtmlCollection extends NativeFieldWrapperClass1 implements List<Node> {
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<Node> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<Node> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<Node> takeWhile(bool test(Node value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<Node> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<Node> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<Node> skipWhile(bool test(Node value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -15257,11 +15217,7 @@ class Int16Array extends ArrayBufferView implements List<int> {
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(int element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(int element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(int element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<int> where(bool f(int element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -15275,13 +15231,13 @@ class Int16Array extends ArrayBufferView implements List<int> {
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<int> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<int> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<int> takeWhile(bool test(int value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<int> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<int> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<int> skipWhile(bool test(int value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -15486,11 +15442,7 @@ class Int32Array extends ArrayBufferView implements List<int> {
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(int element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(int element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(int element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<int> where(bool f(int element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -15504,13 +15456,13 @@ class Int32Array extends ArrayBufferView implements List<int> {
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<int> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<int> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<int> takeWhile(bool test(int value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<int> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<int> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<int> skipWhile(bool test(int value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -15715,11 +15667,7 @@ class Int8Array extends ArrayBufferView implements List<int> {
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(int element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(int element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(int element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<int> where(bool f(int element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -15733,13 +15681,13 @@ class Int8Array extends ArrayBufferView implements List<int> {
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<int> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<int> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<int> takeWhile(bool test(int value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<int> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<int> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<int> skipWhile(bool test(int value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -18303,11 +18251,7 @@ class NamedNodeMap extends NativeFieldWrapperClass1 implements List<Node> {
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(Node element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(Node element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(Node element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<Node> where(bool f(Node element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -18321,13 +18265,13 @@ class NamedNodeMap extends NativeFieldWrapperClass1 implements List<Node> {
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<Node> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<Node> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<Node> takeWhile(bool test(Node value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<Node> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<Node> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<Node> skipWhile(bool test(Node value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -18770,10 +18714,6 @@ class _ChildNodeListLazy implements List {
|
|||
return IterableMixinWorkaround.joinList(this, separator);
|
||||
}
|
||||
|
||||
Iterable map(f(Node element)) {
|
||||
return IterableMixinWorkaround.map(this, f);
|
||||
}
|
||||
|
||||
List mappedBy(f(Node element)) {
|
||||
return IterableMixinWorkaround.mappedByList(this, f);
|
||||
}
|
||||
|
@ -18793,7 +18733,7 @@ class _ChildNodeListLazy implements List {
|
|||
|
||||
// From List<Node>:
|
||||
|
||||
Iterable<Node> take(int n) {
|
||||
List<Node> take(int n) {
|
||||
return IterableMixinWorkaround.takeList(this, n);
|
||||
}
|
||||
|
||||
|
@ -18801,7 +18741,7 @@ class _ChildNodeListLazy implements List {
|
|||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<Node> skip(int n) {
|
||||
List<Node> skip(int n) {
|
||||
return IterableMixinWorkaround.skipList(this, n);
|
||||
}
|
||||
|
||||
|
@ -19159,11 +19099,7 @@ class NodeList extends NativeFieldWrapperClass1 implements List<Node> {
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(Node element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(Node element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(Node element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<Node> where(bool f(Node element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -19177,13 +19113,13 @@ class NodeList extends NativeFieldWrapperClass1 implements List<Node> {
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<Node> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<Node> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<Node> takeWhile(bool test(Node value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<Node> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<Node> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<Node> skipWhile(bool test(Node value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -21859,11 +21795,7 @@ class SourceBufferList extends EventTarget implements List<SourceBuffer> {
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(SourceBuffer element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(SourceBuffer element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(SourceBuffer element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<SourceBuffer> where(bool f(SourceBuffer element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -21877,13 +21809,13 @@ class SourceBufferList extends EventTarget implements List<SourceBuffer> {
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<SourceBuffer> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<SourceBuffer> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<SourceBuffer> takeWhile(bool test(SourceBuffer value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<SourceBuffer> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<SourceBuffer> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<SourceBuffer> skipWhile(bool test(SourceBuffer value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -22173,11 +22105,7 @@ class SpeechGrammarList extends NativeFieldWrapperClass1 implements List<SpeechG
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(SpeechGrammar element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(SpeechGrammar element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(SpeechGrammar element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<SpeechGrammar> where(bool f(SpeechGrammar element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -22191,13 +22119,13 @@ class SpeechGrammarList extends NativeFieldWrapperClass1 implements List<SpeechG
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<SpeechGrammar> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<SpeechGrammar> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<SpeechGrammar> takeWhile(bool test(SpeechGrammar value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<SpeechGrammar> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<SpeechGrammar> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<SpeechGrammar> skipWhile(bool test(SpeechGrammar value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -22873,11 +22801,7 @@ class SqlResultSetRowList extends NativeFieldWrapperClass1 implements List<Map>
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(Map element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(Map element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(Map element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<Map> where(bool f(Map element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -22891,13 +22815,13 @@ class SqlResultSetRowList extends NativeFieldWrapperClass1 implements List<Map>
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<Map> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<Map> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<Map> takeWhile(bool test(Map value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<Map> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<Map> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<Map> skipWhile(bool test(Map value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -24194,11 +24118,7 @@ class TextTrackCueList extends NativeFieldWrapperClass1 implements List<TextTrac
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(TextTrackCue element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(TextTrackCue element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(TextTrackCue element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<TextTrackCue> where(bool f(TextTrackCue element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -24212,13 +24132,13 @@ class TextTrackCueList extends NativeFieldWrapperClass1 implements List<TextTrac
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<TextTrackCue> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<TextTrackCue> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<TextTrackCue> takeWhile(bool test(TextTrackCue value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<TextTrackCue> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<TextTrackCue> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<TextTrackCue> skipWhile(bool test(TextTrackCue value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -24409,11 +24329,7 @@ class TextTrackList extends EventTarget implements List<TextTrack> {
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(TextTrack element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(TextTrack element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(TextTrack element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<TextTrack> where(bool f(TextTrack element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -24427,13 +24343,13 @@ class TextTrackList extends EventTarget implements List<TextTrack> {
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<TextTrack> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<TextTrack> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<TextTrack> takeWhile(bool test(TextTrack value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<TextTrack> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<TextTrack> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<TextTrack> skipWhile(bool test(TextTrack value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -24816,11 +24732,7 @@ class TouchList extends NativeFieldWrapperClass1 implements List<Touch> {
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(Touch element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(Touch element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(Touch element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<Touch> where(bool f(Touch element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -24834,13 +24746,13 @@ class TouchList extends NativeFieldWrapperClass1 implements List<Touch> {
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<Touch> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<Touch> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<Touch> takeWhile(bool test(Touch value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<Touch> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<Touch> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<Touch> skipWhile(bool test(Touch value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -25295,11 +25207,7 @@ class Uint16Array extends ArrayBufferView implements List<int> {
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(int element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(int element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(int element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<int> where(bool f(int element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -25313,13 +25221,13 @@ class Uint16Array extends ArrayBufferView implements List<int> {
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<int> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<int> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<int> takeWhile(bool test(int value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<int> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<int> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<int> skipWhile(bool test(int value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -25524,11 +25432,7 @@ class Uint32Array extends ArrayBufferView implements List<int> {
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(int element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(int element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(int element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<int> where(bool f(int element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -25542,13 +25446,13 @@ class Uint32Array extends ArrayBufferView implements List<int> {
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<int> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<int> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<int> takeWhile(bool test(int value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<int> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<int> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<int> skipWhile(bool test(int value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -25753,11 +25657,7 @@ class Uint8Array extends ArrayBufferView implements List<int> {
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(int element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(int element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(int element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<int> where(bool f(int element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -25771,13 +25671,13 @@ class Uint8Array extends ArrayBufferView implements List<int> {
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<int> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<int> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<int> takeWhile(bool test(int value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<int> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<int> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<int> skipWhile(bool test(int value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -25980,11 +25880,7 @@ class Uint8ClampedArray extends Uint8Array implements List<int> {
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(int element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(int element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(int element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<int> where(bool f(int element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -25998,13 +25894,13 @@ class Uint8ClampedArray extends Uint8Array implements List<int> {
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<int> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<int> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<int> takeWhile(bool test(int value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<int> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<int> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<int> skipWhile(bool test(int value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -29855,11 +29751,7 @@ class _ClientRectList extends NativeFieldWrapperClass1 implements List<ClientRec
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(ClientRect element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(ClientRect element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(ClientRect element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<ClientRect> where(bool f(ClientRect element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -29873,13 +29765,13 @@ class _ClientRectList extends NativeFieldWrapperClass1 implements List<ClientRec
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<ClientRect> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<ClientRect> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<ClientRect> takeWhile(bool test(ClientRect value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<ClientRect> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<ClientRect> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<ClientRect> skipWhile(bool test(ClientRect value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -30056,11 +29948,7 @@ class _CssRuleList extends NativeFieldWrapperClass1 implements List<CssRule> {
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(CssRule element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(CssRule element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(CssRule element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<CssRule> where(bool f(CssRule element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -30074,13 +29962,13 @@ class _CssRuleList extends NativeFieldWrapperClass1 implements List<CssRule> {
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<CssRule> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<CssRule> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<CssRule> takeWhile(bool test(CssRule value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<CssRule> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<CssRule> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<CssRule> skipWhile(bool test(CssRule value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -30257,11 +30145,7 @@ class _CssValueList extends CssValue implements List<CssValue> {
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(CssValue element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(CssValue element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(CssValue element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<CssValue> where(bool f(CssValue element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -30275,13 +30159,13 @@ class _CssValueList extends CssValue implements List<CssValue> {
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<CssValue> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<CssValue> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<CssValue> takeWhile(bool test(CssValue value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<CssValue> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<CssValue> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<CssValue> skipWhile(bool test(CssValue value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -30608,11 +30492,7 @@ class _EntryArray extends NativeFieldWrapperClass1 implements List<Entry> {
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(Entry element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(Entry element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(Entry element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<Entry> where(bool f(Entry element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -30626,13 +30506,13 @@ class _EntryArray extends NativeFieldWrapperClass1 implements List<Entry> {
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<Entry> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<Entry> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<Entry> takeWhile(bool test(Entry value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<Entry> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<Entry> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<Entry> skipWhile(bool test(Entry value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -30809,11 +30689,7 @@ class _EntryArraySync extends NativeFieldWrapperClass1 implements List<EntrySync
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(EntrySync element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(EntrySync element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(EntrySync element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<EntrySync> where(bool f(EntrySync element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -30827,13 +30703,13 @@ class _EntryArraySync extends NativeFieldWrapperClass1 implements List<EntrySync
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<EntrySync> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<EntrySync> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<EntrySync> takeWhile(bool test(EntrySync value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<EntrySync> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<EntrySync> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<EntrySync> skipWhile(bool test(EntrySync value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -31101,11 +30977,7 @@ class _GamepadList extends NativeFieldWrapperClass1 implements List<Gamepad> {
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(Gamepad element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(Gamepad element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(Gamepad element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<Gamepad> where(bool f(Gamepad element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -31119,13 +30991,13 @@ class _GamepadList extends NativeFieldWrapperClass1 implements List<Gamepad> {
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<Gamepad> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<Gamepad> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<Gamepad> takeWhile(bool test(Gamepad value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<Gamepad> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<Gamepad> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<Gamepad> skipWhile(bool test(Gamepad value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -31315,11 +31187,7 @@ class _MediaStreamList extends NativeFieldWrapperClass1 implements List<MediaStr
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(MediaStream element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(MediaStream element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(MediaStream element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<MediaStream> where(bool f(MediaStream element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -31333,13 +31201,13 @@ class _MediaStreamList extends NativeFieldWrapperClass1 implements List<MediaStr
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<MediaStream> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<MediaStream> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<MediaStream> takeWhile(bool test(MediaStream value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<MediaStream> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<MediaStream> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<MediaStream> skipWhile(bool test(MediaStream value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -31516,11 +31384,7 @@ class _SpeechInputResultList extends NativeFieldWrapperClass1 implements List<Sp
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(SpeechInputResult element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(SpeechInputResult element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(SpeechInputResult element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<SpeechInputResult> where(bool f(SpeechInputResult element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -31534,13 +31398,13 @@ class _SpeechInputResultList extends NativeFieldWrapperClass1 implements List<Sp
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<SpeechInputResult> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<SpeechInputResult> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<SpeechInputResult> takeWhile(bool test(SpeechInputResult value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<SpeechInputResult> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<SpeechInputResult> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<SpeechInputResult> skipWhile(bool test(SpeechInputResult value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -31717,11 +31581,7 @@ class _SpeechRecognitionResultList extends NativeFieldWrapperClass1 implements L
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(SpeechRecognitionResult element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(SpeechRecognitionResult element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(SpeechRecognitionResult element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<SpeechRecognitionResult> where(bool f(SpeechRecognitionResult element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -31735,13 +31595,13 @@ class _SpeechRecognitionResultList extends NativeFieldWrapperClass1 implements L
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<SpeechRecognitionResult> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<SpeechRecognitionResult> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<SpeechRecognitionResult> takeWhile(bool test(SpeechRecognitionResult value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<SpeechRecognitionResult> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<SpeechRecognitionResult> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<SpeechRecognitionResult> skipWhile(bool test(SpeechRecognitionResult value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -31918,11 +31778,7 @@ class _StyleSheetList extends NativeFieldWrapperClass1 implements List<StyleShee
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(StyleSheet element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(StyleSheet element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(StyleSheet element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<StyleSheet> where(bool f(StyleSheet element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -31936,13 +31792,13 @@ class _StyleSheetList extends NativeFieldWrapperClass1 implements List<StyleShee
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<StyleSheet> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<StyleSheet> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<StyleSheet> takeWhile(bool test(StyleSheet value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<StyleSheet> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<StyleSheet> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<StyleSheet> skipWhile(bool test(StyleSheet value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -32470,8 +32326,6 @@ abstract class CssClassSet implements Set<String> {
|
|||
|
||||
String join([String separator]) => readClasses().join(separator);
|
||||
|
||||
Iterable map(f(String element)) => readClasses().map(f);
|
||||
|
||||
Iterable mappedBy(f(String element)) => readClasses().mappedBy(f);
|
||||
|
||||
Iterable<String> where(bool f(String element)) => readClasses().where(f);
|
||||
|
@ -32569,7 +32423,7 @@ abstract class CssClassSet implements Set<String> {
|
|||
* Helper method used to modify the set of css classes on this element.
|
||||
*
|
||||
* f - callback with:
|
||||
* s - a Set of all the css class name currently on this element.
|
||||
* s - a Set of all the css class name currently on this element.
|
||||
*
|
||||
* After f returns, the modified set is written to the
|
||||
* className property of this element.
|
||||
|
|
|
@ -101,8 +101,7 @@ class FilteredElementList implements List {
|
|||
return result;
|
||||
}
|
||||
|
||||
Iterable map(f(Element element)) => _filtered.map(f);
|
||||
List mappedBy(f(Element element)) => _filtered.mappedBy(f);
|
||||
Iterable mappedBy(f(Element element)) => _filtered.mappedBy(f);
|
||||
Iterable<Element> where(bool f(Element element)) => _filtered.where(f);
|
||||
|
||||
Element removeAt(int index) {
|
||||
|
|
|
@ -3621,11 +3621,7 @@ class LengthList implements JavaScriptIndexingBehavior, List<Length> native "*SV
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(Length element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(Length element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(Length element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<Length> where(bool f(Length element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -3639,13 +3635,13 @@ class LengthList implements JavaScriptIndexingBehavior, List<Length> native "*SV
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<Length> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<Length> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<Length> takeWhile(bool test(Length value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<Length> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<Length> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<Length> skipWhile(bool test(Length value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -4310,11 +4306,7 @@ class NumberList implements JavaScriptIndexingBehavior, List<Number> native "*SV
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(Number element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(Number element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(Number element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<Number> where(bool f(Number element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -4328,13 +4320,13 @@ class NumberList implements JavaScriptIndexingBehavior, List<Number> native "*SV
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<Number> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<Number> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<Number> takeWhile(bool test(Number value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<Number> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<Number> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<Number> skipWhile(bool test(Number value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -5221,11 +5213,7 @@ class PathSegList implements JavaScriptIndexingBehavior, List<PathSeg> native "*
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(PathSeg element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(PathSeg element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(PathSeg element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<PathSeg> where(bool f(PathSeg element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -5239,13 +5227,13 @@ class PathSegList implements JavaScriptIndexingBehavior, List<PathSeg> native "*
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<PathSeg> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<PathSeg> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<PathSeg> takeWhile(bool test(PathSeg value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<PathSeg> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<PathSeg> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<PathSeg> skipWhile(bool test(PathSeg value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -6151,11 +6139,7 @@ class StringList implements JavaScriptIndexingBehavior, List<String> native "*SV
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(String element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(String element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(String element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<String> where(bool f(String element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -6169,13 +6153,13 @@ class StringList implements JavaScriptIndexingBehavior, List<String> native "*SV
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<String> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<String> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<String> takeWhile(bool test(String value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<String> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<String> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<String> skipWhile(bool test(String value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -7376,11 +7360,7 @@ class TransformList implements List<Transform>, JavaScriptIndexingBehavior nativ
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(Transform element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(Transform element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(Transform element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<Transform> where(bool f(Transform element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -7394,13 +7374,13 @@ class TransformList implements List<Transform>, JavaScriptIndexingBehavior nativ
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<Transform> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<Transform> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<Transform> takeWhile(bool test(Transform value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<Transform> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<Transform> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<Transform> skipWhile(bool test(Transform value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -7915,11 +7895,7 @@ class _ElementInstanceList implements JavaScriptIndexingBehavior, List<ElementIn
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(ElementInstance element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(ElementInstance element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(ElementInstance element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<ElementInstance> where(bool f(ElementInstance element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -7933,13 +7909,13 @@ class _ElementInstanceList implements JavaScriptIndexingBehavior, List<ElementIn
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<ElementInstance> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<ElementInstance> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<ElementInstance> takeWhile(bool test(ElementInstance value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<ElementInstance> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<ElementInstance> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<ElementInstance> skipWhile(bool test(ElementInstance value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
|
|
@ -3963,11 +3963,7 @@ class LengthList extends NativeFieldWrapperClass1 implements List<Length> {
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(Length element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(Length element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(Length element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<Length> where(bool f(Length element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -3981,13 +3977,13 @@ class LengthList extends NativeFieldWrapperClass1 implements List<Length> {
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<Length> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<Length> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<Length> takeWhile(bool test(Length value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<Length> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<Length> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<Length> skipWhile(bool test(Length value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -4733,11 +4729,7 @@ class NumberList extends NativeFieldWrapperClass1 implements List<Number> {
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(Number element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(Number element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(Number element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<Number> where(bool f(Number element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -4751,13 +4743,13 @@ class NumberList extends NativeFieldWrapperClass1 implements List<Number> {
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<Number> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<Number> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<Number> takeWhile(bool test(Number value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<Number> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<Number> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<Number> skipWhile(bool test(Number value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -5921,11 +5913,7 @@ class PathSegList extends NativeFieldWrapperClass1 implements List<PathSeg> {
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(PathSeg element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(PathSeg element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(PathSeg element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<PathSeg> where(bool f(PathSeg element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -5939,13 +5927,13 @@ class PathSegList extends NativeFieldWrapperClass1 implements List<PathSeg> {
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<PathSeg> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<PathSeg> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<PathSeg> takeWhile(bool test(PathSeg value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<PathSeg> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<PathSeg> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<PathSeg> skipWhile(bool test(PathSeg value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -6949,11 +6937,7 @@ class StringList extends NativeFieldWrapperClass1 implements List<String> {
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(String element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(String element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(String element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<String> where(bool f(String element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -6967,13 +6951,13 @@ class StringList extends NativeFieldWrapperClass1 implements List<String> {
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<String> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<String> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<String> takeWhile(bool test(String value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<String> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<String> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<String> skipWhile(bool test(String value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -8272,11 +8256,7 @@ class TransformList extends NativeFieldWrapperClass1 implements List<Transform>
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(Transform element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(Transform element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(Transform element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<Transform> where(bool f(Transform element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -8290,13 +8270,13 @@ class TransformList extends NativeFieldWrapperClass1 implements List<Transform>
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<Transform> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<Transform> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<Transform> takeWhile(bool test(Transform value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<Transform> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<Transform> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<Transform> skipWhile(bool test(Transform value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
@ -8869,11 +8849,7 @@ class _ElementInstanceList extends NativeFieldWrapperClass1 implements List<Elem
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f(ElementInstance element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f(ElementInstance element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f(ElementInstance element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<ElementInstance> where(bool f(ElementInstance element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -8887,13 +8863,13 @@ class _ElementInstanceList extends NativeFieldWrapperClass1 implements List<Elem
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<ElementInstance> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<ElementInstance> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<ElementInstance> takeWhile(bool test(ElementInstance value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<ElementInstance> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<ElementInstance> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<ElementInstance> skipWhile(bool test(ElementInstance value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
|
|
@ -438,7 +438,7 @@ testFunctionSubtypingNamed() {
|
|||
Link<SourceString> createNames(Map<String,DartType> nm) {
|
||||
List<String> nmSorted = new List<String>.from(nm.keys)..sort();
|
||||
List<SourceString> nmSourceStrings =
|
||||
nmSorted.map((string) => new SourceString(string));
|
||||
nmSorted.mappedBy((string) => new SourceString(string));
|
||||
return new Link<SourceString>.fromList(nmSourceStrings);
|
||||
}
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ testCollections() {
|
|||
|
||||
void testArray(array) {
|
||||
testJoin("1,3,5,7,9", array.where((i) => i.isOdd), ",");
|
||||
testJoin("0,2,4,6,8,10,12,14,16,18", array.map((i) => i * 2), ",");
|
||||
testJoin("0,2,4,6,8,10,12,14,16,18", array.mappedBy((i) => i * 2), ",");
|
||||
testJoin("5,6,7,8,9", array.skip(5), ",");
|
||||
testJoin("5,6,7,8,9", array.skipWhile((i) => i < 5), ",");
|
||||
testJoin("0,1,2,3,4", array.take(5), ",");
|
||||
|
|
|
@ -36,6 +36,6 @@ main() {
|
|||
a = new A(0);
|
||||
Expect.equals(0, a.length);
|
||||
a = new A(5);
|
||||
Expect.equals(5, a.map((e) => e + 1).length);
|
||||
Expect.equals(5, a.mappedBy((e) => e + 1).length);
|
||||
Expect.equals(3, a.where((e) => e >= 3).length);
|
||||
}
|
||||
|
|
|
@ -10,40 +10,46 @@ main() {
|
|||
set1.addAll([11, 12, 13]);
|
||||
Set set2 = new Set();
|
||||
|
||||
Iterable mapped = list1.map((x) => x + 1);
|
||||
Expect.listEquals([2, 3, 4], mapped.toList());
|
||||
Iterable mapped = list1.mappedBy((x) => x + 1);
|
||||
Expect.isTrue(mapped is List);
|
||||
Expect.listEquals([2, 3, 4], mapped);
|
||||
|
||||
mapped = mapped.map((x) => x + 1);
|
||||
Expect.listEquals([3, 4, 5], mapped.toList());
|
||||
mapped = mapped.mappedBy((x) => x + 1);
|
||||
Expect.isTrue(mapped is List);
|
||||
Expect.listEquals([3, 4, 5], mapped);
|
||||
|
||||
mapped = list2.map((x) => x + 1);
|
||||
Expect.listEquals([5, 6], mapped.toList());
|
||||
mapped = list2.mappedBy((x) => x + 1);
|
||||
Expect.isTrue(mapped is List);
|
||||
Expect.listEquals([5, 6], mapped);
|
||||
|
||||
mapped = mapped.map((x) => x + 1);
|
||||
Expect.listEquals([6, 7], mapped.toList());
|
||||
mapped = mapped.mappedBy((x) => x + 1);
|
||||
Expect.isTrue(mapped is List);
|
||||
Expect.listEquals([6, 7], mapped);
|
||||
|
||||
mapped = list3.map((x) => x + 1);
|
||||
Expect.listEquals([], mapped.toList());
|
||||
mapped = list3.mappedBy((x) => x + 1);
|
||||
Expect.isTrue(mapped is List);
|
||||
Expect.listEquals([], mapped);
|
||||
|
||||
mapped = mapped.map((x) => x + 1);
|
||||
Expect.listEquals([], mapped.toList());
|
||||
mapped = mapped.mappedBy((x) => x + 1);
|
||||
Expect.isTrue(mapped is List);
|
||||
Expect.listEquals([], mapped);
|
||||
|
||||
var expected = new Set<int>()..addAll([12, 13, 14]);
|
||||
mapped = set1.map((x) => x + 1);
|
||||
mapped = set1.mappedBy((x) => x + 1);
|
||||
Expect.isFalse(mapped is List);
|
||||
Expect.setEquals(expected, mapped.toSet());
|
||||
|
||||
expected = new Set<int>()..addAll([13, 14, 15]);
|
||||
mapped = mapped.map((x) => x + 1);
|
||||
mapped = mapped.mappedBy((x) => x + 1);
|
||||
Expect.isFalse(mapped is List);
|
||||
Expect.setEquals(expected, mapped.toSet());
|
||||
|
||||
mapped = set2.map((x) => x + 1);
|
||||
mapped = set2.mappedBy((x) => x + 1);
|
||||
Expect.isFalse(mapped is List);
|
||||
Expect.listEquals([], mapped.toList());
|
||||
|
||||
mapped = mapped.map((x) => x + 1);
|
||||
mapped = mapped.mappedBy((x) => x + 1);
|
||||
Expect.isFalse(mapped is List);
|
||||
Expect.listEquals([], mapped.toList());
|
||||
|
||||
}
|
||||
}
|
|
@ -21,7 +21,7 @@ class ListTest {
|
|||
|
||||
static void testClosures(List list) {
|
||||
testMap(val) {return val * 2 + 10; }
|
||||
List mapped = list.map(testMap).toList();
|
||||
List mapped = list.mappedBy(testMap).toList();
|
||||
Expect.equals(mapped.length, list.length);
|
||||
for (var i = 0; i < list.length; i++) {
|
||||
Expect.equals(mapped[i], list[i]*2 + 10);
|
||||
|
|
|
@ -43,7 +43,7 @@ class QueueTest {
|
|||
return (value == 10);
|
||||
}
|
||||
|
||||
Queue mapped = new Queue.from(queue.map(mapTest));
|
||||
Queue mapped = new Queue.from(queue.mappedBy(mapTest));
|
||||
checkQueue(mapped, 3, 111);
|
||||
checkQueue(queue, 3, 1110);
|
||||
Expect.equals(1, mapped.removeFirst());
|
||||
|
|
|
@ -40,7 +40,7 @@ class RegExpAllMatchesTest {
|
|||
|
||||
static testMap() {
|
||||
var matches = new RegExp("foo?").allMatches("foo fo foo fo");
|
||||
var mapped = matches.map((Match m) => "${m.group(0)}bar");
|
||||
var mapped = matches.mappedBy((Match m) => "${m.group(0)}bar");
|
||||
Expect.equals(4, mapped.length);
|
||||
var strbuf = new StringBuffer();
|
||||
for (String s in mapped) {
|
||||
|
|
|
@ -51,7 +51,7 @@ class SetTest {
|
|||
return val * val;
|
||||
}
|
||||
|
||||
Set mapped = set.map(testMap).toSet();
|
||||
Set mapped = set.mappedBy(testMap).toSet();
|
||||
Expect.equals(10, mapped.length);
|
||||
|
||||
Expect.equals(true, mapped.contains(0));
|
||||
|
|
|
@ -67,7 +67,7 @@ main() {
|
|||
});
|
||||
|
||||
test('mappedBy', () {
|
||||
expect(makeClassSet().map((c) => c.toUpperCase()).toList(),
|
||||
expect(makeClassSet().mappedBy((c) => c.toUpperCase()).toList(),
|
||||
unorderedEquals(['FOO', 'BAR', 'BAZ']));
|
||||
});
|
||||
|
||||
|
|
|
@ -109,7 +109,7 @@ main() {
|
|||
expect(node.tHead.rows[0].cells.length, 3);
|
||||
expect(node.tBodies.length, 1);
|
||||
expect(node.tBodies[0].rows.length, 2);
|
||||
expect(node.tBodies[0].rows[1].cells.map((c) => c.innerHtml),
|
||||
expect(node.tBodies[0].rows[1].cells.mappedBy((c) => c.innerHtml),
|
||||
[' Failing\n ', ' Grade\n ', ' Passing\n']);
|
||||
});
|
||||
|
||||
|
@ -182,7 +182,7 @@ main() {
|
|||
'is a TableRowElement'));
|
||||
expect(node.tagName, 'TR');
|
||||
expect(node.parent, isNull);
|
||||
expect(node.cells.map((c) => c.innerHtml), ['foo', 'bar']);
|
||||
expect(node.cells.mappedBy((c) => c.innerHtml), ['foo', 'bar']);
|
||||
});
|
||||
|
||||
test('.html td', () {
|
||||
|
@ -539,7 +539,7 @@ main() {
|
|||
});
|
||||
|
||||
test('mappedBy', () {
|
||||
var texts = getQueryAll().map((el) => el.text).toList();
|
||||
var texts = getQueryAll().mappedBy((el) => el.text).toList();
|
||||
expect(texts, equals(['Dart!', 'Hello', '']));
|
||||
});
|
||||
|
||||
|
|
|
@ -186,7 +186,7 @@ main() {
|
|||
});
|
||||
|
||||
test('mappedBy', () {
|
||||
stream.map((_) => null).listen((_) {});
|
||||
stream.mappedBy((_) => null).listen((_) {});
|
||||
});
|
||||
|
||||
test('reduce', () {
|
||||
|
|
|
@ -439,7 +439,7 @@ testRethrow() {
|
|||
}
|
||||
|
||||
testStream("where", (s, act) => s.where(act));
|
||||
testStream("mappedBy", (s, act) => s.map(act));
|
||||
testStream("mappedBy", (s, act) => s.mappedBy(act));
|
||||
testStream("expand", (s, act) => s.expand(act));
|
||||
testStream("where", (s, act) => s.where(act));
|
||||
testStreamError("handleError", (s, act) => s.handleError(act));
|
||||
|
|
|
@ -53,7 +53,7 @@ testMultiController() {
|
|||
c = new StreamController.broadcast();
|
||||
expectedEvents = new Events()..add("abab")..error("error")..close();
|
||||
sentEvents = new Events()..add("ab")..error("error")..close();
|
||||
actualEvents = new Events.capture(c.stream.map((v) => "$v$v"));
|
||||
actualEvents = new Events.capture(c.stream.mappedBy((v) => "$v$v"));
|
||||
sentEvents.replay(c);
|
||||
Expect.listEquals(expectedEvents.events, actualEvents.events);
|
||||
|
||||
|
@ -114,7 +114,7 @@ testMultiController() {
|
|||
expectedEvents = new Events()..add(42)..error("not FormatException");
|
||||
actualEvents = new Events.capture(
|
||||
c.stream.where((v) => v is String)
|
||||
.map((v) => int.parse(v))
|
||||
.mappedBy((v) => int.parse(v))
|
||||
.handleError((v) {
|
||||
if (v.error is! FormatException) throw v;
|
||||
})
|
||||
|
@ -194,7 +194,7 @@ testSingleController() {
|
|||
c = new StreamController();
|
||||
expectedEvents = new Events()..add("abab")..error("error")..close();
|
||||
sentEvents = new Events()..add("ab")..error("error")..close();
|
||||
actualEvents = new Events.capture(c.stream.map((v) => "$v$v"));
|
||||
actualEvents = new Events.capture(c.stream.mappedBy((v) => "$v$v"));
|
||||
sentEvents.replay(c);
|
||||
Expect.listEquals(expectedEvents.events, actualEvents.events);
|
||||
|
||||
|
@ -303,7 +303,7 @@ testSingleController() {
|
|||
expectedEvents = new Events()..add(42)..error("not FormatException");
|
||||
actualEvents = new Events.capture(
|
||||
c.stream.where((v) => v is String)
|
||||
.map((v) => int.parse(v))
|
||||
.mappedBy((v) => int.parse(v))
|
||||
.handleError((v) {
|
||||
if (v.error is! FormatException) throw v;
|
||||
})
|
||||
|
|
|
@ -33,7 +33,7 @@ main() {
|
|||
new IterableTest<String>(["one", "two", "three", "four"]).run();
|
||||
new IterableTest<int>(new Iterable<int>.generate(1000, (i) => i)).run();
|
||||
new IterableTest<String>(new Iterable<int>.generate(1000, (i) => i)
|
||||
.map((i) => "$i")).run();
|
||||
.mappedBy((i) => "$i")).run();
|
||||
|
||||
Iterable<int> iter = new Iterable.generate(25, (i) => i * 2);
|
||||
|
||||
|
@ -47,10 +47,10 @@ main() {
|
|||
|
||||
test("iterable-mapped-toList", () {
|
||||
new Stream.fromIterable(iter)
|
||||
.map((i) => i * 3)
|
||||
.mappedBy((i) => i * 3)
|
||||
.toList()
|
||||
.then(expectAsync1((actual) {
|
||||
List expected = iter.map((i) => i * 3).toList();
|
||||
List expected = iter.mappedBy((i) => i * 3).toList();
|
||||
Expect.listEquals(expected, actual);
|
||||
}));
|
||||
});
|
||||
|
|
|
@ -44,8 +44,6 @@ abstract class CssClassSet implements Set<String> {
|
|||
|
||||
String join([String separator]) => readClasses().join(separator);
|
||||
|
||||
Iterable map(f(String element)) => readClasses().map(f);
|
||||
|
||||
Iterable mappedBy(f(String element)) => readClasses().mappedBy(f);
|
||||
|
||||
Iterable<String> where(bool f(String element)) => readClasses().where(f);
|
||||
|
@ -143,7 +141,7 @@ abstract class CssClassSet implements Set<String> {
|
|||
* Helper method used to modify the set of css classes on this element.
|
||||
*
|
||||
* f - callback with:
|
||||
* s - a Set of all the css class name currently on this element.
|
||||
* s - a Set of all the css class name currently on this element.
|
||||
*
|
||||
* After f returns, the modified set is written to the
|
||||
* className property of this element.
|
||||
|
|
|
@ -61,11 +61,7 @@ class _ChildrenElementList implements List {
|
|||
return IterableMixinWorkaround.joinList(this, separator);
|
||||
}
|
||||
|
||||
Iterable map(f(Element element)) {
|
||||
return IterableMixinWorkaround.map(this, f);
|
||||
}
|
||||
|
||||
List mappedBy(f(ELement element)) {
|
||||
List mappedBy(f(Element element)) {
|
||||
return IterableMixinWorkaround.mappedByList(this, f);
|
||||
}
|
||||
|
||||
|
@ -77,7 +73,7 @@ class _ChildrenElementList implements List {
|
|||
return _element.$dom_firstElementChild == null;
|
||||
}
|
||||
|
||||
Iterable<Element> take(int n) {
|
||||
List<Element> take(int n) {
|
||||
return IterableMixinWorkaround.takeList(this, n);
|
||||
}
|
||||
|
||||
|
@ -85,7 +81,7 @@ class _ChildrenElementList implements List {
|
|||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<Element> skip(int n) {
|
||||
List<Element> skip(int n) {
|
||||
return IterableMixinWorkaround.skipList(this, n);
|
||||
}
|
||||
|
||||
|
@ -278,11 +274,7 @@ class _FrozenElementList implements List {
|
|||
return IterableMixinWorkaround.joinList(this, separator);
|
||||
}
|
||||
|
||||
Iterable map(f(Element element)) {
|
||||
return IterableMixinWorkaround.map(this, f);
|
||||
}
|
||||
|
||||
List mappedBy(f(ELement element)) {
|
||||
List mappedBy(f(Element element)) {
|
||||
return IterableMixinWorkaround.mappedByList(this, f);
|
||||
}
|
||||
|
||||
|
@ -311,7 +303,7 @@ class _FrozenElementList implements List {
|
|||
List<Element> toList() => new List<Element>.from(this);
|
||||
Set<Element> toSet() => new Set<Element>.from(this);
|
||||
|
||||
Iterable<Element> take(int n) {
|
||||
List<Element> take(int n) {
|
||||
return IterableMixinWorkaround.takeList(this, n);
|
||||
}
|
||||
|
||||
|
@ -319,7 +311,7 @@ class _FrozenElementList implements List {
|
|||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<Element> skip(int n) {
|
||||
List<Element> skip(int n) {
|
||||
return IterableMixinWorkaround.skipList(this, n);
|
||||
}
|
||||
|
||||
|
|
|
@ -138,10 +138,6 @@ $endif
|
|||
return IterableMixinWorkaround.joinList(this, separator);
|
||||
}
|
||||
|
||||
Iterable map(f(Node element)) {
|
||||
return IterableMixinWorkaround.map(this, f);
|
||||
}
|
||||
|
||||
List mappedBy(f(Node element)) {
|
||||
return IterableMixinWorkaround.mappedByList(this, f);
|
||||
}
|
||||
|
@ -161,7 +157,7 @@ $endif
|
|||
|
||||
// From List<Node>:
|
||||
|
||||
Iterable<Node> take(int n) {
|
||||
List<Node> take(int n) {
|
||||
return IterableMixinWorkaround.takeList(this, n);
|
||||
}
|
||||
|
||||
|
@ -169,7 +165,7 @@ $endif
|
|||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<Node> skip(int n) {
|
||||
List<Node> skip(int n) {
|
||||
return IterableMixinWorkaround.skipList(this, n);
|
||||
}
|
||||
|
||||
|
|
|
@ -29,11 +29,7 @@ $endif
|
|||
String join([String separator]) =>
|
||||
IterableMixinWorkaround.joinList(this, separator);
|
||||
|
||||
Iterable map(f($E element)) =>
|
||||
IterableMixinWorkaround.map(this, f);
|
||||
|
||||
List mappedBy(f($E element)) =>
|
||||
IterableMixinWorkaround.mappedBy(this, f);
|
||||
List mappedBy(f($E element)) => IterableMixinWorkaround.mappedByList(this, f);
|
||||
|
||||
Iterable<$E> where(bool f($E element)) =>
|
||||
IterableMixinWorkaround.where(this, f);
|
||||
|
@ -47,13 +43,13 @@ $endif
|
|||
|
||||
bool get isEmpty => this.length == 0;
|
||||
|
||||
Iterable<$E> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
List<$E> take(int n) => IterableMixinWorkaround.takeList(this, n);
|
||||
|
||||
Iterable<$E> takeWhile(bool test($E value)) {
|
||||
return IterableMixinWorkaround.takeWhile(this, test);
|
||||
}
|
||||
|
||||
Iterable<$E> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
List<$E> skip(int n) => IterableMixinWorkaround.skipList(this, n);
|
||||
|
||||
Iterable<$E> skipWhile(bool test($E value)) {
|
||||
return IterableMixinWorkaround.skipWhile(this, test);
|
||||
|
|
|
@ -128,7 +128,7 @@ class LishCommand extends PubCommand {
|
|||
}
|
||||
|
||||
return listDir(rootDir, recursive: true).then((entries) {
|
||||
return Future.wait(entries.map((entry) {
|
||||
return Future.wait(entries.mappedBy((entry) {
|
||||
return fileExists(entry).then((isFile) {
|
||||
// Skip directories.
|
||||
if (!isFile) return null;
|
||||
|
|
|
@ -130,7 +130,7 @@ class Entrypoint {
|
|||
/// [packageVersions], and writes a [LockFile].
|
||||
Future _installDependencies(List<PackageId> packageVersions) {
|
||||
return cleanDir(path).then((_) {
|
||||
return Future.wait(packageVersions.map((id) {
|
||||
return Future.wait(packageVersions.mappedBy((id) {
|
||||
if (id.isRoot) return new Future.immediate(id);
|
||||
return install(id);
|
||||
}));
|
||||
|
@ -207,7 +207,7 @@ class Entrypoint {
|
|||
return _linkSecondaryPackageDir(dir)
|
||||
.then((_) => _listDirWithoutPackages(dir))
|
||||
.then((files) {
|
||||
return Future.wait(files.map((file) {
|
||||
return Future.wait(files.mappedBy((file) {
|
||||
return dirExists(file).then((isDir) {
|
||||
if (!isDir) return;
|
||||
return _linkSecondaryPackageDir(file);
|
||||
|
@ -222,7 +222,7 @@ class Entrypoint {
|
|||
/// files and `package` files.
|
||||
Future<List<String>> _listDirWithoutPackages(dir) {
|
||||
return listDir(dir).then((files) {
|
||||
return Future.wait(files.map((file) {
|
||||
return Future.wait(files.mappedBy((file) {
|
||||
if (basename(file) == 'packages') return new Future.immediate([]);
|
||||
return dirExists(file).then((isDir) {
|
||||
if (!isDir) return [];
|
||||
|
|
|
@ -39,7 +39,7 @@ class HostedSource extends Source {
|
|||
return httpClient.read(fullUrl).then((body) {
|
||||
var doc = json.parse(body);
|
||||
return doc['versions']
|
||||
.map((version) => new Version.parse(version))
|
||||
.mappedBy((version) => new Version.parse(version))
|
||||
.toList();
|
||||
}).catchError((ex) {
|
||||
_throwFriendlyError(ex, parsed.first, parsed.last);
|
||||
|
|
|
@ -22,7 +22,7 @@ final NEWLINE_PATTERN = new RegExp("\r\n?|\n\r?");
|
|||
/// [File] objects.
|
||||
String join(part1, [part2, part3, part4, part5, part6, part7, part8]) {
|
||||
var parts = [part1, part2, part3, part4, part5, part6, part7, part8]
|
||||
.map((part) => part == null ? null : _getPath(part)).toList();
|
||||
.mappedBy((part) => part == null ? null : _getPath(part)).toList();
|
||||
|
||||
return path.join(parts[0], parts[1], parts[2], parts[3], parts[4], parts[5],
|
||||
parts[6], parts[7]);
|
||||
|
@ -873,7 +873,7 @@ InputStream createTarGz(List contents, {baseDir}) {
|
|||
|
||||
if (baseDir == null) baseDir = path.current;
|
||||
baseDir = getFullPath(baseDir);
|
||||
contents = contents.map((entry) {
|
||||
contents = contents.mappedBy((entry) {
|
||||
entry = getFullPath(entry);
|
||||
if (!isBeneath(entry, baseDir)) {
|
||||
throw 'Entry $entry is not inside $baseDir.';
|
||||
|
@ -883,7 +883,7 @@ InputStream createTarGz(List contents, {baseDir}) {
|
|||
|
||||
if (Platform.operatingSystem != "windows") {
|
||||
var args = ["--create", "--gzip", "--directory", baseDir];
|
||||
args.addAll(contents.map(_getPath));
|
||||
args.addAll(contents.mappedBy(_getPath));
|
||||
// TODO(nweiz): It's possible that enough command-line arguments will make
|
||||
// the process choke, so at some point we should save the arguments to a
|
||||
// file and pass them in via --files-from for tar and -i@filename for 7zip.
|
||||
|
@ -903,7 +903,7 @@ InputStream createTarGz(List contents, {baseDir}) {
|
|||
// Create the tar file.
|
||||
var tarFile = join(tempDir, "intermediate.tar");
|
||||
var args = ["a", "-w$baseDir", tarFile];
|
||||
args.addAll(contents.map((entry) => '-i!"$entry"'));
|
||||
args.addAll(contents.mappedBy((entry) => '-i!"$entry"'));
|
||||
|
||||
// Note: This line of code gets munged by create_sdk.py to be the correct
|
||||
// relative path to 7zip in the SDK.
|
||||
|
|
|
@ -162,7 +162,7 @@ String mapToQuery(Map<String, String> map) {
|
|||
value = (value == null || value.isEmpty) ? null : encodeUriComponent(value);
|
||||
pairs.add([key, value]);
|
||||
});
|
||||
return Strings.join(pairs.map((pair) {
|
||||
return Strings.join(pairs.mappedBy((pair) {
|
||||
if (pair[1] == null) return pair[0];
|
||||
return "${pair[0]}=${pair[1]}";
|
||||
}), "&");
|
||||
|
|
|
@ -53,12 +53,12 @@ abstract class Validator {
|
|||
new DirectoryValidator(entrypoint)
|
||||
];
|
||||
|
||||
return Future.wait(validators.map((validator) => validator.validate()))
|
||||
return Future.wait(validators.mappedBy((validator) => validator.validate()))
|
||||
.then((_) {
|
||||
var errors =
|
||||
flatten(validators.map((validator) => validator.errors));
|
||||
flatten(validators.mappedBy((validator) => validator.errors));
|
||||
var warnings =
|
||||
flatten(validators.map((validator) => validator.warnings));
|
||||
flatten(validators.mappedBy((validator) => validator.warnings));
|
||||
|
||||
if (!errors.isEmpty) {
|
||||
log.error("Missing requirements:");
|
||||
|
|
|
@ -19,7 +19,7 @@ class DirectoryValidator extends Validator {
|
|||
|
||||
Future validate() {
|
||||
return listDir(entrypoint.root.dir).then((dirs) {
|
||||
return Future.wait(dirs.map((dir) {
|
||||
return Future.wait(dirs.mappedBy((dir) {
|
||||
return dirExists(dir).then((exists) {
|
||||
if (!exists) return;
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ class LibValidator extends Validator {
|
|||
}
|
||||
|
||||
return listDir(libDir).then((files) {
|
||||
files = files.map((file) => relativeTo(file, libDir)).toList();
|
||||
files = files.mappedBy((file) => relativeTo(file, libDir)).toList();
|
||||
if (files.isEmpty) {
|
||||
errors.add('You must have a non-empty "lib" directory.\n'
|
||||
"Without that, users cannot import any code from your package.");
|
||||
|
|
|
@ -20,7 +20,7 @@ class LicenseValidator extends Validator {
|
|||
return listDir(entrypoint.root.dir).then((files) {
|
||||
var licenseLike = new RegExp(
|
||||
r"^([a-zA-Z0-9]+[-_])?(LICENSE|COPYING)(\..*)?$");
|
||||
if (files.map(basename).any(licenseLike.hasMatch)) return;
|
||||
if (files.mappedBy(basename).any(licenseLike.hasMatch)) return;
|
||||
|
||||
errors.add(
|
||||
"You must have a COPYING or LICENSE file in the root directory.\n"
|
||||
|
|
|
@ -52,7 +52,7 @@ class NameValidator extends Validator {
|
|||
return listDir(libDir, recursive: true);
|
||||
}).then((files) {
|
||||
return files
|
||||
.map((file) => relativeTo(file, dirname(libDir)))
|
||||
.mappedBy((file) => relativeTo(file, dirname(libDir)))
|
||||
.where((file) => !splitPath(file).contains("src") &&
|
||||
path.extension(file) == '.dart')
|
||||
.toList();
|
||||
|
|
|
@ -192,7 +192,7 @@ class Version implements Comparable, VersionConstraint {
|
|||
/// Splits a string of dot-delimited identifiers into their component parts.
|
||||
/// Identifiers that are numeric are converted to numbers.
|
||||
List _splitParts(String text) {
|
||||
return text.split('.').map((part) {
|
||||
return text.split('.').mappedBy((part) {
|
||||
try {
|
||||
return int.parse(part);
|
||||
} on FormatException catch (ex) {
|
||||
|
|
|
@ -189,12 +189,12 @@ class VersionSolver {
|
|||
}
|
||||
}
|
||||
|
||||
return dependency.dependers.map(getDependency).any((subdependency) =>
|
||||
return dependency.dependers.mappedBy(getDependency).any((subdependency) =>
|
||||
tryUnlockDepender(subdependency, seen));
|
||||
}
|
||||
|
||||
List<PackageId> buildResults() {
|
||||
return _packages.values.where((dep) => dep.isDependedOn).map((dep) {
|
||||
return _packages.values.where((dep) => dep.isDependedOn).mappedBy((dep) {
|
||||
var description = dep.description;
|
||||
|
||||
// If the lockfile contains a fully-resolved description for the package,
|
||||
|
@ -507,7 +507,7 @@ class Dependency {
|
|||
VersionConstraint get constraint {
|
||||
if (_refs.isEmpty) return null;
|
||||
return new VersionConstraint.intersection(
|
||||
_refs.values.map((ref) => ref.constraint));
|
||||
_refs.values.mappedBy((ref) => ref.constraint));
|
||||
}
|
||||
|
||||
/// The source of this dependency's package.
|
||||
|
|
|
@ -58,7 +58,7 @@ main() {
|
|||
.then((input) => input.readAll())
|
||||
.then((entries) {
|
||||
entries = entries
|
||||
.map((entry) => [entry.pathname, entry.contents.trim()])
|
||||
.mappedBy((entry) => [entry.pathname, entry.contents.trim()])
|
||||
.toList();
|
||||
expect(entries[0], orderedEquals(["filename1", "contents 1"]));
|
||||
expect(entries[1], orderedEquals(["filename2", "contents 2"]));
|
||||
|
|
|
@ -83,7 +83,7 @@ class CommandLineConfiguration extends Configuration {
|
|||
if (stack.length == 0) return;
|
||||
|
||||
// Figure out the longest path so we know how much to pad.
|
||||
int longest = stack.map((frame) => frame.location.length).max();
|
||||
int longest = stack.mappedBy((frame) => frame.location.length).max();
|
||||
|
||||
// Print out the stack trace nicely formatted.
|
||||
for (var frame in stack) {
|
||||
|
@ -108,7 +108,7 @@ class CommandLineConfiguration extends Configuration {
|
|||
String _indent(String str) {
|
||||
// TODO(nweiz): Use this simpler code once issue 2980 is fixed.
|
||||
// return str.replaceAll(new RegExp("^", multiLine: true), " ");
|
||||
return Strings.join(str.split("\n").map((line) => " $line"), "\n");
|
||||
return Strings.join(str.split("\n").mappedBy((line) => " $line"), "\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -190,7 +190,7 @@ void servePackages(List<Map> pubspecs) {
|
|||
file('$name.json',
|
||||
json.stringify({'versions': versions})),
|
||||
dir(name, [
|
||||
dir('versions', flatten(versions.map((version) {
|
||||
dir('versions', flatten(versions.mappedBy((version) {
|
||||
return [
|
||||
file('$version.yaml', _servedPackages[name][version]),
|
||||
tar('$version.tar.gz', [
|
||||
|
@ -529,7 +529,7 @@ void schedulePub({List args, Pattern output, Pattern error,
|
|||
if (error == null) {
|
||||
// If we aren't validating the error, still show it on failure.
|
||||
failures.add('Pub stderr:');
|
||||
failures.addAll(result.stderr.map((line) => '| $line'));
|
||||
failures.addAll(result.stderr.mappedBy((line) => '| $line'));
|
||||
}
|
||||
|
||||
throw new ExpectException(Strings.join(failures, '\n'));
|
||||
|
@ -701,7 +701,7 @@ void _validateOutputRegex(List<String> failures, String pipe,
|
|||
failures.add('Expected $pipe to match "${expected.pattern}" but got none.');
|
||||
} else {
|
||||
failures.add('Expected $pipe to match "${expected.pattern}" but got:');
|
||||
failures.addAll(actual.map((line) => '| $line'));
|
||||
failures.addAll(actual.mappedBy((line) => '| $line'));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -746,7 +746,7 @@ void _validateOutputString(List<String> failures, String pipe,
|
|||
// If any lines mismatched, show the expected and actual.
|
||||
if (failed) {
|
||||
failures.add('Expected $pipe:');
|
||||
failures.addAll(expected.map((line) => '| $line'));
|
||||
failures.addAll(expected.mappedBy((line) => '| $line'));
|
||||
failures.add('Got:');
|
||||
failures.addAll(results);
|
||||
}
|
||||
|
@ -930,7 +930,7 @@ class DirectoryDescriptor extends Descriptor {
|
|||
|
||||
// Recursively create all of its children.
|
||||
final childFutures =
|
||||
contents.map((child) => child.create(dir)).toList();
|
||||
contents.mappedBy((child) => child.create(dir)).toList();
|
||||
// Only complete once all of the children have been created too.
|
||||
return Future.wait(childFutures).then((_) => dir);
|
||||
});
|
||||
|
@ -950,7 +950,7 @@ class DirectoryDescriptor extends Descriptor {
|
|||
return _validateOneMatch(path, (dir) {
|
||||
// Validate each of the items in this directory.
|
||||
final entryFutures =
|
||||
contents.map((entry) => entry.validate(dir)).toList();
|
||||
contents.mappedBy((entry) => entry.validate(dir)).toList();
|
||||
|
||||
// If they are all valid, the directory is valid.
|
||||
return Future.wait(entryFutures).then((entries) => null);
|
||||
|
@ -1082,7 +1082,7 @@ class TarFileDescriptor extends Descriptor {
|
|||
var tempDir;
|
||||
return createTempDir().then((_tempDir) {
|
||||
tempDir = _tempDir;
|
||||
return Future.wait(contents.map((child) => child.create(tempDir)));
|
||||
return Future.wait(contents.mappedBy((child) => child.create(tempDir)));
|
||||
}).then((createdContents) {
|
||||
return consumeInputStream(createTarGz(createdContents, baseDir: tempDir));
|
||||
}).then((bytes) {
|
||||
|
@ -1493,7 +1493,7 @@ Future _awaitObject(object) {
|
|||
// Unroll nested futures.
|
||||
if (object is Future) return object.then(_awaitObject);
|
||||
if (object is Collection) {
|
||||
return Future.wait(object.map(_awaitObject).toList());
|
||||
return Future.wait(object.mappedBy(_awaitObject).toList());
|
||||
}
|
||||
if (object is! Map) return new Future.immediate(object);
|
||||
|
||||
|
|
Loading…
Reference in a new issue