| /arkcompiler/ets_runtime/test/moduletest/arrayreducecase/ |
| D | arrayreducecase.js | 19 (accumulator, currentValue) => accumulator + currentValue, 25 (accumulator, currentValue) => accumulator + currentValue.x, 39 const myArrayWithNoDuplicates = myArray.reduce((accumulator, currentValue) => { 40 if (!accumulator.includes(currentValue)) { 41 return [...accumulator, currentValue]; 49 const doubledPositiveNumbers = numbers.reduce((accumulator, currentValue) => { 50 if (currentValue > 0) { 51 const doubled = currentValue * 2;
|
| /arkcompiler/ets_runtime/ecmascript/debugger/ |
| D | debugger_api.cpp | 984 JSMutableHandle<JSTaggedValue> currentValue(thread, JSTaggedValue::Undefined()); in GetArrayListValue() local 987 currentValue.Update(arrayList->Get(thread, index)); in GetArrayListValue() 988 …ArrayRef::SetValueAt(ecmaVm, jsValueRef, index++, JSNApiHelper::ToLocal<JSValueRef>(currentValue)); in GetArrayListValue() 1001 JSMutableHandle<JSTaggedValue> currentValue(thread, JSTaggedValue::Undefined()); in GetDequeValue() local 1004 currentValue.Update(deque->Get(thread, index)); in GetDequeValue() 1005 …ArrayRef::SetValueAt(ecmaVm, jsValueRef, index++, JSNApiHelper::ToLocal<JSValueRef>(currentValue)); in GetDequeValue() 1024 JSMutableHandle<JSTaggedValue> currentValue(thread, JSTaggedValue::Undefined()); in GetHashMapValue() local 1033 currentValue.Update(node->GetValue(thread)); in GetHashMapValue() 1036 objRef->Set(ecmaVm, jsValue, JSNApiHelper::ToLocal<JSValueRef>(currentValue)); in GetHashMapValue() 1089 JSMutableHandle<JSTaggedValue> currentValue(thread, JSTaggedValue::Undefined()); in GetLightWeightMapValue() local [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/escompat/ |
| D | ReadonlyArray.ets | 64 …reduce(reducer: (previousValue: T, currentValue: T, currentIndex: number, array: ReadonlyArray<T>)… 66 …reduce<U>(reducer: (previousValue: U, currentValue: T, currentIndex: number, array: ReadonlyArray<… 68 …reduceRight(reducer: (previousValue: T, currentValue: T, currentIndex: number, array: ReadonlyArra… 70 …reduceRight<U>(reducer: (previousValue: U, currentValue: T, currentIndex: number, array: ReadonlyA…
|
| D | ReadonlyArrayProxy.ets | 107 …override reduce(reducer: (previousValue: T, currentValue: T, currentIndex: number, array: Readonly… 111 …override reduce<U>(reducer: (previousValue: U, currentValue: T, currentIndex: number, array: Reado… 115 …override reduceRight(reducer: (previousValue: T, currentValue: T, currentIndex: number, array: Rea… 119 …override reduceRight<U>(reducer: (previousValue: U, currentValue: T, currentIndex: number, array: …
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/array/ets_to_ts/ |
| D | test_ts_array.ts | 45 const sumReducer = (previousValue: number, currentValue: number, index: number, array: Array<Number… 46 return previousValue + currentValue; 48 const concatenateReducer = (previousValue: string, currentValue: string, index: number, array: Arra… 49 return previousValue + '' + currentValue;
|
| /arkcompiler/ets_runtime/ecmascript/ts_types/ |
| D | lib_ark_builtins.d.ts | 523 …reduce(callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => … 525 …reduceRight(callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]… 784 …reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8C… 786 …reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: U… 872 …reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8A… 874 …reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: U… 960 …reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Ar… 962 …reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: I… 1048 …reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16… 1050 …reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: U… [all …]
|
| /arkcompiler/runtime_core/static_core/tests/cts-generator/cts-template/ |
| D | call.virt.range.yaml | 19 # x = R.currentValue 23 # R.currentValue = x 26 ldobj a0, R.currentValue 45 stobj a0, R.currentValue 153 i32 currentValue 175 ##- First value of pseudorandom generator - store to R.currentValue 177 stobj v0, R.currentValue
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/array/ts_to_ets/ |
| D | test_sts_array.ets | 76 const sumReducer = (previousValue: number, currentValue: number, index: number, array: Array<Number… 77 return previousValue + currentValue 80 const concatenateReducer = (previousValue: string, currentValue: string, index: number, array: Arra… 81 return previousValue + "" + currentValue
|
| /arkcompiler/ets_runtime/test/aottest/builtins_array/ |
| D | builtins_array.ts | 100 const result = array1.reduceRight((accumulator, currentValue) => 101 accumulator.concat(currentValue),
|
| /arkcompiler/runtime_core/tests/cts-generator/cts-template/ |
| D | call.virt.range.yaml | 22 # x = R.currentValue 26 # R.currentValue = x 29 ldobj a0, R.currentValue 48 stobj a0, R.currentValue 186 i32 currentValue 212 ##- First value of pseudorandom generator - store to R.currentValue 214 stobj v0, R.currentValue 836 i32 currentValue 872 ##- First value of pseudorandom generator - store to R.currentValue 874 stobj v0, R.currentValue
|
| /arkcompiler/ets_frontend/ets2panda/test/ast/parser/ets/ |
| D | update_funcscope_error.ets | 39 …t>) => Boolean' is not compatible with type '(previousValue: Boolean, currentValue: Boolean, index…
|
| /arkcompiler/runtime_core/static_core/plugins/ets/templates/stdlib/ |
| D | BuiltinArray.erb | 43 …generic %>(<%= this_arg %>callbackfn: (previousValue: <%= el_type %>, currentValue: <%= el_type %>…
|
| D | Array_map.erb | 43 …generic %>(<%= this_arg %>callbackfn: (previousValue: <%= el_type %>, currentValue: <%= el_type %>…
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/generic_call_params/ts_to_sts/ |
| D | generic_call_params.ts | 78 export function applyFunctionGenericArray<T>(values: T[], func: (accumulator: T, currentValue: T) =…
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/generic_call_params/sts_to_ts/ |
| D | generic_call_params.ets | 70 function applyFunctionGenericArray<T>(values: FixedArray<T>, func: (accumulator: T, currentValue: T…
|
| /arkcompiler/ets_runtime/ecmascript/compiler/ |
| D | frame_states.cpp | 638 GateRef currentValue, GateRef nextValue, bool isLoopBack, bool changedInLoop) in MergeValue() argument 640 ASSERT(IsGateNotEmpty(currentValue)); in MergeValue() 642 GateRef result = currentValue; in MergeValue() 651 ASSERT(IsGateNotEmpty(currentValue)); in MergeValue() 654 acc_.NewIn(nextValue, mergedContext->loopBackIndex_ + 1, currentValue); // 1: merge in MergeValue() 658 acc_.NewIn(nextValue, mergedContext->mergeIndex_ + 1, currentValue); // 1: merge in MergeValue() 661 … acc_.NewIn(mergeValueSelector, mergedContext->mergeIndex_ + 1, currentValue); // 1: merge in MergeValue() 667 } else if (currentValue != nextValue) { in MergeValue() 681 acc_.NewIn(phi, mergedContext->mergeIndex_ + 1, currentValue); // 1: merge in MergeValue() 705 acc_.NewIn(phi, mergedContext->loopBackIndex_ + 1, currentValue); // 1: merge in MergeValue()
|
| D | frame_states.h | 248 GateRef currentValue, GateRef nextValue, bool isLoopBack, bool changedInLoop);
|
| /arkcompiler/ets_runtime/ecmascript/module/static/ |
| D | static_module_proxy_handler.cpp | 196 JSHandle<JSTaggedValue> currentValue = current.GetValue(); in DefineOwnProperty() local 197 return JSTaggedValue(JSTaggedValue::SameValue(thread, descValue, currentValue)); in DefineOwnProperty()
|
| /arkcompiler/ets_frontend/arkguard/src/utils/ |
| D | PrinterUtils.ts | 285 const currentValue = this.eventSum.get(eventName) ?? 0; constant 286 this.eventSum.set(eventName, currentValue + duration);
|
| /arkcompiler/runtime_core/static_core/plugins/ets/sdk/api/ |
| D | @ohos.util.ArrayList.ets | 428 private createBusinessError(index: string, upperLimit: number, currentValue: number): void { 429 …dex}\" is out of range. It must be >= 0 && <= ${upperLimit}. Received value is: ${currentValue}`));
|
| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/ |
| D | BuiltinArray.ets | 391 export function reduce(self: FixedArray<boolean>, callbackfn: (previousValue: boolean, currentValue… 411 … = boolean>(self: FixedArray<boolean>, callbackfn: (previousValue: U, currentValue: boolean, index… 428 …uceRight<U>(self: FixedArray<boolean>, callbackfn: (previousValue: U, currentValue: boolean, index… 885 …Right(self: FixedArray<boolean>, callbackfn: (previousValue: boolean, currentValue: boolean, index… 1351 export function reduce(self: FixedArray<byte>, callbackfn: (previousValue: byte, currentValue: byte… 1371 …duce<U = byte>(self: FixedArray<byte>, callbackfn: (previousValue: U, currentValue: byte, index: n… 1388 export function reduceRight<U>(self: FixedArray<byte>, callbackfn: (previousValue: U, currentValue:… 1845 export function reduceRight(self: FixedArray<byte>, callbackfn: (previousValue: byte, currentValue:… 2311 export function reduce(self: FixedArray<short>, callbackfn: (previousValue: short, currentValue: sh… 2331 …ce<U = short>(self: FixedArray<short>, callbackfn: (previousValue: U, currentValue: short, index: … [all …]
|
| /arkcompiler/ets_runtime/ecmascript/module/ |
| D | js_module_namespace.cpp | 261 JSHandle<JSTaggedValue> currentValue = current.GetValue(); in DefineOwnProperty() local 262 return JSTaggedValue::SameValue(thread, descValue, currentValue); in DefineOwnProperty()
|
| /arkcompiler/ets_runtime/test/moduletest/elements_kind_generic/ |
| D | elements_kind_generic.js | 1355 const isBelowThreshold = (currentValue) => currentValue < 40; argument 1865 (accumulator, currentValue) => accumulator + currentValue, 1881 (accumulator, currentValue) => accumulator + currentValue,
|
| /arkcompiler/ets_runtime/test/moduletest/array/ |
| D | array.js | 1742 let sum = arr.reduce((accumulator, currentValue) => accumulator + currentValue, 0); 1746 … let sumOfEmptyArr = emptyArr.reduce((accumulator, currentValue) => accumulator + currentValue, 0); 1750 …let sumOfSingleArr = singleArr.reduce((accumulator, currentValue) => accumulator + currentValue, 0… 1754 let sumOfArrNaN = arrNaN.reduce((accumulator, currentValue) => accumulator + currentValue, 0);
|
| /arkcompiler/ets_runtime/test/moduletest/elements_kind/ |
| D | elements_kind.js | 1362 const isBelowThreshold = (currentValue) => currentValue < 40; argument 1872 (accumulator, currentValue) => accumulator + currentValue, 1888 (accumulator, currentValue) => accumulator + currentValue,
|