Home
last modified time | relevance | path

Searched refs:Tuple (Results 1 – 20 of 20) sorted by relevance

/arkcompiler/runtime_core/libpandabase/serializer/
Dtuple_to_struct.h23 template <typename Struct, size_t... Is, typename Tuple>
24 Struct TupleToStructImpl([[maybe_unused]] std::index_sequence<Is...> is, Tuple &&tup) in TupleToStructImpl()
26 return {std::get<Is>(std::forward<Tuple>(tup))...}; in TupleToStructImpl()
29 template <typename Struct, typename Tuple>
30 Struct TupleToStruct(Tuple &&tup) in TupleToStruct()
32 using T = std::remove_reference_t<Tuple>; in TupleToStruct()
35 return TupleToStructImpl<Struct>(sequence, std::forward<Tuple>(tup)); in TupleToStruct()
Dfor_each_tuple.h23 template <typename Tuple, typename F, size_t... Index>
24 void ForEachTupleImpl(Tuple &&tuple, F &&f, std::index_sequence<Index...> /* unused */) in ForEachTupleImpl()
26 …[[maybe_unused]] auto unused = {true, (f(std::get<Index>(std::forward<Tuple>(tuple))), void(), tru… in ForEachTupleImpl()
29 template <typename Tuple, typename F>
30 void ForEachTuple(Tuple &&tuple, F &&f) in ForEachTuple()
32 using T = std::remove_reference_t<Tuple>; in ForEachTuple()
35 ForEachTupleImpl(std::forward<Tuple>(tuple), std::forward<F>(f), sequence); in ForEachTuple()
/arkcompiler/runtime_core/libpandabase/os/
Dthread.h86 template <class Func, typename Tuple, size_t... I>
87 static void CallFunc(Func &func, Tuple &args, Seq<I...> /* unused */)
92 template <class Func, typename Tuple, size_t N>
93 static void CallFunc(Func &func, Tuple &args)
98 template <typename Func, typename Tuple, size_t N>
103 Tuple args_tuple;
105 auto args_ptr = static_cast<SharedPtrStruct<Tuple> *>(args);
106 SharedPtrToSharedPtrStruct<Tuple> local;
113 CallFunc<Func, Tuple, N>(*func, args_tuple);
/arkcompiler/ets_runtime/ecmascript/
Dvtable.h35 class Tuple {
43 explicit Tuple(const CVector<JSHandle<JSTaggedValue>> &vec) : items_(std::move(vec)) {} in Tuple() function
59 static Tuple CreateTuple(const JSThread *thread, JSTaggedValue phc,
80 Tuple GetTuple(const JSThread *thread, uint32_t tupleIdx) const;
82 void SetByIndex(const JSThread *thread, uint32_t idx, const VTable::Tuple &tuple);
Dvtable.cpp19 VTable::Tuple VTable::CreateTuple(const JSThread *thread, JSTaggedValue phc, in CreateTuple()
45 return VTable::Tuple(vec); in CreateTuple()
48 VTable::Tuple VTable::GetTuple(const JSThread *thread, uint32_t tupleIdx) const in GetTuple()
55 return Tuple(vec); in GetTuple()
58 void VTable::SetByIndex(const JSThread *thread, uint32_t idx, const VTable::Tuple &tuple) in SetByIndex()
Dsubtyping_operator.cpp165 VTable::Tuple tuple = eVTable->GetTuple(thread, index); in GenVTable()
170 VTable::Tuple tuple = VTable::CreateTuple(thread, phcHandle.GetTaggedValue(), owner, index); in GenVTable()
/arkcompiler/ets_frontend/es2panda/test/parser/ts/
Dtest-tuple-type2-expected.txt1 SyntaxError: Tuple members must all have or haven't names [test-tuple-type2.ts:17:17]
/arkcompiler/ets_frontend/es2panda/test/parser/ts/type_checker/
DarrayDestructuring32-expected.txt86 TypeError: Tuple type [] of length 0 has no element at index 0. [arrayDestructuring32.ts:17:1]
DarrayDestructuring1-expected.txt88 TypeError: Tuple type [] of length 0 has no element at index 0. [arrayDestructuring1.ts:17:5]
DarrayDestructuring21-expected.txt147 TypeError: Tuple type [number] of length 1 has no element at index 1. [arrayDestructuring21.ts:17:6]
DarrayDestructuring29-expected.txt143 TypeError: Tuple type [] of length 0 has no element at index 0. [arrayDestructuring29.ts:18:1]
DarrayDestructuring25-expected.txt173 TypeError: Tuple type [number] of length 1 has no element at index 1. [arrayDestructuring25.ts:17:1…
DarrayDestructuring38-expected.txt173 TypeError: Tuple type [] of length 0 has no element at index 0. [arrayDestructuring38.ts:18:2]
DarrayDestructuring15-expected.txt174 TypeError: Tuple type [number] of length 1 has no element at index 1. [arrayDestructuring15.ts:18:5]
DarrayDestructuring7-expected.txt202 TypeError: Tuple type [boolean[]] of length 1 has no element at index 1. [arrayDestructuring7.ts:17…
DarrayDestructuring30-expected.txt241 TypeError: Tuple type [] of length 0 has no element at index 1. [arrayDestructuring30.ts:19:1]
DarrayDestructuring39-expected.txt271 TypeError: Tuple type [] of length 0 has no element at index 1. [arrayDestructuring39.ts:19:2]
DarrayDestructuring27-expected.txt296 TypeError: Tuple type [number, number | string] of length 2 has no element at index 2. [arrayDestru…
DarrayDestructuring17-expected.txt371 TypeError: Tuple type [number, string] of length 2 has no element at index 2. [arrayDestructuring17…
/arkcompiler/ets_frontend/legacy_bin/api8/src/
Dindex.js2Tuple",W[W.Anonymous=16]="Anonymous",W[W.Mapped=32]="Mapped",W[W.Instantiated=64]="Instantiated",W…