/third_party/typescript/tests/ts_extra_tests/test_ts_cases/4.2/leading_middle_rest_elements_in_tuple_types/ |
D | leading_middle_rest_elements_in_tuple_types1.ts | 27 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/ |
D | arrayLiteralExpressionContextualTyping.types | 19 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]
|
D | arrayLiteralExpressionContextualTyping.symbols | 11 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))
|
D | arrayLiteralExpressionContextualTyping.js | 7 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
|
D | arrayLiterals3.symbols | 37 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))
|
D | recursiveMappedTypes.types | 27 type tup = [number, number, number, number]; 28 >tup : tup 30 function foo(arg: Circular<tup>): tup { 31 >foo : (arg: any) => tup
|
D | recursiveMappedTypes.symbols | 44 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))
|
D | arrayLiterals3.js | 27 interface tup { 33 var c0: tup = [...temp2]; // Error
|
D | arrayLiteralExpressionContextualTyping.errors.txt | 17 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
|
D | recursiveMappedTypes.js | 19 type tup = [number, number, number, number]; 21 function foo(arg: Circular<tup>): tup {
|
D | arrayLiterals3.types | 63 interface tup { 72 var c0: tup = [...temp2]; // Error 73 >c0 : tup
|
D | recursiveMappedTypes.errors.txt | 43 type tup = [number, number, number, number]; 45 function foo(arg: Circular<tup>): tup {
|
/third_party/skia/third_party/externals/abseil-cpp/absl/utility/ |
D | utility_test.cc | 106 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 …]
|
D | utility.h | 322 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/ |
D | arrayLiteralExpressionContextualTyping.ts | 6 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/ |
D | gc_inspection.py | 27 [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/ |
D | recursiveMappedTypes.ts | 20 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/ |
D | str_join_internal.h | 265 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/ |
D | arrayLiterals3.ts | 26 interface tup { interface 32 var c0: tup = [...temp2]; // Error
|
/third_party/python/Objects/ |
D | structseq.c | 324 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/ |
D | rules.py | 128 tup = (allow, dependent + extra_dependent_suffix, dependee) 129 deps.add(tup)
|
/third_party/python/Lib/lib2to3/pgen2/ |
D | pgen.py | 322 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/ |
D | timemodule.c | 728 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.c | 1477 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/ |
D | argparse.py | 513 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 …]
|