Home
last modified time | relevance | path

Searched refs:combine (Results 1 – 12 of 12) sorted by relevance

/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DgenericsAndHigherOrderFunctions.ts23 let combine: <T, S>(f: (_: T) => S) =>
24 AssertType(combine, "<T, S>((T) => S) => <U>((U) => T) => (U) => S");
73 …) => M) => (_: M) => M) => <R>(f: (_: N) => (_: R) => R) => h(combine(f)(g)), "<K, N>((…
78 …) => M) => (_: M) => M) => <R>(f: (_: N) => (_: R) => R) => h(combine(f)(g)), "(<M>((K)…
85 <R>(f: (_: N) => (_: R) => R) => h(combine(f)(g))
86 AssertType(<R>(f: (_: N) => (_: R) => R) => h(combine(f)(g)), "<R>((N) => (R) => R) => (R) => R");
90 AssertType(h(combine(f)(g)), "(R) => R");
92 AssertType(combine(f)(g), "(K) => (R) => R");
93 AssertType(combine(f), "<U>((U) => N) => (U) => (R) => R");
94 AssertType(combine, "<T, S>((T) => S) => <U>((U) => T) => (U) => S");
DinferFromGenericFunctionReturnTypes2.ts27 declare function combine<A, B, C>(f: (x: A) => B, g: (x: B) => C): (x: A) => C;
55 let f4: Mapper<string, boolean> = combine(wrap(s => s.length), wrap(n => n >= 10));
57 AssertType(combine(wrap(s => s.length), wrap(n => n >= 10)), "(string) => boolean");
58 AssertType(combine, "<A, B, C>((A) => B, (B) => C) => (A) => C");
111 let a4 = ["a", "b"].map(combine(wrap(s => s.length), wrap(n => n > 10)));
113 AssertType(["a", "b"].map(combine(wrap(s => s.length), wrap(n => n > 10))), "boolean[]");
115 AssertType(combine(wrap(s => s.length), wrap(n => n > 10)), "(string) => boolean");
116 AssertType(combine, "<A, B, C>((A) => B, (B) => C) => (A) => C");
130 let a5 = ["a", "b"].map(combine(identity, wrap(s => s.length)));
132 AssertType(["a", "b"].map(combine(identity, wrap(s => s.length))), "number[]");
[all …]
DtypeInferenceWithTupleType.ts21 function combine<T, U>(x: T, y: U): [T, U] {
28 let combineResult = combine("string", 10);
30 AssertType(combine("string", 10), "[string, number]");
31 AssertType(combine, "<T, U>(T, U) => [T, U]");
/arkcompiler/ets_runtime/test/typeinfer/es2abc_feature/arrow_function/
Darrow_function.ts22 let combine = (v1:number, v2:number, v3:number):number[] => {
29 AssertType(combine, "(number, number, number) => number[]");
30 AssertType(combine(1, 2, 3), "number[]");
/arkcompiler/ets_runtime/ecmascript/compiler/
Dprofiler_operation.h64 inline void ProfileCombineOpType(GateRef curType, GateRef type, TypeCombine combine) const in ProfileCombineOpType() argument
67 GateRef ret = combine(curType, type); in ProfileCombineOpType()
/arkcompiler/runtime_core/isa/
DIsaPostPlugins.cmake16 set(ISA_COMBINE "${PROJECT_SOURCE_DIR}/isa/combine.rb")
23 # ISA combine
DBUILD.gn41 script = "$ark_root/isa/combine.rb"
/arkcompiler/ets_frontend/testTs/expect/types/tuple/
DtypeInferenceWithTupleType.txt1 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 0}, {'t': 5, 'v': 'combine'}, {'t': 2, 'v': 0}, {'t': 2, 'v…
/arkcompiler/ets_runtime/ecmascript/base/
Dutf_helper.h86 std::pair<uint32_t, size_t> ConvertUtf8ToUtf16Pair(const uint8_t *data, bool combine = false);
Dutf_helper.cpp243 std::pair<uint32_t, size_t> ConvertUtf8ToUtf16Pair(const uint8_t *data, bool combine) in ConvertUtf8ToUtf16Pair() argument
267 if (combine) { in ConvertUtf8ToUtf16Pair()
/arkcompiler/runtime_core/docs/
Dir_format.md67 Panda IR needs to combine the properties of high and low level IRs.
/arkcompiler/ets_frontend/legacy_bin/api8/src/
Dindex.js2combine(n,s(r,a,o))})),n&&e.insertImports(r,t,n,!0)}};function m(t){var r=t.fixes,n=t.symbolName,i… function in e