/third_party/typescript/tests/baselines/reference/ |
D | destructuringWithLiteralInitializers2.js | 37 var _b = _a === void 0 ? [] : _a, x = _b[0], y = _b[1]; 40 var _b = _a === void 0 ? [1] : _a, x = _b[0], y = _b[1]; 43 var _b = _a === void 0 ? [1, 'foo'] : _a, x = _b[0], y = _b[1]; 46 var _b = _a[0], x = _b === void 0 ? 0 : _b, y = _a[1]; 49 var _b = _a === void 0 ? [] : _a, _c = _b[0], x = _c === void 0 ? 0 : _c, y = _b[1]; 52 var _b = _a === void 0 ? [1] : _a, _c = _b[0], x = _c === void 0 ? 0 : _c, y = _b[1]; 55 var _b = _a === void 0 ? [1, 'foo'] : _a, _c = _b[0], x = _c === void 0 ? 0 : _c, y = _b[1]; 58 var _b = _a[0], x = _b === void 0 ? 0 : _b, _c = _a[1], y = _c === void 0 ? 'bar' : _c; 61 …var _b = _a === void 0 ? [] : _a, _c = _b[0], x = _c === void 0 ? 0 : _c, _d = _b[1], y = _d === v… 64 …var _b = _a === void 0 ? [1] : _a, _c = _b[0], x = _c === void 0 ? 0 : _c, _d = _b[1], y = _d === … [all …]
|
D | es5-yieldFunctionObjectLiterals.js | 70 return __generator(this, function (_b) { argument 71 switch (_b.label) { 78 x = (_a.b = _b.sent(), 87 var _b; 91 _b = { 97 x = (_b[_a] = _c.sent(), 98 _b.c = 3, 99 _b); 106 var _b; 115 x = (_b = (_a.b = _c.sent(), [all …]
|
D | shorthandPropertyAssignmentsInDestructuring.js | 122 for (var _i = 0, _b = [{ s0: 1 }]; _i < _b.length; _i++) { 123 _a = _b[_i].s0, s0 = _a === void 0 ? 5 : _a; 129 for (var _i = 0, _b = [{ s0: 1 }]; _i < _b.length; _i++) { 130 _a = _b[_i].s0, s0 = _a === void 0 ? 5 : _a; 136 for (var _i = 0, _b = [{}]; _i < _b.length; _i++) { 137 _a = _b[_i].s1, s1 = _a === void 0 ? 5 : _a; 143 for (var _i = 0, _b = [{}]; _i < _b.length; _i++) { 144 _a = _b[_i].s1, s1 = _a === void 0 ? 5 : _a; 150 for (var _i = 0, _b = [{ s2: "" }]; _i < _b.length; _i++) { 151 _a = _b[_i].s2, s2 = _a === void 0 ? 5 : _a; [all …]
|
D | es5-asyncFunctionBinaryExpressions.js | 141 return __generator(this, function (_b) { argument 142 switch (_b.label) { 147 _a + (_b.sent()); 168 return __generator(this, function (_b) { argument 169 switch (_b.label) { 175 _a = (_b.sent()); 176 _b.label = 2; 199 return __generator(this, function (_b) { argument 200 switch (_b.label) { 205 _a.a = _b.sent(); [all …]
|
D | destructuringParameterDeclaration1ES5iterable.js | 122 …var _b = __read(_a, 3), a = _b[0], b = _b[1], _c = __read(_b[2], 1), _d = __read(_c[0], 1), c = _d… 126 …var j = _a.j, k = _a.k, _b = _a.l, m = _b.m, n = _b.n, _c = __read(_a.q, 3), a = _c[0], b = _c[1],… 146 var _b = _a === void 0 ? { z: { x: "hi", y: { j: 1 } } } : _a, _c = _b.z, x = _c.x, j = _c.y.j; 149 …var _b = _a === void 0 ? [undefined, null, undefined] : _a, _c = __read(_b, 3), a = _c[0], z = _c[… 152 …var _b = _a === void 0 ? [[undefined], undefined, [[undefined, undefined]]] : _a, _c = __read(_b, … 165 var _b = _a.z, x = _b.x, j = _b.y.j; 168 var _b = _a === void 0 ? { z: 10 } : _a, z = _b.z; 171 var _b = _a.z, z = _b === void 0 ? 10 : _b; 174 var _b = _a === void 0 ? { b: "hello" } : _a, b = _b.b; 177 …var _b = __read(_a, 3), a = _b[0], b = _b[1], _c = __read(_b[2], 1), _d = __read(_c[0], 1), c = _d… [all …]
|
D | es5-asyncFunctionForOfStatements.js | 96 return __generator(this, function (_b) { argument 97 switch (_b.label) { 102 _a = _b.sent(); 103 _b.label = 2; 108 _b.label = 3; 166 return __generator(this, function (_b) { argument 167 switch (_b.label) { 172 _a = _b.sent(); 173 _b.label = 2; 178 _b.label = 3; [all …]
|
D | es5-asyncFunctionObjectLiterals.js | 57 return __generator(this, function (_b) { argument 58 switch (_b.label) { 63 x = (_a.a = _b.sent(), 74 return __generator(this, function (_b) { argument 75 switch (_b.label) { 82 x = (_a.b = _b.sent(), 92 return __generator(this, function (_b) { argument 93 switch (_b.label) { 98 x = (_a[_b.sent()] = y, 109 var _b; [all …]
|
D | destructuringWithLiteralInitializers.js | 77 var x = _a.x, _b = _a.y, y = _b === void 0 ? 0 : _b; 83 var _b = _a.x, x = _b === void 0 ? 0 : _b, _c = _a.y, y = _c === void 0 ? 0 : _c; 91 var _b = _a === void 0 ? { x: 0, y: 0 } : _a, x = _b.x, y = _b.y; 97 var _b = _a === void 0 ? { x: 0 } : _a, x = _b.x, _c = _b.y, y = _c === void 0 ? 0 : _c; 104 …var _b = _a === void 0 ? {} : _a, _c = _b.x, x = _c === void 0 ? 0 : _c, _d = _b.y, y = _d === voi… 113 …var _b = _a === void 0 ? { a: {} } : _a, _c = _b.a, _d = _c.x, x = _d === void 0 ? 0 : _d, _e = _c… 127 var _b = _a[0], x = _b === void 0 ? 0 : _b, _c = _a[1], y = _c === void 0 ? 0 : _c; 132 var _b = _a === void 0 ? [0, 0] : _a, x = _b[0], y = _b[1]; 138 var _b = _a === void 0 ? [0] : _a, x = _b[0], _c = _b[1], y = _c === void 0 ? 0 : _c; 144 …var _b = _a === void 0 ? [] : _a, _c = _b[0], x = _c === void 0 ? 0 : _c, _d = _b[1], y = _d === v…
|
D | es5-asyncFunctionSwitchStatements.js | 108 return __generator(this, function (_b) { argument 109 switch (_b.label) { 115 case _b.sent(): return [3 /*break*/, 2]; 132 return __generator(this, function (_b) { argument 133 switch (_b.label) { 142 _b.sent(); 155 return __generator(this, function (_b) { argument 156 switch (_b.label) { 168 _b.sent(); 178 return __generator(this, function (_b) { argument [all …]
|
D | contextuallyTypedBindingInitializer.js | 34 var _b = _a.show, show = _b === void 0 ? function (v) { return v.toString(); } : _b; 37 var _b = _a["show"], showRename = _b === void 0 ? function (v) { return v.toString(); } : _b; 40 var _b = _a["show"], showRename = _b === void 0 ? function (v) { return v.toString(); } : _b; 43 … var _b = _a.nested, nested = _b === void 0 ? { show: function (v) { return v.toString(); } } : _b; 46 var _b = _a.prop, prop = _b === void 0 ? ["hello", 1234] : _b; 49 var _b = _a.prop, prop = _b === void 0 ? "foo" : _b;
|
D | contextuallyTypedBindingInitializerNegative.js | 32 var _b = _a.show, showRename = _b === void 0 ? function (v) { return v; } : _b; 35 var _b = _a["show"], showRename = _b === void 0 ? function (v) { return v; } : _b; 38 var _b = _a["show"], showRename = _b === void 0 ? function (v) { return v; } : _b; 41 var _b = _a.nested, nestedRename = _b === void 0 ? { show: function (v) { return v; } } : _b; 45 var _b = _a.prop, prop = _b === void 0 ? [101, 1234] : _b; 48 var _b = _a.prop, prop = _b === void 0 ? "baz" : _b;
|
D | destructuringParameterDeclaration1ES5.js | 110 … var j = _a.j, k = _a.k, _b = _a.l, m = _b.m, n = _b.n, _c = _a.q, a = _c[0], b = _c[1], c = _c[2]; 130 var _b = _a === void 0 ? { z: { x: "hi", y: { j: 1 } } } : _a, _c = _b.z, x = _c.x, j = _c.y.j; 133 var _b = _a === void 0 ? [undefined, null, undefined] : _a, a = _b[0], z = _b[1], y = _b[2]; 136 …var _b = _a === void 0 ? [[undefined], undefined, [[undefined, undefined]]] : _a, a = _b[0][0], b … 149 var _b = _a.z, x = _b.x, j = _b.y.j; 152 var _b = _a === void 0 ? { z: 10 } : _a, z = _b.z; 155 var _b = _a.z, z = _b === void 0 ? 10 : _b; 158 var _b = _a === void 0 ? { b: "hello" } : _a, b = _b.b; 164 var a = _a[0], b = _a[1], _b = _a[2][0][0], c = _b === void 0 ? 1 : _b; 206 var _b = _a === void 0 ? { x: 1, y: 2 } : _a, x = _b.x, y = _b.y; [all …]
|
D | es5-asyncFunctionNewExpressions.js | 116 return __generator(this, function (_b) { argument 117 switch (_b.label) { 122 new (_a.apply(x, [void 0, _b.sent(), z]))(); 130 var _a, _b; 135 _b = [void 0, y]; 138 new (_a.apply(x, _b.concat([_c.sent()])))(); 159 return __generator(this, function (_b) { argument 160 switch (_b.label) { 163 … new ((_a = (_b.sent())).bind.apply(_a, __spreadArray(__spreadArray([void 0], y), [z])))(); 171 var _a, _b, _c, _d; [all …]
|
D | es5-asyncFunctionArrayLiterals.js | 52 return __generator(this, function (_b) { argument 53 switch (_b.label) { 58 x = _a.concat([_b.sent()]); 67 return __generator(this, function (_b) { argument 68 switch (_b.label) { 73 … x = __spreadArray.apply(void 0, [__spreadArray.apply(void 0, _a.concat([(_b.sent())])), [z]]); 82 return __generator(this, function (_b) { argument 83 switch (_b.label) { 88 x = __spreadArray.apply(void 0, _a.concat([[_b.sent()]])); 109 return __generator(this, function (_b) { argument [all …]
|
D | es5-asyncFunctionCallExpressions.js | 117 return __generator(this, function (_b) { argument 118 switch (_b.label) { 123 _a.apply(void 0, [_b.sent(), z]); 131 var _a, _b; 136 _b = [y]; 139 _a.apply(void 0, _b.concat([_c.sent()])); 171 var _a, _b, _c, _d; 175 _b = (_a = x).apply; 180 …_b.apply(_a, _c.concat([__spreadArray.apply(void 0, [__spreadArray.apply(void 0, _d.concat([(_e.se… 188 var _a, _b, _c, _d; [all …]
|
D | destructuringParameterDeclaration2.js | 86 var _b = _a === void 0 ? [undefined, null, undefined] : _a, a = _b[0], z = _b[1], y = _b[2]; 89 …var _b = _a === void 0 ? [[undefined], undefined, [[undefined, undefined]]] : _a, a = _b[0][0], b … 94 var _b = _a.z, x = _b.x, j = _b.y.j; 97 var _b = _a === void 0 ? { z: 10 } : _a, z = _b.z; 100 var _b = _a.z, z = _b === void 0 ? 10 : _b; 103 var _b = _a === void 0 ? { b: "hello" } : _a, b = _b.b; 112 var a = _a[0], b = _a[1], _b = _a[2][0][0], c = _b === void 0 ? 1 : _b; 148 var _b = _a.x, number = _b[0], number = _b[1], number = _b[2];
|
D | optionalParameterInDestructuringWithInitializer.js | 65 var _b = _a === void 0 ? { a: 1, b: 2 } : _a, a = _b.a, b = _b.b; 70 var _b = _a === void 0 ? { a: 1, b: 2 } : _a, a = _b.a, _c = _b.b, b = _c === void 0 ? 3 : _c; 75 var _b = _a === void 0 ? { a: 1 } : _a, a = _b.a, b = _b.b; 80 …var _b = _a === void 0 ? { a: { b: 1, c: 2 }, d: 3 } : _a, _c = _b.a, b = _c.b, c = _c.c, d = _b.d; 85 …var _b = _a === void 0 ? { a: { b: 1, c: 2 }, d: 3 } : _a, _c = _b.a, b = _c.b, _d = _c.c, c = _d … 90 …var _b = _a === void 0 ? { a: { b: 1, c: 2 }, d: 3 } : _a, _c = _b.a, _d = _c === void 0 ? { b: 4,… 95 …_b = _a === void 0 ? { a: { b: 1, c: 2 }, d: 3 } : _a, _c = _b.a, _d = _c === void 0 ? { b: 4, c: … 100 var _b = _a === void 0 ? {} : _a, bar = _b.bar; 105 var _b = _a === void 0 ? {} : _a, _c = _b.bar, bar = _c === void 0 ? null : _c;
|
D | declarationsAndAssignments.js | 193 var _b = [1, "hello"], x = _b[0], y = _b[1]; 212 var _b = { x: 5, y: "hello" }, x = _b.x, y = _b.y; variable 222 var _a = [1, ["hello", [true]]], x = _a[0], _b = _a[1], y = _b[0], z = _b[1][0]; 228 var _a = { a: 1, b: { a: "hello", b: { a: true } } }, x = _a.a, _b = _a.b, y = _b.a, z = _b.b.a; 234 …var _a = [1, "hello"], _b = _a[0], x = _b === void 0 ? 0 : _b, _c = _a[1], y = _c === void 0 ? "" … 239 …var _a = [1, "hello"], _b = _a[0], x = _b === void 0 ? 0 : _b, _c = _a[1], y = _c === void 0 ? 1 :… 245 var _b = [1], d = _b[0], e = _b[1], f = _b[2]; // Error, [1] is a tuple 249 var _b = { 0: 10, 1: 20 }, c = _b[0], d = _b[1]; // Error, not array type variable 254 var _b = [], a = _b.a, b = _b.b; // Error 258 var _b = { 0: 10, 1: "hello" }, a = _b[0], b = _b[1]; variable [all …]
|
D | es5-asyncFunctionWithStatements.js | 48 return __generator(this, function (_b) { argument 49 switch (_b.label) { 52 _a = _b.sent(); 53 _b.label = 2; 58 _b.label = 3; 67 return __generator(this, function (_b) { argument 68 switch (_b.label) { 71 _b.label = 1; 78 _b.sent(); 81 _b.label = 3; [all …]
|
D | genericObjectRest.js | 51 let _a = obj, _b = a, a5 = _a[_b], r5 = __rest(_a, [typeof _b === "symbol" ? _b : _b + ""]); 56 …let _a = obj, _b = sa, a1 = _a[_b], _c = sb, b1 = _a[_c], r1 = __rest(_a, [typeof _b === "symbol" … 59 …let _a = obj, _b = k1, a1 = _a[_b], _c = k2, a2 = _a[_c], r1 = __rest(_a, [typeof _b === "symbol" … 62 …let _a = obj, _b = k1, a1 = _a[_b], _c = k2, a2 = _a[_c], r1 = __rest(_a, [typeof _b === "symbol" …
|
/third_party/boost/libs/phoenix/test/scope/ |
D | more_let_tests.cpp | 36 using boost::phoenix::local_names::_b; in main() 42 int x = (let(_a = 1)[let(_b = _1)[ _a + 0 ]])(y); in main() 44 int x = (let(_a = 1)[let(_b = _1)[ _a ]])(y); in main() 51 int x = (let(_a = 0)[let(_b = _1)[ _b ]])(y); in main() 59 int x = (let(_a = 1)[let(_b = _a)[ _a + 0 ]])(); in main() 61 int x = (let(_a = 1)[let(_b = _a)[ _a ]])(); in main() 69 int x = (let(_a = 1)[let(_b = _a)[ _b + 0 ]])(); in main() 71 int x = (let(_a = 1)[let(_b = _a)[ _b ]])(); in main() 78 int x = (let(_a = _1)[let(_b = _a)[ _a ]])(y); in main() 85 int x = (let(_a = _1)[let(_b = _a)[ _b ]])(y); in main() [all …]
|
D | more_let_tests2.cpp | 34 using boost::phoenix::local_names::_b; in main() 86 int x = (let(_a = 1, _b = 2)[let(_b = _a)[ _a ]])(y); in main() 92 int x = (let(_a = 1, _b = 2)[let(_b = _a)[ _b ]])(y); in main() 98 int x = (let(_a = val(1), _b = val(2))[let(_b = _a)[ _a ]])(y); in main() 104 int x = (let(_a = val(1), _b = val(2))[let(_b = _a)[ _b ]])(y); in main() 110 int x = (let(_a = _1, _b = val(2))[let(_b = _a)[ _a ]])(y); in main() 117 int x = (let(_a = 1, _b = 2)[let(_b = _1)[ _a ]])(y); in main()
|
/third_party/boost/libs/type_erasure/test/ |
D | test_construct.cpp | 182 ::boost::mpl::pair<_b, int> in apply() 196 ::boost::mpl::pair<_b, int> in apply() 203 struct make_arg_impl<any<Concept, _b>&> 205 static any<Concept, _b>& apply() in apply() 207 static any<Concept, _b> result( in apply() 211 ::boost::mpl::pair<_b, int> in apply() 227 struct make_arg_impl<any<Concept, _b> > 229 static any<Concept, _b> apply() in apply() 231 return make_arg_impl<any<Concept, _b>&>::apply(); in apply() 371 common<_b>,\ [all …]
|
D | test_is_subconcept.cpp | 28 BOOST_MPL_ASSERT((is_subconcept<typeid_<_a>, typeid_<_b>, mpl::map<mpl::pair<_a, _b> > >)); 29 BOOST_MPL_ASSERT_NOT((is_subconcept<typeid_<_a>, incrementable<_b>, mpl::map<mpl::pair<_a, _b> > >)… 30 …oncept<mpl::vector<typeid_<_a>, incrementable<_a> >, typeid_<_b>, mpl::map<mpl::pair<_a, _b> > >)); 31 …<mpl::vector<typeid_<_a>, incrementable<_a> >, incrementable<_b>, mpl::map<mpl::pair<_a, _b> > >)); 32 …RT((is_subconcept<typeid_<_a>, mpl::vector<typeid_<_b>, incrementable<_b> >, mpl::map<mpl::pair<_a… 33 …_subconcept<incrementable<_a>, mpl::vector<typeid_<_b>, incrementable<_b> >, mpl::map<mpl::pair<_a… 34 …_<_a>, incrementable<_a> >, mpl::vector<incrementable<_b>, typeid_<_b> >, mpl::map<mpl::pair<_a, _…
|
D | test_binding.cpp | 46 boost::mpl::map<boost::mpl::pair<_a, _b> > m3; in BOOST_AUTO_TEST_CASE() 50 …binding<boost::mpl::vector<> > b8(b1, make_binding<boost::mpl::map<boost::mpl::pair<_a, _b> > >()); in BOOST_AUTO_TEST_CASE() 75 boost::mpl::map<boost::mpl::pair<_b, _a> > m3; in BOOST_AUTO_TEST_CASE() 76 binding<typeid_<_b> > b5(b1, m3); in BOOST_AUTO_TEST_CASE() 77 BOOST_CHECK(b5.find<typeid_<_b> >()() == typeid(int)); in BOOST_AUTO_TEST_CASE() 78 binding<typeid_<_b> > b6(b1, make_binding<boost::mpl::map<boost::mpl::pair<_b, _a> > >()); in BOOST_AUTO_TEST_CASE() 79 BOOST_CHECK(b6.find<typeid_<_b> >()() == typeid(int)); in BOOST_AUTO_TEST_CASE() 84 boost::mpl::map<boost::mpl::pair<_a, int>, boost::mpl::pair<_b, char> > m1; in BOOST_AUTO_TEST_CASE() 85 binding<boost::mpl::vector<typeid_<_a>, typeid_<_b> > > b1(m1); in BOOST_AUTO_TEST_CASE() 87 BOOST_CHECK(b1.find<typeid_<_b> >()() == typeid(char)); in BOOST_AUTO_TEST_CASE() [all …]
|