Home
last modified time | relevance | path

Searched refs:__assign (Results 1 – 25 of 195) sorted by relevance

12345678

/third_party/typescript/tests/baselines/reference/
DobjectSpread.js147 var __assign = (this && this.__assign) || function () {
148 __assign = Object.assign || function(t) {
156 return __assign.apply(this, arguments);
161 var addAfter = __assign(__assign({}, o), { c: false });
162 var addBefore = __assign({ c: false }, o);
163 var override = __assign(__assign({}, o), { b: 'override' });
164 var nested = __assign(__assign({}, __assign({ a: 3 }, { b: false, c: 'overriden' })), { c: 'whateve…
165 var combined = __assign(__assign({}, o), o2);
166 var combinedAfter = __assign(__assign(__assign({}, o), o2), { b: 'ok' });
167 var combinedNestedChangeType = __assign(__assign({}, __assign({ a: 1 }, { b: false, c: 'overriden' …
[all …]
DobjectSpreadNegative.js79 var __assign = (this && this.__assign) || function () {
80 __assign = Object.assign || function(t) {
88 return __assign.apply(this, arguments);
103 var o2 = __assign(__assign({}, publicX), privateOptionalX);
105 var allOptional = __assign(__assign({}, optionalString), optionalNumber);
108 var spread = __assign({ b: true }, { s: "foo" });
113 var duplicated = __assign(__assign(__assign(__assign({ b: 'bad' }, o), { b: 'bad' }), o2), { b: 'ba…
114 var duplicatedSpread = __assign(__assign({}, o), o);
116 var ignore = __assign({ b: 'ignored' }, o);
119 var combinedBefore = __assign(__assign({ b: 'ok' }, o3), o4);
[all …]
DobjectSpreadStrictNull.js48 var __assign = (this && this.__assign) || function () {
49 __assign = Object.assign || function(t) {
57 return __assign.apply(this, arguments);
61 …var optionalUnionStops = __assign(__assign(__assign({}, definiteBoolean), definiteString), optiona…
62 …var optionalUnionDuplicates = __assign(__assign(__assign(__assign({}, definiteBoolean), definiteSt…
63 var allOptional = __assign(__assign({}, optionalString), optionalNumber);
65 …var undefinedUnionStops = __assign(__assign(__assign({}, definiteBoolean), definiteString), undefi…
66 …var undefinedUnionDuplicates = __assign(__assign(__assign(__assign({}, definiteBoolean), definiteS…
67 var allUndefined = __assign(__assign({}, undefinedString), undefinedNumber);
68 …var undefinedWithOptionalContinues = __assign(__assign(__assign({}, definiteBoolean), undefinedStr…
[all …]
DobjectSpreadRepeatedComplexity.js89 var __assign = (this && this.__assign) || function () {
90 __assign = Object.assign || function(t) {
98 return __assign.apply(this, arguments);
102__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign
DspreadInvalidArgumentType.js61 var __assign = (this && this.__assign) || function () {
62 __assign = Object.assign || function(t) {
70 return __assign.apply(this, arguments);
96 var o1 = __assign({}, p1); // OK, generic type paramterre
97 var o2 = __assign({}, p2); // OK
98 var o3 = __assign({}, t); // OK, generic type paramter
99 var o4 = __assign({}, i); // Error, index access
100 var o5 = __assign({}, k); // Error, index
101 var o6 = __assign({}, mapped_generic); // OK, generic mapped object type
102 var o7 = __assign({}, mapped); // OK, non-generic mapped type
[all …]
DspreadOverwritesPropertyStrict.js39 var __assign = (this && this.__assign) || function () {
40 __assign = Object.assign || function(t) {
48 return __assign.apply(this, arguments);
50 var unused1 = __assign({ b: 1 }, ab); // error
51 var unused2 = __assign(__assign({}, ab), ab); // ok, overwritten error doesn't apply to spreads
52 var unused3 = __assign({ b: 1 }, abq); // ok, abq might have b: undefined
53 var unused4 = __assign(__assign({}, ab), { b: 1 }); // ok, we don't care that b in ab is overwritten
54 var unused5 = __assign(__assign({}, abq), { b: 1 }); // ok
56 return __assign({ x: 1 }, obj); // ok, obj might have x: undefined
59 return __assign({ x: 1 }, obj); // ok, obj might be undefined
[all …]
DspreadUnion2.js24 var __assign = (this && this.__assign) || function () {
25 __assign = Object.assign || function(t) {
33 return __assign.apply(this, arguments);
36 var o1 = __assign({}, undefinedUnion);
38 var o2 = __assign({}, nullUnion);
40 var o3 = __assign(__assign({}, undefinedUnion), nullUnion);
41 var o3 = __assign(__assign({}, nullUnion), undefinedUnion);
43 var o4 = __assign(__assign({}, undefinedUnion), undefinedUnion);
45 var o5 = __assign(__assign({}, nullUnion), nullUnion);
DobjectSpreadRepeatedNullCheckPerf.js66 var __assign = (this && this.__assign) || function () {
67 __assign = Object.assign || function(t) {
75 return __assign.apply(this, arguments);
78__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign
DdestructuringSpread.js32 var __assign = (this && this.__assign) || function () {
33 __assign = Object.assign || function(t) {
41 return __assign.apply(this, arguments);
43 var x = __assign({}, { x: 0 }).x;
44 var y = __assign({ y: 0 }, {}).y;
45 var _a = __assign({ z: 0 }, { a: 0, b: 0 }), z = _a.z, a = _a.a, b = _a.b;
46 var _b = __assign(__assign({}, __assign(__assign({}, __assign({
DjsxJsxsCjsTransformKeyPropCustomImportPragma(jsx=react-jsx).js25 var __assign = (this && this.__assign) || function () {
26 __assign = Object.assign || function(t) {
34 return __assign.apply(this, arguments);
42 var a = jsx_runtime_1.jsx("div", __assign({}, props, { children: "text" }), "foo");
43 var b = preact_1.createElement("div", __assign({}, props, { key: "bar" }), "text");
46 var __assign = (this && this.__assign) || function () {
47 __assign = Object.assign || function(t) {
55 return __assign.apply(this, arguments);
64 var a2 = jsx_runtime_1.jsx("div", __assign({}, props2, { children: "text" }), "foo");
65 var b2 = react_1.createElement("div", __assign({}, props2, { key: "bar" }), "text");
DjsxJsxsCjsTransformKeyPropCustomImportPragma(jsx=react-jsxdev).js25 var __assign = (this && this.__assign) || function () {
26 __assign = Object.assign || function(t) {
34 return __assign.apply(this, arguments);
43 var a = jsx_dev_runtime_1.jsxDEV("div", __assign({}, props, { children: "text" }), "foo", false, { …
44 var b = preact_1.createElement("div", __assign({}, props, { key: "bar" }), "text");
47 var __assign = (this && this.__assign) || function () {
48 __assign = Object.assign || function(t) {
56 return __assign.apply(this, arguments);
66 var a2 = jsx_dev_runtime_1.jsxDEV("div", __assign({}, props2, { children: "text" }), "foo", false, …
67 var b2 = react_1.createElement("div", __assign({}, props2, { key: "bar" }), "text");
DobjectSpreadNegativeParse.js9 var __assign = (this && this.__assign) || function () {
10 __assign = Object.assign || function(t) {
18 return __assign.apply(this, arguments);
20 var o7 = __assign({}, o ? : );
21 var o8 = __assign({}, * o);
22 var o9 = __assign({}, matchMedia()), _a = void 0;
24 var o10 = __assign(__assign({}, get), { x: function () { return 12; } });
DobjectSpreadComputedProperty.js14 var __assign = (this && this.__assign) || function () {
15 __assign = Object.assign || function(t) {
23 return __assign.apply(this, arguments);
31 var o1 = __assign({}, (_a = {}, _a[n] = n, _a));
32 var o2 = __assign({}, (_b = {}, _b[a] = n, _b));
33 …var o3 = __assign(__assign(__assign(__assign((_c = {}, _c[a] = n, _c), {}), (_d = {}, _d[n] = n, _…
DspreadOverwritesProperty.js18 var __assign = (this && this.__assign) || function () {
19 __assign = Object.assign || function(t) {
27 return __assign.apply(this, arguments);
29 var unused1 = __assign({ b: 1 }, ab);
30 var unused2 = __assign(__assign({}, ab), ab);
31 var unused3 = __assign({ b: 1 }, abq);
33 return __assign({ x: 1 }, obj);
36 return __assign({ x: 1 }, obj);
DobjectSpreadIndexSignature.js22 var __assign = (this && this.__assign) || function () {
23 __assign = Object.assign || function(t) {
31 return __assign.apply(this, arguments);
33 var i = __assign(__assign({}, indexed1), { b: 11 });
36 var ii = __assign(__assign({}, indexed1), indexed2);
39 indexed3 = __assign({}, b ? indexed3 : undefined);
40 var writable = __assign({}, roindex);
DspreadTypeVariable.js29 var __assign = (this && this.__assign) || function () {
30 __assign = Object.assign || function(t) {
38 return __assign.apply(this, arguments);
41 return __assign({}, arg);
44 return __assign({}, arg);
47 return __assign({}, arg);
50 return __assign({}, arg);
53 return __assign({}, arg);
56 return __assign({}, arg);
DspreadUnion.js14 var __assign = (this && this.__assign) || function () {
15 __assign = Object.assign || function(t) {
23 return __assign.apply(this, arguments);
27 var o3 = __assign({}, union);
29 var o4 = __assign(__assign({}, union), { a: false });
31 var o5 = __assign(__assign({}, union), union);
DobjectSpreadWithinMethodWithinObjectWithSpread.js15 var __assign = (this && this.__assign) || function () {
16 __assign = Object.assign || function(t) {
24 return __assign.apply(this, arguments);
27 var a = __assign(__assign({}, obj), { prop: function () {
28 return __assign(__assign({}, obj), { metadata: 213 });
DspreadOfObjectLiteralAssignableToIndexSignature.js18 var __assign = (this && this.__assign) || function () {
19 __assign = Object.assign || function(t) {
27 return __assign.apply(this, arguments);
31 recordOfRecords.propA = __assign({}, (foo !== undefined ? { foo: foo } : {})); // OK
32 recordOfRecords.propB = __assign({}, (foo && { foo: foo })); // OK
33 recordOfRecords.propC = __assign({}, (foo !== undefined && { foo: foo })); // error'd in 3.7 beta, …
35 recordsOfRecordsOrEmpty.propA = __assign({}, (foo !== undefined ? { foo: foo } : {})); // OK
36 recordsOfRecordsOrEmpty.propB = __assign({}, (foo && { foo: foo })); // OK
37 recordsOfRecordsOrEmpty.propC = __assign({}, (foo !== undefined && { foo: foo })); // OK
DspreadUnion3.js23 var __assign = (this && this.__assign) || function () {
24 __assign = Object.assign || function(t) {
32 return __assign.apply(this, arguments);
35 return __assign({ y: 123 }, x); // y: string | number
39 var b = __assign({}, t);
45 var x = __assign(__assign({}, nullAndUndefinedUnion), nullAndUndefinedUnion);
46 var y = __assign({}, nullAndUndefinedUnion);
DtaggedTemplateStringsWithCurriedFunction.js19 var __assign = (this && this.__assign) || function () {
20 __assign = Object.assign || function(t) {
28 return __assign.apply(this, arguments);
37 f(__assign({ x: 0 }))(__makeTemplateObject([""], [""]));
38 f(__assign({ x: 0 }))(__makeTemplateObject(["x"], ["x"]));
39 f(__assign({ x: 0 }))(__makeTemplateObject(["x", "x"], ["x", "x"]), f);
40 f(__assign({ x: 0 }, { y: (function () { return 1; })() }))(__makeTemplateObject([""], [""]));
41 f(__assign({ x: (function () { return 1; })() }, { y: 1 }))(__makeTemplateObject([""], [""]));
DtsxReactEmit2.js19 var __assign = (this && this.__assign) || function () {
20 __assign = Object.assign || function(t) {
28 return __assign.apply(this, arguments);
31 var spreads1 = React.createElement("div", __assign({}, p1), p2);
32 var spreads2 = React.createElement("div", __assign({}, p1), p2);
33 var spreads3 = React.createElement("div", __assign({ x: p3 }, p1), p2);
34 var spreads4 = React.createElement("div", __assign({}, p1, { x: p3 }), p2);
35 var spreads5 = React.createElement("div", __assign({ x: p2 }, p1, { y: p3 }), p2);
DspreadIntersection.js11 var __assign = (this && this.__assign) || function () {
12 __assign = Object.assign || function(t) {
20 return __assign.apply(this, arguments);
24 var o1 = __assign({}, intersection);
26 var o2 = __assign(__assign({}, intersection), { c: false });
DexcessPropertyCheckWithSpread.js21 var __assign = (this && this.__assign) || function () {
22 __assign = Object.assign || function(t) {
30 return __assign.apply(this, arguments);
32 f(__assign({ a: 1 }, i));
33 f(__assign(__assign({ a: 1 }, l), r));
DspreadIdenticalTypesRemoved.js32 var __assign = (this && this.__assign) || function () {
33 __assign = Object.assign || function(t) {
41 return __assign.apply(this, arguments);
44 return __assign({ name: pet.name, kind: pet.kind }, (fullCopy && pet));
47 return __assign(__assign({}, (pet.owner && pet)), { paid: false });

12345678