Home
last modified time | relevance | path

Searched refs:toArray (Results 1 - 25 of 166) sorted by relevance

1234567

/third_party/typescript/tests/baselines/reference/
H A DinferenceDoesNotAddUndefinedOrNull.js8 declare function toArray<T>(value: T | T[]): T[];
9 declare function toArray<T>(value: T | readonly T[]): readonly T[];
16 result.push(...toArray(value));
27 result.push(...toArray(value));
41 result.push.apply(result, toArray(value));
51 result.push.apply(result, toArray(value));
/third_party/node/test/parallel/
H A Dtest-stream-flatMap.js20 await oneTo5().flatMap((x) => [x + x]).toArray(),
24 await oneTo5().flatMap(() => []).toArray(),
28 await oneTo5().flatMap((x) => [x, x]).toArray(),
39 await oneTo5().flatMap(async (x) => [x, x]).toArray(),
44 await asyncOneTo5.flatMap(async (x) => [x, x]).toArray(),
54 }).toArray();
61 }).toArray();
62 // The resultant stream is in object mode so toArray shouldn't flatten
H A Dtest-stream-map.js34 assert.deepStrictEqual(await stream.toArray(), [2, 4, 6, 8, 10]);
45 assert.deepStrictEqual(await stream.toArray(), [2, 4, 6, 8, 10]);
55 assert.deepStrictEqual(await stream.toArray(), [4, 8, 12, 16, 20]);
124 stream.map((x) => x + x).toArray(),
138 stream.map((x) => x + x).toArray(),
153 stream.map((x) => x + x).toArray(),
213 await stream.toArray();
260 const outputOrder = await stream.toArray();
308 const outputOrder = await stream.toArray();
340 await stream.toArray();
[all...]
H A Dtest-stream2-objects.js28 function toArray(callback) { function
70 r.pipe(toArray(common.mustCall(function(list) {
95 r.pipe(toArray(common.mustCall(function(list) {
114 r.pipe(toArray(common.mustCall(function(list) {
134 r.pipe(toArray(common.mustCall(function(array) {
149 r.pipe(toArray(common.mustCall(function(array) {
166 r.pipe(toArray(common.mustCall(function(array) {
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
H A DCollectionSet.java46 public Object[] toArray() { in toArray() method in CollectionSet
47 return data.toArray(); in toArray()
51 public <T> T[] toArray(T[] a) { in toArray() method in CollectionSet
52 return data.toArray(a); in toArray()
H A DICUNotifier.java108 notifyThread.queue(listeners.toArray(new EventListener[listeners.size()])); in notifyChanged()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
H A DCollectionSet.java48 public Object[] toArray() { in toArray() method in CollectionSet
49 return data.toArray(); in toArray()
53 public <T> T[] toArray(T[] a) { in toArray() method in CollectionSet
54 return data.toArray(a); in toArray()
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
H A DMapField.java411 public Object[] toArray() { in toArray() method in MapField.MutatabilityAwareMap.MutatabilityAwareCollection
412 return delegate.toArray(); in toArray()
416 public <T> T[] toArray(T[] a) { in toArray() method in MapField.MutatabilityAwareMap.MutatabilityAwareCollection
417 return delegate.toArray(a); in toArray()
508 public Object[] toArray() { in toArray() method in MapField.MutatabilityAwareMap.MutatabilityAwareSet
509 return delegate.toArray(); in toArray()
513 public <T> T[] toArray(T[] a) { in toArray() method in MapField.MutatabilityAwareMap.MutatabilityAwareSet
514 return delegate.toArray(a); in toArray()
/third_party/protobuf/js/
H A Dmessage.js1297 var data = value ? value.toArray() : value;
1320 var data = value ? value.toArray() : value;
1343 data[i] = value[i].toArray();
1383 array.splice(index, 0, insertedValue.toArray());
1386 array.push(insertedValue.toArray());
1439 val[i].toArray();
1445 val.toArray();
1459 jspb.Message.prototype.toArray = function() {
1547 return msg.toArray();
1556 value ? /** @type {!jspb.Message} */ (value).toArray()
[all...]
H A Dmap.js99 jspb.Map.prototype.toArray = function() {
108 valueWrapper.toArray();
123 valueWrapper.toArray();
144 var rawArray = this.toArray();
350 // .toArray() on a message returns a reference to the underlying array
352 entry.value = value.toArray();
H A Dmaps_test.js62 var arr = map.toArray();
80 function toArray(iter) { function
169 var entries = toArray(msg.getMapStringMsgMap().entries());
397 msg.toArray(); // force a sync
402 var a = msg.toArray();
/third_party/protobuf/js/compatibility_tests/v3.1.0/
H A Dmaps_test.js49 var arr = map.toArray();
62 function toArray(iter) { function
151 var entries = toArray(msg.getMapStringMsgMap().entries());
282 msg.toArray(); // force a sync
287 var a = msg.toArray();
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
H A DByteBufferWriterTest.java60 assertTrue(Arrays.equals(toArray(buffer), os.toByteArray())); in testWrite()
71 private byte[] toArray(ByteBuffer buf) { in toArray() method in ByteBufferWriterTest
/third_party/skia/src/gpu/
H A DGrDDLContext.cpp62 fProgramInfoMap.toArray(dst);
90 void toArray(SkTArray<ProgramData>* dst) { in toArray() function in final::ProgramInfoMap
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/util/
H A DDisplayNameTest.java91 return (String[])temp.toArray(new String[temp.size()]); in getRealZoneIDs()
169 data.put(key, list.toArray(new String[list.size()])); in getZoneString()
349 return (String[]) stuff.toArray(result); in getCodes()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
H A DDisplayNameTest.java88 return (String[])temp.toArray(new String[temp.size()]); in getRealZoneIDs()
166 data.put(key, list.toArray(new String[list.size()])); in getZoneString()
346 return (String[]) stuff.toArray(result); in getCodes()
/third_party/node/deps/npm/node_modules/semver/node_modules/lru-cache/
H A Dindex.js121 return this[LRU_LIST].toArray().map(k => k.key)
125 return this[LRU_LIST].toArray().map(k => k.value)
146 }).toArray().filter(h => h)
/third_party/node/deps/npm/node_modules/socks/build/common/
H A Dhelpers.js133 return address.toArray().reduce((acc, part) => (acc << 8) + part, 0);
150 return Buffer.from(address.toArray());
/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
H A DRubyRepeatedField.java241 dup.storage.addAll((RubyArray) repeatedField.toArray(context)); in plus()
262 this.storage.addAll((RubyArray) repeatedField.toArray(context)); in concat()
290 return this.toArray(context).op_equal(context, other); in eq()
309 public IRubyObject toArray(ThreadContext context) { in toArray() method in RubyRepeatedField
/third_party/icu/icu4c/source/test/cintltst/
H A Dcldrtest.c593 UResourceBundle *toArray, const char *toLocale, in compareArrays()
610 const UChar *toBundleStr = ures_getStringByIndex(toArray, idx, NULL, &errorCode); in compareArrays()
627 UResourceBundle *fromArray, *toArray; in compareConsistentCountryInfo() local
643 toArray = ures_getByKey(toLocaleBund, "CurrencyElements", NULL, &errorCode); in compareConsistentCountryInfo()
647 compareArrays("CurrencyElements", fromArray, fromLocale, toArray, toLocale, 1, 2); in compareConsistentCountryInfo()
650 ures_close(toArray); in compareConsistentCountryInfo()
653 toArray = ures_getByKey(toLocaleBund, "NumberPatterns", NULL, &errorCode); in compareConsistentCountryInfo()
656 compareArrays("NumberPatterns", fromArray, fromLocale, toArray, toLocale, 0, 3); in compareConsistentCountryInfo()
659 ures_close(toArray); in compareConsistentCountryInfo()
664 toArray in compareConsistentCountryInfo()
591 compareArrays(const char *keyName, UResourceBundle *fromArray, const char *fromLocale, UResourceBundle *toArray, const char *toLocale, int32_t start, int32_t end) compareArrays() argument
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/impl/
H A DXMLRecordReader.java165 return list.toArray(new String[list.size()]); in stringArray()
180 return list.toArray(new String[list.size()][]); in stringTable()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/units/
H A DUnitsData.java154 this.simpleUnits = simpleUnits.toArray(new String[0]); in put()
219 indexToCategory = sink.categories.toArray(new String[0]);
/third_party/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/charsetdet/mbcs/
H A DBIG5Tool.java182 Object [] encounteredChars = m.values().toArray(); in processDir()
211 Object [] sortedChars = charList.toArray(); in processDir()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/duration/impl/
H A DXMLRecordReader.java169 return list.toArray(new String[list.size()]); in stringArray()
184 return list.toArray(new String[list.size()][]); in stringTable()
/third_party/vk-gl-cts/external/amber/src/android_gradle/app/src/androidTest/java/com/google/amber/
H A DAmberLauncher.java57 int res = Amber.androidHelper(args_list.toArray(new String[0]), stdout_file, stderr_file); in LaunchAmber()

Completed in 14 milliseconds

1234567