/third_party/typescript/tests/baselines/reference/ |
D | typedArrays.js | 107 function CreateTypedArraysFromMapFn2<T>(obj:ArrayLike<T>, mapFn: (n:T, v:number)=> number) { 109 typedArrays[0] = Int8Array.from(obj, mapFn); 110 typedArrays[1] = Uint8Array.from(obj, mapFn); 111 typedArrays[2] = Int16Array.from(obj, mapFn); 112 typedArrays[3] = Uint16Array.from(obj, mapFn); 113 typedArrays[4] = Int32Array.from(obj, mapFn); 114 typedArrays[5] = Uint32Array.from(obj, mapFn); 115 typedArrays[6] = Float32Array.from(obj, mapFn); 116 typedArrays[7] = Float64Array.from(obj, mapFn); 117 typedArrays[8] = Uint8ClampedArray.from(obj, mapFn); [all …]
|
D | typedArrays.types | 741 function CreateTypedArraysFromMapFn2<T>(obj:ArrayLike<T>, mapFn: (n:T, v:number)=> number) { 742 >CreateTypedArraysFromMapFn2 : <T>(obj: ArrayLike<T>, mapFn: (n: T, v: number) => number) => any[] 744 >mapFn : (n: T, v: number) => number 752 typedArrays[0] = Int8Array.from(obj, mapFn); 753 >typedArrays[0] = Int8Array.from(obj, mapFn) : Int8Array 757 >Int8Array.from(obj, mapFn) : Int8Array 762 >mapFn : (n: T, v: number) => number 764 typedArrays[1] = Uint8Array.from(obj, mapFn); 765 >typedArrays[1] = Uint8Array.from(obj, mapFn) : Uint8Array 769 >Uint8Array.from(obj, mapFn) : Uint8Array [all …]
|
D | typedArrays.symbols | 447 function CreateTypedArraysFromMapFn2<T>(obj:ArrayLike<T>, mapFn: (n:T, v:number)=> number) { 453 >mapFn : Symbol(mapFn, Decl(typedArrays.ts, 105, 57)) 461 typedArrays[0] = Int8Array.from(obj, mapFn); 467 >mapFn : Symbol(mapFn, Decl(typedArrays.ts, 105, 57)) 469 typedArrays[1] = Uint8Array.from(obj, mapFn); 475 >mapFn : Symbol(mapFn, Decl(typedArrays.ts, 105, 57)) 477 typedArrays[2] = Int16Array.from(obj, mapFn); 483 >mapFn : Symbol(mapFn, Decl(typedArrays.ts, 105, 57)) 485 typedArrays[3] = Uint16Array.from(obj, mapFn); 491 >mapFn : Symbol(mapFn, Decl(typedArrays.ts, 105, 57)) [all …]
|
/third_party/typescript/tests/cases/compiler/ |
D | typedArrays.ts | 108 function CreateTypedArraysFromMapFn2<T>(obj:ArrayLike<T>, mapFn: (n:T, v:number)=> number) { 110 typedArrays[0] = Int8Array.from(obj, mapFn); 111 typedArrays[1] = Uint8Array.from(obj, mapFn); 112 typedArrays[2] = Int16Array.from(obj, mapFn); 113 typedArrays[3] = Uint16Array.from(obj, mapFn); 114 typedArrays[4] = Int32Array.from(obj, mapFn); 115 typedArrays[5] = Uint32Array.from(obj, mapFn); 116 typedArrays[6] = Float32Array.from(obj, mapFn); 117 typedArrays[7] = Float64Array.from(obj, mapFn); 118 typedArrays[8] = Uint8ClampedArray.from(obj, mapFn); [all …]
|
/third_party/node/lib/internal/per_context/ |
D | primordials.js | 482 const arrayToSafePromiseIterable = (promises, mapFn) => argument 487 …new SafePromise((a, b) => PromisePrototypeThen(mapFn == null ? promise : mapFn(promise, i), a, b)), 497 primordials.SafePromiseAll = (promises, mapFn) => argument 501 SafePromise.all(arrayToSafePromiseIterable(promises, mapFn)).then(a, b), 513 primordials.SafePromiseAllReturnArrayLike = (promises, mapFn) => argument 523 const promise = mapFn != null ? mapFn(promises[i], i) : promises[i]; 539 primordials.SafePromiseAllReturnVoid = (promises, mapFn) => argument 544 const promise = mapFn != null ? mapFn(promises[i], i) : promises[i]; 557 primordials.SafePromiseAllSettled = (promises, mapFn) => argument 561 SafePromise.allSettled(arrayToSafePromiseIterable(promises, mapFn)).then(a, b), [all …]
|
/third_party/node/tools/ |
D | find-inactive-collaborators.mjs | 20 async function runGitCommand(cmd, mapFn) { argument 32 let returnValue = mapFn ? new Set() : ''; 34 // If no mapFn, return the value. If there is a mapFn, use it to make a Set to 38 if (mapFn) { 39 const val = mapFn(line);
|
D | find-inactive-tsc.mjs | 36 // If no mapFn, return the value. If there is a mapFn, use it to make a Set to
|
/third_party/typescript/tests/issues_cookbook_tests/pages/cases/attached/ |
D | @arkts.collections.d.ets | 119 static from<T>(arrayLike: ArrayLike<T>, mapFn: TypedArrayFromMapFn<T, number>): Int8Array; 120 … static from(arrayLike: Iterable<number>, mapFn?: TypedArrayFromMapFn<number, number>): Int8Array; 160 static from<T>(arrayLike: ArrayLike<T>, mapFn: TypedArrayFromMapFn<T, number>): Uint8Array; 161 … static from(arrayLike: Iterable<number>, mapFn?: TypedArrayFromMapFn<number, number>): Uint8Array; 201 static from<T>(arrayLike: ArrayLike<T>, mapFn: TypedArrayFromMapFn<T, number>): Int16Array; 202 … static from(arrayLike: Iterable<number>, mapFn?: TypedArrayFromMapFn<number, number>): Int16Array; 242 static from<T>(arrayLike: ArrayLike<T>, mapFn: TypedArrayFromMapFn<T, number>): Uint16Array; 243 …static from(arrayLike: Iterable<number>, mapFn?: TypedArrayFromMapFn<number, number>): Uint16Array; 283 static from<T>(arrayLike: ArrayLike<T>, mapFn: TypedArrayFromMapFn<T, number>): Int32Array; 284 … static from(arrayLike: Iterable<number>, mapFn?: TypedArrayFromMapFn<number, number>): Int32Array; [all …]
|
/third_party/typescript/tests/cases/test262-harness/ |
D | helpers.d.ts | 360 declare function CreateTypedArraysFromMapFn(obj: any, mapFn: any): [Int8Array, Uint8Array, Int16Arr… 361 declare function CreateTypedArraysFromThisObj(obj: any, mapFn: any, thisArg: any): [Int8Array, Uint…
|
/third_party/typescript/src/compiler/ |
D | core.ts | 326 export function mapIterator<T, U>(iter: Iterator<T>, mapFn: (x: T) => U): Iterator<U> { 330 …return iterRes.done ? iterRes as { done: true, value: never } : { value: mapFn(iterRes.value), don… 479 …export function mapAllOrFail<T, U>(array: readonly T[], mapFn: (x: T, i: number) => U | undefined)… 482 const mapped = mapFn(array[i], i); 491 …export function mapDefined<T, U>(array: readonly T[] | undefined, mapFn: (x: T, i: number) => U | … 495 const mapped = mapFn(array[i], i); 504 …export function mapDefinedIterator<T, U>(iter: Iterator<T>, mapFn: (x: T) => U | undefined): Itera… 512 const value = mapFn(res.value);
|
/third_party/node/doc/api/ |
D | buffer.md | 408 * `TypedArray.from(source[, mapFn[, thisArg]])`
|
/third_party/typescript/lib/ |
D | tsc.js | 382 function mapIterator(iter, mapFn) { argument 386 return iterRes.done ? iterRes : { value: mapFn(iterRes.value), done: false }; 510 function mapAllOrFail(array, mapFn) { argument 513 var mapped = mapFn(array[i], i); 522 function mapDefined(array, mapFn) { argument 526 var mapped = mapFn(array[i], i); 535 function mapDefinedIterator(iter, mapFn) { argument 543 var value = mapFn(res.value);
|
D | typingsInstaller.js | 446 function mapIterator(iter, mapFn) { argument 450 return iterRes.done ? iterRes : { value: mapFn(iterRes.value), done: false }; 585 function mapAllOrFail(array, mapFn) { argument 588 var mapped = mapFn(array[i], i); 597 function mapDefined(array, mapFn) { argument 601 var mapped = mapFn(array[i], i); 610 function mapDefinedIterator(iter, mapFn) { argument 618 var value = mapFn(res.value);
|