| /third_party/typescript/tests/baselines/reference/ |
| H A D | destructuringSameNames.js | 5 ({ foo, foo } = { foo: 2 }); 7 ({ foo: bar, foo } = { foo: 4 }); 8 ({ foo, bar: foo } = { foo: 3, bar: 33 }); 9 ({ bar: foo, foo } = { foo: 4, bar: 44 }); 11 ({ foo: bar, bar: foo } = { foo: 6, bar: 66 }); 14 [foo, foo] = [111, 1111]; 15 [foo, foo] = [222, 2222]; 16 [bar, foo, foo] = [333, 3333, 33333]; 17 [foo, bar, foo] = [333, 3333, 33333]; 36 var _p = { foo: 1 }, foo = _ [all...] |
| H A D | multiline.types | 49 >( <div> {/* @ts-ignore */} <MyComponent foo={100} /> {/*@ts-ignore*/} <MyComponent foo={100} /> {/* @ts-expect-error */} <MyComponent foo={100} /> {/* // @ts-expect-error */} <MyComponent foo={100} /> {/* * @ts-expect-error */} <MyComponent foo={100} /> {/*@ts-expect-error*/} <MyComponent foo={100} /> {/* @ts-expect-error */} <MyComponent foo={"hooray"} /> </div>) : JSX.Element
52 ><div> {/* @ts-ignore */} <MyComponent foo={100} /> {/*@ts-ignore*/} <MyComponent foo={100} /> {/* @ts-expect-error */} <MyComponent foo={10 [all...] |
| H A D | privateNameDuplicateField.js | 6 #foo = "foo"; "foo"; 7 #foo = "foo"; 12 #foo = "foo"; 18 #foo = "foo"; 24 #foo = "foo"; 30 #foo = "foo"; 31 #foo = "foo"; 32 static #foo = "foo"; 36 #foo = "foo"; 42 #foo = "foo"; 48 #foo = "fo [all...] |
| H A D | controlFlowOptionalChain.js | 166 if (o?.foo === value) { 169 o.foo; 170 } 171 if (o?.["foo"] === value) { 175 if (o?.foo == value) { 178 o.foo; 179 } 180 if (o?.["foo"] == value) { 187 if (o?.foo === value) { 190 o.foo; 191 } 192 if (o?.["foo"] === value) { 196 if (o?.foo == value) { 199 o.foo; 200 } 201 if (o?.["foo"] == value) { 208 if (o?.foo === value) { 211 if (o?.["foo"] = [all...] |
| H A D | tsxLibraryManagedAttributes.js | 55 const a = <Component foo={12} bar="yes" baz="yeah" />; 56 const b = <Component foo={12} />; // Error, missing required prop bar 59 const e = <Component foo={12} bar={null} baz="cool" />; // bar is nullable/undefinable since it's not marked `isRequired` 60 const f = <Component foo={12} bar="yeah" baz={null} />; // Error, baz is _not_ nullable/undefinable since it's marked `isRequired` 69 const g = <JustPropTypes foo={12} bar="ok" />; 70 const h = <JustPropTypes foo="no" />; // error, wrong type 71 const i = <JustPropTypes foo={null} bar="ok" />; 72 const j = <JustPropTypes foo={12} bar={null} />; // error, bar is required 80 const k = <JustDefaultProps foo={12} />; 81 const l = <JustDefaultProps foo={1 [all...] |
| H A D | tsxLibraryManagedAttributes.types | 132 const a = <Component foo={12} bar="yes" baz="yeah" />;
134 ><Component foo={12} bar="yes" baz="yeah" /> : JSX.Element
141 const b = <Component foo={12} />; // Error, missing required prop bar
143 ><Component foo={12} /> : JSX.Element
163 const e = <Component foo={12} bar={null} baz="cool" />; // bar is nullable/undefinable since it's not marked `isRequired`
165 ><Component foo={12} bar={null} baz="cool" /> : JSX.Element
173 const f = <Component foo={12} bar="yeah" baz={null} />; // Error, baz is _not_ nullable/undefinable since it's marked `isRequired`
175 ><Component foo={12} bar="yeah" baz={null} /> : JSX.Element
208 const g = <JustPropTypes foo={12} bar="ok" />;
210 ><JustPropTypes foo={1 [all...] |
| H A D | spreadOfObjectLiteralAssignableToIndexSignature.types | 11 recordOfRecords.propA = {...(foo !== undefined ? {foo} : {})} // OK
12 >recordOfRecords.propA = {...(foo !== undefined ? {foo} : {})} : { foo?: Record<never, never> | undefined; }
16 >{...(foo !== undefined ? {foo} : {})} : { foo?: Record<never, never> | undefined; }
17 >(foo !== undefined ? {foo} : {}) : { foo: Record<never, never>; } | {}
18 >foo !== undefined ? {foo} : {} : { foo: Record<never, never>; } | {}
19 >foo !== undefined : boolean
38 recordOfRecords.propC = {...(foo !== undefined && {foo})} // error'd in 3.7 beta, should be OK
39 >recordOfRecords.propC = {...(foo !== undefined && {foo})} : { foo?: Record<never, never> | undefined; }
43 >{...(foo !== undefined && {foo})} : { foo?: Record<never, never> | undefined; }
44 >(foo != [all...] |
| H A D | contextuallyTypedParametersWithInitializers.js | 8 const f10 = function ({ foo = 42 }) { return foo }; 9 const f10 = function ({ foo = 42 }) { return foo }; 10 const f11 = id1(function ({ foo = 42 }) { return foo }); 10 const f10 = function ({ foo = 42 }) { return foo }; 11 const f11 = id1(function ({ foo = 42 }) { return foo }); 12 const f12 = id2(function ({ foo = 42 }) { return foo }); 11 const f10 = function ({ foo = 42 }) { return foo }; 12 const f11 = id1(function ({ foo = 42 }) { return foo }); 13 const f12 = id2(function ({ foo = 42 }) { return foo }); 14 const f13 = id3(function ({ foo = 42 }) { return foo }); 12 const f10 = function ({ foo = 42 }) { return foo }; 13 const f11 = id1(function ({ foo = 42 }) { return foo }); 14 const f12 = id2(function ({ foo = 42 }) { return foo }); 15 const f13 = id3(function ({ foo = 42 }) { return foo }); 16 const f14 = id4(function ({ foo = 42 }) { return foo }); 14 const f10 = function ({ foo = 42 }) { return foo }; 15 const f11 = id1(function ({ foo = 42 }) { return foo }); 16 const f12 = id2(function ({ foo = 42 }) { return foo }); 17 const f13 = id3(function ({ foo = 42 }) { return foo }); 18 const f14 = id4(function ({ foo = 42 }) { return foo }); 19 20 const f20 = function (foo = 42) { return foo }; 15 const f10 = function ({ foo = 42 }) { return foo }; 16 const f11 = id1(function ({ foo = 42 }) { return foo }); 17 const f12 = id2(function ({ foo = 42 }) { return foo }); 18 const f13 = id3(function ({ foo = 42 }) { return foo }); 19 const f14 = id4(function ({ foo = 42 }) { return foo }); 20 21 const f20 = function (foo = 42) { return foo }; 22 const f21 = id1(function (foo = 42) { return foo }); 16 const f10 = function ({ foo = 42 }) { return foo }; 17 const f11 = id1(function ({ foo = 42 }) { return foo }); 18 const f12 = id2(function ({ foo = 42 }) { return foo }); 19 const f13 = id3(function ({ foo = 42 }) { return foo }); 20 const f14 = id4(function ({ foo = 42 }) { return foo }); 21 22 const f20 = function (foo = 42) { return foo }; 23 const f21 = id1(function (foo = 42) { return foo }); 24 const f22 = id2(function (foo = 42) { return foo }); 17 const f10 = function ({ foo = 42 }) { return foo }; 18 const f11 = id1(function ({ foo = 42 }) { return foo }); 19 const f12 = id2(function ({ foo = 42 }) { return foo }); 20 const f13 = id3(function ({ foo = 42 }) { return foo }); 21 const f14 = id4(function ({ foo = 42 }) { return foo }); 22 23 const f20 = function (foo = 42) { return foo }; 24 const f21 = id1(function (foo = 42) { return foo }); 25 const f22 = id2(function (foo = 42) { return foo }); 26 const f25 = id5(function (foo = 42) { return foo }); 48 function getFoo ({ foo = 4 [all...] |
| H A D | stringLiteralTypesOverloadAssignability03.types | 3 >f : (x: "foo") => number
7 >f : (x: "foo") => number
15 >g : (x: "foo") => number
19 >g : (x: "foo") => number
27 >a : (x: "foo") => number
28 >f : (x: "foo") => number
31 >b : (x: "foo") => number
32 >g : (x: "foo") => number
35 >a = b : (x: "foo") => number
36 >a : (x: "foo") => numbe [all...] |
| H A D | stringLiteralTypesOverloadAssignability04.types | 3 >f : (x: "foo") => number
7 >f : (x: "foo") => number
15 >g : (x: "foo") => number
19 >g : (x: "foo") => number
27 >a : (x: "foo") => number
28 >f : (x: "foo") => number
31 >b : (x: "foo") => number
32 >g : (x: "foo") => number
35 >a = b : (x: "foo") => number
36 >a : (x: "foo") => numbe [all...] |
| H A D | privateNameDuplicateField.types | 9 #foo = "foo";
11 >"foo" : "foo"
12
13 #foo = "foo";
22 #foo = "foo";
34 #foo = "foo";
47 #foo = "foo";
60 #foo = "foo";
64 >"foo" : "foo"
65
66 static #foo = "foo";
73 #foo = "foo";
85 #foo = "foo";
98 #foo = "fo [all...] |
| H A D | controlFlowOptionalChain.errors.txt | 269 if (o?.foo === value) {
272 o.foo;
273 }
274 if (o?.["foo"] === value) {
278 if (o?.foo == value) {
281 o.foo;
282 }
283 if (o?.["foo"] == value) {
290 if (o?.foo === value) {
293 o.foo;
294 }
295 if (o?.["foo"] === value) {
299 if (o?.foo == value) {
302 o.foo;
303 }
304 if (o?.["foo"] == value) {
311 if (o?.foo === value) {
316 if (o?.["foo"] = [all...] |
| H A D | controlFlowBindingElement.types | 71 param = (() => { foo = undefined })(),
73 >(() => { foo = undefined })() : void
74 >(() => { foo = undefined }) : () => void
75 >() => { foo = undefined } : () => void
76 >foo = undefined : undefined
136 const { [(() => { foo = ""; return 'window' as const })()]:
137 >(() => { foo = ""; return 'window' as const })() : "window"
138 >(() => { foo = ""; return 'window' as const }) : () => "window"
139 >() => { foo = ""; return 'window' as const } : () => "window"
140 >foo = "" [all...] |
| H A D | destructuringSameNames.types | 12 ({ foo, foo } = { foo: 2 });
13 >({ foo, foo } = { foo: 2 }) : { foo: number; }
14 >{ foo, foo } = { foo: 2 } : { foo: number; }
33 ({ foo: bar, foo } = { foo: 4 });
34 >({ foo: bar, foo } = { foo: 4 }) : { foo: number; }
35 >{ foo: bar, foo } = { foo: 4 } : { foo: number; }
44 ({ foo, bar: foo } = { foo: 3, bar: 33 });
45 >({ foo, bar: foo } = { foo: 3, bar: 33 }) : { foo: number; bar: number; }
46 >{ foo, bar: foo } = { foo: 3, bar: 33 } : { foo: number; bar: number; }
57 ({ bar: foo, foo } = { fo [all...] |
| H A D | controlFlowOptionalChain.types | 648 if (o?.foo === value) {
649 >o?.foo === value : boolean
660 if (o?.["foo"] === value) {
661 >o?.["foo"] === value : boolean
685 if (o?.foo == value) {
686 >o?.foo == value : boolean
697 if (o?.["foo"] == value) {
698 >o?.["foo"] == value : boolean
730 if (o?.foo === value) {
731 >o?.foo = [all...] |
| H A D | stringLiteralsWithSwitchStatements02.types | 18 b = "foo" == y
19 >b = "foo" == y : boolean
21 >"foo" == y : boolean
32 >"foo" : "foo"
33
34 b = "foo" == "bar";
33 >b = "foo" == "bar" : boolean
35 >"foo" == "bar" : boolean
46 b = "foo" != y
47 >b = "foo" != y : boolean
49 >"foo" != y : boolean
60 >"foo" : "foo"
61
62 b = "foo" != "ba [all...] |
| H A D | findAllRefsPrivateNameProperties.baseline.jsonc | 3 // /*FIND ALL REFS*/[|#foo|] = 10; 5 // this.[|#foo|] = 20; 12 // this.#foo = 20; 18 // this.#foo = 20; 119 // [|#foo|] = 10; 121 // this./*FIND ALL REFS*/[|#foo|] = 20; 128 // this.#foo = 20; 134 // this.#foo = 20; 232 // [|#foo|] = 10; 234 // this.[|#foo|] = 2 [all...] |
| H A D | contextuallyTypedParametersWithInitializers.types | 28 const f10 = function ({ foo = 42 }) { return foo };
30 >function ({ foo = 42 }) { return foo } : ({ foo }: { foo?: number | undefined; }) => number
35 const f11 = id1(function ({ foo = 42 }) { return foo });
37 >id1(function ({ foo = 42 }) { return foo }) : ({ foo }: { foo?: number | undefined; }) => number
39 >function ({ foo = 42 }) { return foo } : ({ foo }: { foo?: number | undefined; }) => number
44 const f12 = id2(function ({ foo = 42 }) { return foo });
46 >id2(function ({ foo = 42 }) { return foo }) : ({ foo }: any) => any
48 >function ({ foo = 42 }) { return foo } : ({ foo }: any) => any
53 const f13 = id3(function ({ foo = 42 }) { return foo });
55 >id3(function ({ foo = 4 [all...] |
| /third_party/typescript/tests/cases/conformance/classes/members/privateNames/ |
| H A D | privateNameDuplicateField.ts | 8 #foo = "foo";
"foo";
9 #foo = "foo";
14 #foo = "foo";
20 #foo = "foo";
26 #foo = "foo";
32 #foo = "foo";
33 #foo = "foo";
34 static #foo = "foo";
38 #foo = "foo";
44 #foo = "foo";
50 #foo = "fo [all...] |
| /third_party/typescript/tests/cases/conformance/controlFlow/ |
| H A D | controlFlowOptionalChain.ts | 168 if (o?.foo === value) {
171 o.foo;
172 }
173 if (o?.["foo"] === value) {
177 if (o?.foo == value) {
180 o.foo;
181 }
182 if (o?.["foo"] == value) {
189 if (o?.foo === value) {
192 o.foo;
193 }
194 if (o?.["foo"] === value) {
198 if (o?.foo == value) {
201 o.foo;
202 }
203 if (o?.["foo"] == value) {
210 if (o?.foo === value) {
213 if (o?.["foo"] = [all...] |
| /third_party/node/test/fixtures/ |
| H A D | url-searchparams.js | 4 'foo=918854443121279438895193', 5 'foo=918854443121279438895193', 8 ['foo=bar', 'foo=bar', [['foo', 'bar']]], 9 ['foo=bar&foo=quux', 'foo=bar&foo=quux', [['foo', 'bar'], ['foo', 'quux']]], 10 ['foo=1&bar=2', 'foo= [all...] |
| /third_party/node/test/parallel/ |
| H A D | test-url-format.js | 22 'http://example.com?foo=bar#frag': { 23 href: 'http://example.com/?foo=bar#frag', 28 search: '?foo=bar', 29 query: 'foo=bar', 32 'http://example.com?foo=@bar#frag': { 33 href: 'http://example.com/?foo=@bar#frag', 38 search: '?foo=@bar', 39 query: 'foo=@bar', 42 'http://example.com?foo=/bar/#frag': { 43 href: 'http://example.com/?foo=/ba [all...] |
| H A D | test-eventtarget-memoryleakwarning.js | 36 et.addEventListener('foo', () => {}); 37 et.addEventListener('foo', () => {}); 38 et.addEventListener('foo', () => {}); 45 et.addEventListener('foo', () => {}); 46 et.addEventListener('foo', () => {}); 47 et.addEventListener('foo', () => {}); 53 mc.port1.addEventListener('foo', () => {}); 54 mc.port1.addEventListener('foo', () => {}); 55 mc.port1.addEventListener('foo', () => {}); 62 mc.port1.addEventListener('foo', () => {}); [all...] |
| /third_party/typescript/tests/cases/conformance/jsx/ |
| H A D | tsxLibraryManagedAttributes.tsx | 57 const a = <Component foo={12} bar="yes" baz="yeah" />;
58 const b = <Component foo={12} />; // Error, missing required prop bar
61 const e = <Component foo={12} bar={null} baz="cool" />; // bar is nullable/undefinable since it's not marked `isRequired`
62 const f = <Component foo={12} bar="yeah" baz={null} />; // Error, baz is _not_ nullable/undefinable since it's marked `isRequired`
71 const g = <JustPropTypes foo={12} bar="ok" />;
72 const h = <JustPropTypes foo="no" />; // error, wrong type
73 const i = <JustPropTypes foo={null} bar="ok" />;
74 const j = <JustPropTypes foo={12} bar={null} />; // error, bar is required
82 const k = <JustDefaultProps foo={12} />;
83 const l = <JustDefaultProps foo={1 [all...] |
| /third_party/python/Lib/test/ |
| H A D | test_copy.py | 34 self.foo = foo 46 obj.foo = foo 167 self.foo = foo 169 return self.foo == other.foo 176 self.foo = foo 180 return self.foo == other.foo 187 self.foo = foo 191 return self.foo == other.foo 199 self.foo = foo 204 return self.foo = [all...] |