Home
last modified time | relevance | path

Searched refs:tup (Results 1 - 25 of 36) sorted by relevance

12

/third_party/typescript/tests/baselines/reference/
H A 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
33 var tup = [1, 2, 3, 4]; variable
39 var spr1 = __spreadArray([1, 2, 3], tup, true);
40 var spr2 = __spreadArray([1, 2, 3], tup, true); // Error
H A DarrayLiterals3.js27 interface tup {
33 var c0: tup = [...temp2]; // Error
H A DrecursiveMappedTypes.js19 type tup = [number, number, number, number];
21 function foo(arg: Circular<tup>): tup {
/third_party/skia/third_party/externals/abseil-cpp/absl/utility/
H A Dutility_test.cc106 auto ApplyFromTupleImpl(F f, const Tup& tup, absl::index_sequence<Is...>)
107 -> decltype(f(std::get<Is>(tup)...)) {
108 return f(std::get<Is>(tup)...);
115 auto ApplyFromTuple(F f, const Tup& tup)
116 -> decltype(ApplyFromTupleImpl(f, tup, TupIdxSeq<Tup>{})) {
117 return ApplyFromTupleImpl(f, tup, TupIdxSeq<Tup>{});
137 std::vector<std::string> TupStringVecImpl(const Tup& tup,
139 return {Fmt(std::get<Is>(tup))...};
143 std::vector<std::string> TupStringVec(const std::tuple<Ts...>& tup) {
144 return TupStringVecImpl(tup, abs
[all...]
H A Dutility.h322 T make_from_tuple_impl(Tuple&& tup, absl::index_sequence<I...>) { in make_from_tuple_impl() argument
323 return T(std::get<I>(std::forward<Tuple>(tup))...); in make_from_tuple_impl()
340 constexpr T make_from_tuple(Tuple&& tup) { in make_from_tuple() argument
342 std::forward<Tuple>(tup), in make_from_tuple()
/third_party/python/Lib/test/crashers/
H A 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/skia/third_party/externals/abseil-cpp/absl/strings/internal/
H A Dstr_join_internal.h265 void operator()(std::string* out, const Tup& tup, absl::string_view sep, in operator ()()
268 fmt(out, std::get<I>(tup)); in operator ()()
269 JoinTupleLoop<I + 1, N>()(out, tup, sep, fmt); in operator ()()
279 std::string JoinAlgorithm(const std::tuple<T...>& tup, absl::string_view sep, in JoinAlgorithm() argument
282 JoinTupleLoop<0, sizeof...(T)>()(&result, tup, sep, fmt); in JoinAlgorithm()
/third_party/python/Objects/
H A Dstructseq.c319 PyObject* tup = NULL; in structseq_reduce() local
333 tup = _PyTuple_FromArray(self->ob_item, n_visible_fields); in structseq_reduce()
334 if (!tup) in structseq_reduce()
347 result = Py_BuildValue("(O(OO))", Py_TYPE(self), tup, dict); in structseq_reduce()
349 Py_DECREF(tup); in structseq_reduce()
355 Py_XDECREF(tup); in structseq_reduce()
H A Dmemoryobject.c2317 ptr_from_tuple(const Py_buffer *view, PyObject *tup) in ptr_from_tuple() argument
2320 Py_ssize_t dim, nindices = PyTuple_GET_SIZE(tup); in ptr_from_tuple()
2331 index = PyNumber_AsSsize_t(PyTuple_GET_ITEM(tup, dim), in ptr_from_tuple()
2375 memory_item_multi(PyMemoryViewObject *self, PyObject *tup) in memory_item_multi() argument
2379 Py_ssize_t nindices = PyTuple_GET_SIZE(tup); in memory_item_multi()
2393 ptr = ptr_from_tuple(view, tup); in memory_item_multi()
/third_party/skia/buildtools/checkdeps/
H A Drules.py128 tup = (allow, dependent + extra_dependent_suffix, dependee)
129 deps.add(tup)
/third_party/python/Lib/lib2to3/pgen2/
H A 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/
H A Dtimemodule.c751 PyObject *tup = NULL; local
770 if (!PyArg_ParseTuple(args, "U|O:strftime", &format_arg, &tup))
774 if (tup == NULL) {
779 else if (!gettmarg(state, tup, &buf,
963 PyObject *tup = NULL; local
966 if (!PyArg_UnpackTuple(args, "asctime", 0, 1, &tup))
970 if (tup == NULL) {
975 else if (!gettmarg(state, tup, &buf,
H A D_ssl.c1494 PyObject *tup; in _get_aia_uri() local
1495 tup = PyList_AsTuple(lst); in _get_aia_uri()
1497 return tup; in _get_aia_uri()
2043 PyObject *tup = cipher_to_tuple(cipher); in _ssl__SSLSocket_shared_ciphers_impl() local
2044 if (!tup) { in _ssl__SSLSocket_shared_ciphers_impl()
2048 PyList_SET_ITEM(res, len++, tup); in _ssl__SSLSocket_shared_ciphers_impl()
5554 PyObject *keyusage = NULL, *cert = NULL, *enc = NULL, *tup = NULL; in _ssl_enum_certificates_impl() local
5587 if ((tup = PyTuple_New(3)) == NULL) { in _ssl_enum_certificates_impl()
5591 PyTuple_SET_ITEM(tup, 0, cert); in _ssl_enum_certificates_impl()
5593 PyTuple_SET_ITEM(tup, in _ssl_enum_certificates_impl()
5652 PyObject *crl = NULL, *enc = NULL, *tup = NULL; _ssl_enum_crls_impl() local
[all...]
H A D_asynciomodule.c718 PyObject *tup = PyTuple_New(2); in future_add_done_callback() local
719 if (tup == NULL) { in future_add_done_callback()
723 PyTuple_SET_ITEM(tup, 0, arg); in future_add_done_callback()
725 PyTuple_SET_ITEM(tup, 1, (PyObject *)ctx); in future_add_done_callback()
728 int err = PyList_Append(fut->fut_callbacks, tup); in future_add_done_callback()
730 Py_DECREF(tup); in future_add_done_callback()
733 Py_DECREF(tup); in future_add_done_callback()
738 Py_DECREF(tup); in future_add_done_callback()
742 PyList_SET_ITEM(fut->fut_callbacks, 0, tup); /* borrow */ in future_add_done_callback()
H A Dsignalmodule.c1114 PyObject *tup = Py_BuildValue("(iiiiiii)", SIGABRT, SIGBREAK, SIGFPE, local
1117 PyObject *tup = Py_BuildValue("(iiiiii)", SIGABRT, SIGFPE, SIGILL,
1120 if (tup == NULL) {
1123 PyObject *set = PySet_New(tup);
1124 Py_DECREF(tup);
H A D_collectionsmodule.c1978 PyObject *tup; in defdict_missing() local
1979 tup = PyTuple_Pack(1, key); in defdict_missing()
1980 if (!tup) return NULL; in defdict_missing()
1981 PyErr_SetObject(PyExc_KeyError, tup); in defdict_missing()
1982 Py_DECREF(tup); in defdict_missing()
/third_party/python/Lib/
H A Dargparse.py523 tup = self._current_indent, '', action_header
524 action_header = '%*s%s\n' % tup
528 tup = self._current_indent, '', action_width, action_header
529 action_header = '%*s%-*s ' % tup
534 tup = self._current_indent, '', action_header
535 action_header = '%*s%s\n' % tup
2303 tup = action, option_string, explicit_arg
2304 result.append(tup)
2318 tup = action, option_string, short_explicit_arg
2319 result.append(tup)
[all...]
H A Dtabnanny.py269 firsts = (str(tup[0]) for tup in w)
H A Dfunctools.py441 def __init__(self, tup, hash=hash):
442 self[:] = tup
443 self.hashvalue = hash(tup)
H A Dpstats.py223 for word, tup in self.sort_arg_dict_default.items():
231 dict[fragment] = tup
/third_party/skia/third_party/externals/abseil-cpp/absl/types/internal/
H A Dconformance_testing_helpers.h296 void ForEachTupleElement(const Fun& fun, const Tup& tup) { in ForEachTupleElement() argument
297 absl::apply(ForEachParameterFun<Fun>{fun}, tup); in ForEachTupleElement()
/third_party/python/Python/
H A Dpylifecycle.c1388 PyObject *tup = PyTuple_Pack(2, name, wr); \ in finalize_remove_modules()
1389 if (!tup || PyList_Append(weaklist, tup) < 0) { \ in finalize_remove_modules()
1392 Py_XDECREF(tup); \ in finalize_remove_modules()
1484 PyObject *tup = PyList_GET_ITEM(weaklist, i); in finalize_modules_clear_weaklist() local
1485 PyObject *name = PyTuple_GET_ITEM(tup, 0); in finalize_modules_clear_weaklist()
1486 PyObject *mod = PyWeakref_GET_OBJECT(PyTuple_GET_ITEM(tup, 1)); in finalize_modules_clear_weaklist()
H A Derrors.c199 PyObject *tup = PyTuple_Pack(1, arg); in _PyErr_SetKeyError() local
200 if (!tup) { in _PyErr_SetKeyError()
204 _PyErr_SetObject(tstate, PyExc_KeyError, tup); in _PyErr_SetKeyError()
205 Py_DECREF(tup); in _PyErr_SetKeyError()
/third_party/python/Lib/test/
H A Dtest_heapq.py184 tup = random.choice('ABC'), random.randrange(-500, 500)
185 row.append(tup)
/third_party/python/Lib/http/
H A Dcookiejar.py1486 def _cookie_from_cookie_tuple(self, tup, request):
1489 name, value, standard, rest = tup
1582 for tup in cookie_tuples:
1583 cookie = self._cookie_from_cookie_tuple(tup, request)

Completed in 40 milliseconds

12