Home
last modified time | relevance | path

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

123

/third_party/typescript/tests/ts_extra_tests/test_ts_cases/4.2/leading_middle_rest_elements_in_tuple_types/
Dleading_middle_rest_elements_in_tuple_types1.ts27 let tup: [myType, string, boolean] = [() => { }, 'a', true]; variable
28 Assert.isFunction(tup[0]);
29 Assert.isString(tup[1]);
30 Assert.isBoolean(tup[2]);
32 tup = [{ o: 'obj' }, 'b', false];
33 Assert.isObject(tup[0]);
34 Assert.isString(tup[1]);
35 Assert.isBoolean(tup[2]);
/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
DrecursiveMappedTypes.symbols44 type tup = [number, number, number, number];
45 >tup : Symbol(tup, Decl(recursiveMappedTypes.ts, 16, 56))
47 function foo(arg: Circular<tup>): tup {
51 >tup : Symbol(tup, Decl(recursiveMappedTypes.ts, 16, 56))
52 >tup : Symbol(tup, Decl(recursiveMappedTypes.ts, 16, 56))
DarrayLiterals3.js27 interface tup {
33 var c0: tup = [...temp2]; // Error
DarrayLiteralExpressionContextualTyping.errors.txt17 var tup: [number, number, number] = [1, 2, 3, 4];
33 var spr1 = [1, 2, 3, ...tup];
34 var spr2:[number, number, number] = [1, 2, 3, ...tup]; // Error
DrecursiveMappedTypes.js19 type tup = [number, number, number, number];
21 function foo(arg: Circular<tup>): tup {
DarrayLiterals3.types63 interface tup {
72 var c0: tup = [...temp2]; // Error
73 >c0 : tup
DrecursiveMappedTypes.errors.txt43 type tup = [number, number, number, number];
45 function foo(arg: Circular<tup>): tup {
/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 …]
Dutility.h322 T make_from_tuple_impl(Tuple&& tup, absl::index_sequence<I...>) {
323 return T(std::get<I>(std::forward<Tuple>(tup))...);
340 constexpr T make_from_tuple(Tuple&& tup) {
342 std::forward<Tuple>(tup),
/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/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/typescript/tests/cases/conformance/types/mapped/
DrecursiveMappedTypes.ts20 type tup = [number, number, number, number]; alias
22 function foo(arg: Circular<tup>): tup {
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/
Dstr_join_internal.h265 void operator()(std::string* out, const Tup& tup, absl::string_view sep,
268 fmt(out, std::get<I>(tup));
269 JoinTupleLoop<I + 1, N>()(out, tup, sep, fmt);
279 std::string JoinAlgorithm(const std::tuple<T...>& tup, absl::string_view sep,
282 JoinTupleLoop<0, sizeof...(T)>()(&result, tup, sep, fmt);
/third_party/typescript/tests/cases/conformance/expressions/arrayLiterals/
DarrayLiterals3.ts26 interface tup { interface
32 var c0: tup = [...temp2]; // Error
/third_party/python/Objects/
Dstructseq.c324 PyObject* tup = NULL; in structseq_reduce() local
338 tup = _PyTuple_FromArray(self->ob_item, n_visible_fields); in structseq_reduce()
339 if (!tup) in structseq_reduce()
352 result = Py_BuildValue("(O(OO))", Py_TYPE(self), tup, dict); in structseq_reduce()
354 Py_DECREF(tup); in structseq_reduce()
360 Py_XDECREF(tup); in structseq_reduce()
/third_party/skia/buildtools/checkdeps/
Drules.py128 tup = (allow, dependent + extra_dependent_suffix, dependee)
129 deps.add(tup)
/third_party/python/Lib/lib2to3/pgen2/
Dpgen.py322 tup = next(self.generator)
323 while tup[0] in (tokenize.COMMENT, tokenize.NL):
324 tup = next(self.generator)
325 self.type, self.value, self.begin, self.end, self.line = tup
/third_party/python/Modules/
Dtimemodule.c728 PyObject *tup = NULL; local
747 if (!PyArg_ParseTuple(args, "U|O:strftime", &format_arg, &tup))
750 if (tup == NULL) {
755 else if (!gettmarg(tup, &buf,
940 PyObject *tup = NULL; local
943 if (!PyArg_UnpackTuple(args, "asctime", 0, 1, &tup))
945 if (tup == NULL) {
950 else if (!gettmarg(tup, &buf,
D_ssl.c1477 PyObject *tup; in _get_aia_uri() local
1478 tup = PyList_AsTuple(lst); in _get_aia_uri()
1480 return tup; in _get_aia_uri()
2007 PyObject *tup = cipher_to_tuple(sk_SSL_CIPHER_value(ciphers, i)); in _ssl__SSLSocket_shared_ciphers_impl() local
2008 if (!tup) { in _ssl__SSLSocket_shared_ciphers_impl()
2012 PyList_SET_ITEM(res, i, tup); in _ssl__SSLSocket_shared_ciphers_impl()
5451 PyObject *keyusage = NULL, *cert = NULL, *enc = NULL, *tup = NULL; in _ssl_enum_certificates_impl() local
5484 if ((tup = PyTuple_New(3)) == NULL) { in _ssl_enum_certificates_impl()
5488 PyTuple_SET_ITEM(tup, 0, cert); in _ssl_enum_certificates_impl()
5490 PyTuple_SET_ITEM(tup, 1, enc); in _ssl_enum_certificates_impl()
[all …]
/third_party/python/Lib/
Dargparse.py513 tup = self._current_indent, '', action_header
514 action_header = '%*s%s\n' % tup
518 tup = self._current_indent, '', action_width, action_header
519 action_header = '%*s%-*s ' % tup
524 tup = self._current_indent, '', action_header
525 action_header = '%*s%s\n' % tup
2257 tup = action, option_string, explicit_arg
2258 result.append(tup)
2272 tup = action, option_string, short_explicit_arg
2273 result.append(tup)
[all …]

123