| /third_party/typescript/tests/baselines/reference/ |
| D | conditionalTypesSimplifyWhenTrivial.types | 3 >fn1 : <Params>(params: Pick<Params, Exclude<keyof Params, never>>) => Params 4 ><Params>( params: Pick<Params, Exclude<keyof Params, never>>,): Params => params : <Params>(par… 6 params: Pick<Params, Exclude<keyof Params, never>>, 7 >params : Pick<Params, Exclude<keyof Params, never>> 10 >params : Pick<Params, Exclude<keyof Params, never>> 27 >fn3 : <Params>(params: Pick<Params, Extract<keyof Params, keyof Params>>) => Params 28 ><Params>( params: Pick<Params, Extract<keyof Params, keyof Params>>,): Params => params : <Para… 30 params: Pick<Params, Extract<keyof Params, keyof Params>>, 31 >params : Pick<Params, Extract<keyof Params, keyof Params>> 34 >params : Pick<Params, Extract<keyof Params, keyof Params>> [all …]
|
| D | mappedTypeErrors.types | 43 type T10 = Pick<Shape, "name">; 46 type T11 = Pick<Shape, "foo">; // Error 49 type T12 = Pick<Shape, "name" | "foo">; // Error 52 type T13 = Pick<Shape, keyof Named>; 55 type T14 = Pick<Shape, keyof Point>; // Error 58 type T15 = Pick<Shape, never>; 61 type T16 = Pick<Shape, undefined>; // Error 68 let y: Pick<Shape, T>; // Error 69 >y : Pick<Shape, T> 76 let y: Pick<Shape, T>; // Error [all …]
|
| D | bindingPatternContextualTypeDoesNotCauseWidening.types | 2 declare function pick<O, T extends keyof O>(keys: T[], obj?: O): Pick<O, T>; 3 >pick : <O, T extends keyof O>(keys: T[], obj?: O) => Pick<O, T> 7 const _ = pick(['b'], { a: 'a', b: 'b' }); // T: "b" 8 >_ : Pick<{ a: string; b: string; }, "b"> 9 >pick(['b'], { a: 'a', b: 'b' }) : Pick<{ a: string; b: string; }, "b"> 10 >pick : <O, T extends keyof O>(keys: T[], obj?: O) => Pick<O, T> 19 const { } = pick(['b'], { a: 'a', b: 'b' }); // T: "b" | "a" ??? (before fix) 20 >pick(['b'], { a: 'a', b: 'b' }) : Pick<{ a: string; b: string; }, "b"> 21 >pick : <O, T extends keyof O>(keys: T[], obj?: O) => Pick<O, T>
|
| D | mappedTypeConstraints.types | 2 function f0<T extends { a: string, b: string }>(obj: Pick<T, Extract<keyof T, 'b'>>) { 3 >f0 : <T extends { a: string; b: string; }>(obj: Pick<T, Extract<keyof T, 'b'>>) => void 6 >obj : Pick<T, Extract<keyof T, "b">> 10 >obj : Pick<T, Extract<keyof T, "b">> 14 function f1<T extends { a: string, b: string }>(obj: Pick<T, Exclude<keyof T, 'a'>>) { 15 >f1 : <T extends { a: string; b: string; }>(obj: Pick<T, Exclude<keyof T, 'a'>>) => void 18 >obj : Pick<T, Exclude<keyof T, "a">> 22 >obj : Pick<T, Exclude<keyof T, "a">> 26 function f2<T extends { a: string, b: string }, U extends { b: string, c: string }>(obj: Pick<T | U… 27 >f2 : <T extends { a: string; b: string; }, U extends { b: string; c: string; }>(obj: Pick<T | U, k… [all …]
|
| D | bindingPatternContextualTypeDoesNotCauseWidening.symbols | 2 declare function pick<O, T extends keyof O>(keys: T[], obj?: O): Pick<O, T>; 3 >pick : Symbol(pick, Decl(bindingPatternContextualTypeDoesNotCauseWidening.ts, 0, 0)) 11 >Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) 15 const _ = pick(['b'], { a: 'a', b: 'b' }); // T: "b" 17 >pick : Symbol(pick, Decl(bindingPatternContextualTypeDoesNotCauseWidening.ts, 0, 0)) 21 const { } = pick(['b'], { a: 'a', b: 'b' }); // T: "b" | "a" ??? (before fix) 22 >pick : Symbol(pick, Decl(bindingPatternContextualTypeDoesNotCauseWidening.ts, 0, 0))
|
| D | keyofIsLiteralContexualType.types | 25 declare function pick<T, K extends keyof T>(obj: T, propNames: K[]): Pick<T, K>; 26 >pick : <T, K extends keyof T>(obj: T, propNames: K[]) => Pick<T, K> 30 let x = pick({ a: 10, b: 20, c: 30 }, ["a", "c"]); 31 >x : Pick<{ a: number; b: number; c: number; }, "a" | "c"> 32 >pick({ a: 10, b: 20, c: 30 }, ["a", "c"]) : Pick<{ a: number; b: number; c: number; }, "a" | "c"> 33 >pick : <T, K extends keyof T>(obj: T, propNames: K[]) => Pick<T, K> 48 >x : Pick<{ a: number; b: number; c: number; }, "a" | "c">
|
| D | mappedTypeErrors.js | 25 type T10 = Pick<Shape, "name">; 26 type T11 = Pick<Shape, "foo">; // Error 27 type T12 = Pick<Shape, "name" | "foo">; // Error 28 type T13 = Pick<Shape, keyof Named>; 29 type T14 = Pick<Shape, keyof Point>; // Error 30 type T15 = Pick<Shape, never>; 31 type T16 = Pick<Shape, undefined>; // Error 34 let y: Pick<Shape, T>; // Error 38 let y: Pick<Shape, T>; // Error 42 let y: Pick<Shape, T>; [all …]
|
| D | varianceRepeatedlyPropegatesWithUnreliableFlag.types | 22 fn<K extends keyof T>(p1: P1<Pick<T, K>>, p2: P2<Pick<T, K>>): void; 23 >fn : <K extends keyof T>(p1: P1<Pick<T, K>>, p2: P2<Pick<T, K>>) => void 24 >p1 : P1<Pick<T, K>> 25 >p2 : P2<Pick<T, K>> 41 >i.fn : <K extends "a" | "b">(p1: P1<Pick<A & B, K>>, p2: P2<Pick<A & B, K>>) => void 43 >fn : <K extends "a" | "b">(p1: P1<Pick<A & B, K>>, p2: P2<Pick<A & B, K>>) => void
|
| D | reactDefaultPropsInferenceSuccess.errors.txt | 59 …Pick<Readonly<{ children?: ReactNode; }> & Readonly<Props>, "children" | "error"> & Partial<Pick<R… 60 …Pick<Readonly<{ children?: ReactNode; }> & Readonly<Props>, "children" | "error"> & Partial<Pick<R… 85 …Pick<Readonly<{ children?: ReactNode; }> & Readonly<Props>, "children"> & Partial<Pick<Readonly<{ … 86 …Pick<Readonly<{ children?: ReactNode; }> & Readonly<Props>, "children"> & Partial<Pick<Readonly<{ … 115 …Pick<Readonly<{ children?: ReactNode; }> & Readonly<MyPropsProps>, "children" | "error"> & Partial… 116 …Pick<Readonly<{ children?: ReactNode; }> & Readonly<MyPropsProps>, "children" | "error"> & Partial…
|
| D | mappedTypeModifiers.js | 15 var v01: Pick<T, keyof T>; 16 var v01: Pick<Pick<T, keyof T>, keyof T>; 22 var v02: Pick<TP, keyof TP>; 28 var v03: Pick<TR, keyof TR>; 37 var v04: Pick<TPR, keyof T>; 54 var b01: Pick<B, keyof B>; 55 var b01: Pick<Pick<B, keyof B>, keyof B>; 61 var b02: Pick<BP, keyof BP>; 67 var b03: Pick<BR, keyof BR>; 76 var b04: Pick<BPR, keyof BPR>;
|
| D | keyofIsLiteralContexualType.symbols | 21 declare function pick<T, K extends keyof T>(obj: T, propNames: K[]): Pick<T, K>; 22 >pick : Symbol(pick, Decl(keyofIsLiteralContexualType.ts, 5, 1)) 30 >Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) 34 let x = pick({ a: 10, b: 20, c: 30 }, ["a", "c"]); 36 >pick : Symbol(pick, Decl(keyofIsLiteralContexualType.ts, 5, 1))
|
| D | mappedTypeErrors.errors.txt | 25 …: Argument of type '{ c: boolean; }' is not assignable to parameter of type 'Pick<Foo, keyof Foo>'. 26 …Object literal may only specify known properties, and 'c' does not exist in type 'Pick<Foo, keyof … 28 …: Argument of type '{ c: boolean; }' is not assignable to parameter of type 'Pick<Foo, keyof Foo>'. 29 …Object literal may only specify known properties, and 'c' does not exist in type 'Pick<Foo, keyof … 35 …pped/mappedTypeErrors.ts(148,17): error TS2339: Property 'foo' does not exist on type 'Pick<T, K>'. 69 type T10 = Pick<Shape, "name">; 70 type T11 = Pick<Shape, "foo">; // Error 73 type T12 = Pick<Shape, "name" | "foo">; // Error 77 type T13 = Pick<Shape, keyof Named>; 78 type T14 = Pick<Shape, keyof Point>; // Error [all …]
|
| D | mappedTypeErrors.symbols | 56 type T10 = Pick<Shape, "name">; 58 >Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) 61 type T11 = Pick<Shape, "foo">; // Error 63 >Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) 66 type T12 = Pick<Shape, "name" | "foo">; // Error 68 >Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) 71 type T13 = Pick<Shape, keyof Named>; 73 >Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) 77 type T14 = Pick<Shape, keyof Point>; // Error 79 >Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) [all …]
|
| D | bindingPatternContextualTypeDoesNotCauseWidening.js | 2 declare function pick<O, T extends keyof O>(keys: T[], obj?: O): Pick<O, T>; 3 const _ = pick(['b'], { a: 'a', b: 'b' }); // T: "b" 4 const { } = pick(['b'], { a: 'a', b: 'b' }); // T: "b" | "a" ??? (before fix) 8 var _ = pick(['b'], { a: 'a', b: 'b' }); // T: "b" 9 var _a = pick(['b'], { a: 'a', b: 'b' }); // T: "b" | "a" ??? (before fix)
|
| D | complicatedIndexesOfIntersectionsAreInferencable.types | 15 …s> : Pick<Readonly<FormikConfig<Values> & ExtraProps>, "validate" | "initialValues" | Exclude<keyo… 18 …s> : Pick<Readonly<FormikConfig<Values> & ExtraProps>, "validate" | "initialValues" | Exclude<keyo… 21 …: Pick<Readonly<FormikConfig<Values> & ExtraProps>, "validate" | "initialValues" | Exclude<keyof E… 22 …& Partial<Pick<Readonly<FormikConfig<Values> & ExtraProps>, "validateOnChange" | Extract<keyof Ext… 27 …s> : Pick<Readonly<FormikConfig<Values> & ExtraProps>, "validate" | "initialValues" | Exclude<keyo…
|
| D | mappedTypes2.types | 17 var x3: Pick<T, K>; 18 >x3 : Pick<T, K> 21 >x3 : Pick<T, K> 62 declare function pick<T, K extends keyof T>(obj: T, ...keys: K[]): Pick<T, K>; 63 >pick : <T, K extends keyof T>(obj: T, ...keys: K[]) => Pick<T, K> 187 const x = pick(shape, "name", "location"); // { name: string, location: Point } 188 >x : Pick<Shape, "name" | "location"> 189 >pick(shape, "name", "location") : Pick<Shape, "name" | "location"> 190 >pick : <T, K extends keyof T>(obj: T, ...keys: K[]) => Pick<T, K>
|
| D | conditionalTypesSimplifyWhenTrivial.symbols | 6 params: Pick<Params, Exclude<keyof Params, never>>, 8 >Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) 38 params: Pick<Params, Extract<keyof Params, keyof Params>>, 40 >Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) 96 params: Pick<Params, ExcludeWithDefault<keyof Params, never>>, 98 >Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) 128 params: Pick<Params, ExtractWithDefault<keyof Params, keyof Params>>, 130 >Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) 173 params: Pick<Params, TemplatedConditional<keyof Params, never, never, keyof Params>>, 175 >Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) [all …]
|
| D | mappedTypeConstraints.symbols | 2 function f0<T extends { a: string, b: string }>(obj: Pick<T, Extract<keyof T, 'b'>>) { 8 >Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) 19 function f1<T extends { a: string, b: string }>(obj: Pick<T, Exclude<keyof T, 'a'>>) { 25 >Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) 36 function f2<T extends { a: string, b: string }, U extends { b: string, c: string }>(obj: Pick<T | U… 45 >Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) 57 function f3<T extends { a: string, b: string }, U extends { b: string, c: string }>(obj: Pick<T & U… 66 >Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --))
|
| D | mappedTypeModifiers.types | 43 var v01: Pick<T, keyof T>; 46 var v01: Pick<Pick<T, keyof T>, keyof T>; 61 var v02: Pick<TP, keyof TP>; 76 var v03: Pick<TR, keyof TR>; 100 var v04: Pick<TPR, keyof T>; 156 var b01: Pick<B, keyof B>; 159 var b01: Pick<Pick<B, keyof B>, keyof B>; 174 var b02: Pick<BP, keyof BP>; 189 var b03: Pick<BR, keyof BR>; 213 var b04: Pick<BPR, keyof BPR>;
|
| D | mappedTypeModifiers.symbols | 52 var v01: Pick<T, keyof T>; 54 >Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) 58 var v01: Pick<Pick<T, keyof T>, keyof T>; 60 >Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) 61 >Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) 89 var v02: Pick<TP, keyof TP>; 91 >Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) 118 var v03: Pick<TR, keyof TR>; 120 >Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) 164 var v04: Pick<TPR, keyof T>; [all …]
|
| /third_party/typescript/tests/cases/conformance/types/mapped/ |
| D | mappedTypeErrors.ts | 27 type T10 = Pick<Shape, "name">; 28 type T11 = Pick<Shape, "foo">; // Error 29 type T12 = Pick<Shape, "name" | "foo">; // Error 30 type T13 = Pick<Shape, keyof Named>; 31 type T14 = Pick<Shape, keyof Point>; // Error 32 type T15 = Pick<Shape, never>; 33 type T16 = Pick<Shape, undefined>; // Error 36 let y: Pick<Shape, T>; // Error 40 let y: Pick<Shape, T>; // Error 44 let y: Pick<Shape, T>; [all …]
|
| D | mappedTypeModifiers.ts | 17 var v01: Pick<T, keyof T>; 18 var v01: Pick<Pick<T, keyof T>, keyof T>; 24 var v02: Pick<TP, keyof TP>; 30 var v03: Pick<TR, keyof TR>; 39 var v04: Pick<TPR, keyof T>; 56 var b01: Pick<B, keyof B>; 57 var b01: Pick<Pick<B, keyof B>, keyof B>; 63 var b02: Pick<BP, keyof BP>; 69 var b03: Pick<BR, keyof BR>; 78 var b04: Pick<BPR, keyof BPR>;
|
| /third_party/curl/lib/ |
| D | headers.c | 74 struct Curl_header_store *pick = NULL; in curl_easy_header() local 93 pick = hs; in curl_easy_header() 104 hs = pick; in curl_easy_header() 133 struct Curl_llist_element *pick; in curl_easy_nextheader() local 145 pick = prev->anchor; in curl_easy_nextheader() 146 if(!pick) in curl_easy_nextheader() 149 pick = pick->next; in curl_easy_nextheader() 152 pick = data->state.httphdrs.head; in curl_easy_nextheader() 154 if(pick) { in curl_easy_nextheader() 157 hs = pick->ptr; in curl_easy_nextheader() [all …]
|
| /third_party/mesa3d/docs/relnotes/ |
| D | 18.2.6.rst | 71 - bin/get-pick-list.sh: simplify git oneline printing 72 - bin/get-pick-list.sh: prefix output with "[stable] " 73 - bin/get-pick-list.sh: handle "typod" usecase. 74 - bin/get-pick-list.sh: handle the fixes tag 75 - bin/get-pick-list.sh: tweak the commit sha matching pattern 76 - bin/get-pick-list.sh: flesh out is_sha_nomination 77 - bin/get-pick-list.sh: handle fixes tag with missing colon 78 - bin/get-pick-list.sh: handle unofficial "broken by" tag 79 - bin/get-pick-list.sh: use test instead of [ ] 80 - bin/get-pick-list.sh: handle reverts prior to the branchpoint
|
| /third_party/mesa3d/bin/pick/ |
| D | core_test.py | 21 """Tests for pick's core data structures and routines.""" 274 with mock.patch('bin.pick.core.asyncio.create_subprocess_exec', s.mock): 275 with mock.patch('bin.pick.core.is_commit_in_branch', self.return_true): 286 with mock.patch('bin.pick.core.asyncio.create_subprocess_exec', s.mock): 287 with mock.patch('bin.pick.core.is_commit_in_branch', self.return_false): 298 with mock.patch('bin.pick.core.asyncio.create_subprocess_exec', s.mock): 309 with mock.patch('bin.pick.core.asyncio.create_subprocess_exec', s.mock): 320 with mock.patch('bin.pick.core.asyncio.create_subprocess_exec', s.mock): 331 with mock.patch('bin.pick.core.asyncio.create_subprocess_exec', s.mock): 332 with mock.patch('bin.pick.core.is_commit_in_branch', self.return_true): [all …]
|