Home
last modified time | relevance | path

Searched refs:tup (Results 1 – 25 of 104) sorted by relevance

12345

/third_party/typescript/tests/baselines/reference/
DarrayLiteralExpressionContextualTyping.types19 var tup: [number, number, number] = [1, 2, 3, 4];
20 >tup : [number, number, number]
54 var spr1 = [1, 2, 3, ...tup];
56 >[1, 2, 3, ...tup] : number[]
60 >...tup : number
61 >tup : [number, number, number]
63 var spr2:[number, number, number] = [1, 2, 3, ...tup]; // Error
65 >[1, 2, 3, ...tup] : [number, number, number, number, number, number]
69 >...tup : number
70 >tup : [number, number, number]
DarrayLiteralExpressionContextualTyping.symbols11 var tup: [number, number, number] = [1, 2, 3, 4];
12 >tup : Symbol(tup, Decl(arrayLiteralExpressionContextualTyping.ts, 5, 3))
26 var spr1 = [1, 2, 3, ...tup];
28 >tup : Symbol(tup, Decl(arrayLiteralExpressionContextualTyping.ts, 5, 3))
30 var spr2:[number, number, number] = [1, 2, 3, ...tup]; // Error
32 >tup : Symbol(tup, Decl(arrayLiteralExpressionContextualTyping.ts, 5, 3))
DarrayLiteralExpressionContextualTyping.js7 var tup: [number, number, number] = [1, 2, 3, 4]; variable
14 var spr1 = [1, 2, 3, ...tup];
15 var spr2:[number, number, number] = [1, 2, 3, ...tup]; // Error
29 var tup = [1, 2, 3, 4]; variable
35 var spr1 = __spreadArray([1, 2, 3], tup);
36 var spr2 = __spreadArray([1, 2, 3], tup); // Error
DarrayLiterals3.symbols37 interface tup {
38 >tup : Symbol(tup, Decl(arrayLiterals3.ts, 23, 67))
41 >0 : Symbol(tup[0], Decl(arrayLiterals3.ts, 25, 15))
44 >1 : Symbol(tup[1], Decl(arrayLiterals3.ts, 26, 25))
57 var c0: tup = [...temp2]; // Error
59 >tup : Symbol(tup, Decl(arrayLiterals3.ts, 23, 67))
DrecursiveMappedTypes.types27 type tup = [number, number, number, number];
28 >tup : tup
30 function foo(arg: Circular<tup>): tup {
31 >foo : (arg: any) => tup
/third_party/boost/boost/geometry/util/
Dtuples.hpp53 get(boost::tuples::cons<HT, TT> & tup) in get() argument
55 return boost::tuples::get<I>(tup); in get()
63 get(boost::tuples::cons<HT, TT> const& tup) in get() argument
65 return boost::tuples::get<I>(tup); in get()
153 get(std::tuple<Ts...> & tup) in get() argument
155 return std::get<I>(tup); in get()
160 get(std::tuple<Ts...> const& tup) in get() argument
162 return std::get<I>(tup); in get()
274 static type apply(Tuple const& tup, T const& t) in apply()
278 geometry::tuples::get<I>(tup), in apply()
[all …]
/third_party/boost/libs/hana/example/misc/
Dindexed_sort.cpp49 Tup tup; in main() local
50 char const(&a)[4] = tup[indices[0_c]]; in main()
51 char const(&b)[2] = tup[indices[1_c]]; in main()
52 char const(&c)[1] = tup[indices[2_c]]; in main()
53 char const(&d)[5] = tup[indices[3_c]]; in main()
54 char const(&e)[3] = tup[indices[4_c]]; in main()
/third_party/boost/libs/geometry/test/algorithms/set_operations/intersection/
Dintersection_tupled.cpp62 boost::tuple<MPt, MLs, MPo> const& tup, in check() argument
67 check(wkt1, wkt2, boost::get<0>(tup), out_p_str); in check()
68 check(wkt1, wkt2, boost::get<1>(tup), out_l_str); in check()
69 check(wkt1, wkt2, boost::get<2>(tup), out_a_str); in check()
87 std::tuple<MPt, MLs, MPo> const& tup, in check() argument
92 check(wkt1, wkt2, std::get<0>(tup), out_p_str); in check()
93 check(wkt1, wkt2, std::get<1>(tup), out_l_str); in check()
94 check(wkt1, wkt2, std::get<2>(tup), out_a_str); in check()
/third_party/boost/libs/geometry/test/algorithms/set_operations/union/
Dunion_tupled.cpp62 boost::tuple<MPt, MLs, MPo> const& tup, in check() argument
67 check(wkt1, wkt2, boost::get<0>(tup), out_p_str); in check()
68 check(wkt1, wkt2, boost::get<1>(tup), out_l_str); in check()
69 check(wkt1, wkt2, boost::get<2>(tup), out_a_str); in check()
87 std::tuple<MPt, MLs, MPo> const& tup, in check() argument
92 check(wkt1, wkt2, std::get<0>(tup), out_p_str); in check()
93 check(wkt1, wkt2, std::get<1>(tup), out_l_str); in check()
94 check(wkt1, wkt2, std::get<2>(tup), out_a_str); in check()
/third_party/boost/libs/geometry/test/algorithms/set_operations/sym_difference/
Dsym_difference_tupled.cpp62 boost::tuple<MPt, MLs, MPo> const& tup, in check() argument
67 check(wkt1, wkt2, boost::get<0>(tup), out_p_str); in check()
68 check(wkt1, wkt2, boost::get<1>(tup), out_l_str); in check()
69 check(wkt1, wkt2, boost::get<2>(tup), out_a_str); in check()
87 std::tuple<MPt, MLs, MPo> const& tup, in check() argument
92 check(wkt1, wkt2, std::get<0>(tup), out_p_str); in check()
93 check(wkt1, wkt2, std::get<1>(tup), out_l_str); in check()
94 check(wkt1, wkt2, std::get<2>(tup), out_a_str); in check()
/third_party/typescript/tests/cases/conformance/expressions/contextualTyping/
DarrayLiteralExpressionContextualTyping.ts6 var tup: [number, number, number] = [1, 2, 3, 4]; variable
13 var spr1 = [1, 2, 3, ...tup];
14 var spr2:[number, number, number] = [1, 2, 3, ...tup]; // Error
/third_party/grpc/src/python/grpcio/grpc/_cython/_cygrpc/
Diomgr.pyx.pxi54 tups_set = set((tup[4][0], tup[4][1]) for tup in tups)
59 for tup in set(tups_set):
60 hostname = str_to_bytes(tup[0])
61 grpc_string_to_sockaddr(&addresses.addrs[i], hostname, tup[1])
/third_party/python/Lib/test/crashers/
Dgc_inspection.py27 [tup] = [x for x in gc.get_referrers(marker) if type(x) is tuple]
28 print(tup)
29 print(tup[1])
/third_party/boost/boost/fusion/tuple/detail/
Dtuple.hpp101 get(Tuple& tup) in get() argument
103 return at_c<N>(tup); in get()
109 get(Tuple const& tup) in get() argument
111 return at_c<N>(tup); in get()
/third_party/skia/third_party/externals/abseil-cpp/absl/utility/
Dutility_test.cc106 auto ApplyFromTupleImpl(F f, const Tup& tup, absl::index_sequence<Is...>) in ApplyFromTupleImpl() argument
107 -> decltype(f(std::get<Is>(tup)...)) { in ApplyFromTupleImpl()
108 return f(std::get<Is>(tup)...); in ApplyFromTupleImpl()
115 auto ApplyFromTuple(F f, const Tup& tup) in ApplyFromTuple() argument
116 -> decltype(ApplyFromTupleImpl(f, tup, TupIdxSeq<Tup>{})) { in ApplyFromTuple()
117 return ApplyFromTupleImpl(f, tup, TupIdxSeq<Tup>{});
137 std::vector<std::string> TupStringVecImpl(const Tup& tup, in TupStringVecImpl() argument
139 return {Fmt(std::get<Is>(tup))...}; in TupStringVecImpl()
143 std::vector<std::string> TupStringVec(const std::tuple<Ts...>& tup) { in TupStringVec() argument
144 return TupStringVecImpl(tup, absl::index_sequence_for<Ts...>()); in TupStringVec()
[all …]
/third_party/abseil-cpp/absl/utility/
Dutility_test.cc106 auto ApplyFromTupleImpl(F f, const Tup& tup, absl::index_sequence<Is...>) in ApplyFromTupleImpl() argument
107 -> decltype(f(std::get<Is>(tup)...)) { in ApplyFromTupleImpl()
108 return f(std::get<Is>(tup)...); in ApplyFromTupleImpl()
115 auto ApplyFromTuple(F f, const Tup& tup) in ApplyFromTuple() argument
116 -> decltype(ApplyFromTupleImpl(f, tup, TupIdxSeq<Tup>{})) { in ApplyFromTuple()
117 return ApplyFromTupleImpl(f, tup, TupIdxSeq<Tup>{});
137 std::vector<std::string> TupStringVecImpl(const Tup& tup, in TupStringVecImpl() argument
139 return {Fmt(std::get<Is>(tup))...}; in TupStringVecImpl()
143 std::vector<std::string> TupStringVec(const std::tuple<Ts...>& tup) { in TupStringVec() argument
144 return TupStringVecImpl(tup, absl::index_sequence_for<Ts...>()); in TupStringVec()
[all …]
/third_party/mindspore/tests/ut/cpp/python_input/gtest_input/optimizer/ad/
Dad_test.py81 tup = scala_add(x, y), x * y
82 z = scala_add(tup[0], tup[1])
212 tup = scalar_add, scalar_mul
213 f, g = tup
224 tup = f, g
225 ff, gg = tup
/third_party/mindspore/mindspore/numpy/
Darray_ops.py478 def column_stack(tup): argument
507 if isinstance(tup, Tensor):
508 return tup
509 if not isinstance(tup, (list, tuple)):
510 _raise_type_error("Tensor or, list or tuple of tensors are required, but got ", tup)
513 for tensor in tup:
524 def vstack(tup): argument
553 if isinstance(tup, Tensor):
554 return tup
555 if not isinstance(tup, (list, tuple)):
[all …]
Dutils_const.py432 def _tuple_setitem(tup, idx, value): argument
436 tup = list(tup)
437 tup[idx] = value
438 return tuple(tup)
471 def _tuple_slice(tup, start, end): argument
473 return tup[start:end]
/third_party/boost/boost/fusion/tuple/
Dtuple.hpp111 get(Tuple& tup) in get() argument
113 return at_c<N>(tup); in get()
119 get(Tuple const& tup) in get() argument
121 return at_c<N>(tup); in get()
/third_party/boost/libs/geometry/test/algorithms/detail/
Dtupled_output.cpp46 TupleM tup; in test_back_inserters() local
47 bgd::tupled_back_inserters<TupleM>::apply(tup); in test_back_inserters()
62 TupleLsMPt tup; in test_all() local
63 add_points(bgd::tupled_output_get<bg::multi_point_tag>(tup)); in test_all()
64 BOOST_CHECK_EQUAL((boost::size(bgt::get<1>(tup))), 3u); in test_all()
/third_party/mindspore/mindspore/ccsrc/pybind_api/ir/
Dcell_py.cc54 [](const py::tuple &tup) { // __setstate__ in __anon2f5d68d40102() argument
55 if (tup.size() != 1) { in __anon2f5d68d40102()
59 Cell data(tup[0].cast<std::string>()); in __anon2f5d68d40102()
/third_party/typescript/tests/cases/conformance/expressions/arrayLiterals/
DarrayLiterals3.ts26 interface tup { interface
32 var c0: tup = [...temp2]; // Error
/third_party/mindspore/tests/ut/cpp/python_input/gtest_input/pipeline/parse/
Dparser_integrate.py83 tup = scalar_add, scalar_mul
84 f, g = tup
95 tup = f, g
96 ff, gg = tup
/third_party/typescript/tests/cases/conformance/types/mapped/
DrecursiveMappedTypes.ts20 type tup = [number, number, number, number]; alias
22 function foo(arg: Circular<tup>): tup {

12345