/third_party/typescript/tests/baselines/reference/ |
D | subtypingWithConstructSignatures2.types | 23 declare function foo1(a: new (x: number) => number[]): typeof a; 24 >foo1 : { (a: new (x: number) => number[]): typeof a; (a: any): any; } 25 >a : new (x: number) => number[] 27 >a : new (x: number) => number[] 30 >foo1 : { (a: new (x: number) => number[]): new (x: number) => number[]; (a: any): any; } 33 declare function foo2(a: new (x: number) => string[]): typeof a; 34 >foo2 : { (a: new (x: number) => string[]): typeof a; (a: any): any; } 35 >a : new (x: number) => string[] 37 >a : new (x: number) => string[] 40 >foo2 : { (a: new (x: number) => string[]): new (x: number) => string[]; (a: any): any; } [all …]
|
D | unionTypeConstructSignatures.types | 13 var unionOfDifferentReturnType: { new (a: number): number; } | { new (a: number): Date; }; 14 >unionOfDifferentReturnType : (new (a: number) => number) | (new (a: number) => Date) 18 numOrDate = new unionOfDifferentReturnType(10); 19 >numOrDate = new unionOfDifferentReturnType(10) : number | Date 21 >new unionOfDifferentReturnType(10) : number | Date 22 >unionOfDifferentReturnType : (new (a: number) => number) | (new (a: number) => Date) 25 strOrBoolean = new unionOfDifferentReturnType("hello"); // error 26 >strOrBoolean = new unionOfDifferentReturnType("hello") : number | Date 28 >new unionOfDifferentReturnType("hello") : number | Date 29 >unionOfDifferentReturnType : (new (a: number) => number) | (new (a: number) => Date) [all …]
|
D | subtypingWithConstructSignatures3.types | 27 declare function foo2(a2: new (x: number) => string[]): typeof a2; 28 >foo2 : { (a2: new (x: number) => string[]): new (x: number) => string[]; (a2: any): any; } 29 >a2 : new (x: number) => string[] 31 >a2 : new (x: number) => string[] 34 >foo2 : { (a2: new (x: number) => string[]): new (x: number) => string[]; (a2: any): any; } 37 …declare function foo7(a2: new (x: new (arg: Base) => Derived) => new (r: Base) => Derived2): typeo… 38 >foo7 : { (a2: new (x: new (arg: Base) => Derived) => new (r: Base) => Derived2): new (x: new (arg:… 39 >a2 : new (x: new (arg: Base) => Derived) => new (r: Base) => Derived2 40 >x : new (arg: Base) => Derived 43 >a2 : new (x: new (arg: Base) => Derived) => new (r: Base) => Derived2 [all …]
|
D | genericCallWithOverloadedConstructorTypedArguments.types | 9 >a : { new (x: boolean): boolean; new (x: string): string; } 11 new(x: boolean): boolean; 14 new(x: string): string; 20 >cb : { new (x: boolean): boolean; new (x: string): string; } 21 >a : { new (x: boolean): boolean; new (x: string): string; } 23 return new cb(null); 24 >new cb(null) : boolean 25 >cb : { new (x: boolean): boolean; new (x: string): string; } 32 >foo4 : (cb: { new (x: boolean): boolean; new (x: string): string; }) => boolean 33 >a : { new (x: boolean): boolean; new (x: string): string; } [all …]
|
D | assignmentCompatWithConstructSignatures5.types | 23 var a: new <T>(x: T) => T[]; 24 >a : new <T>(x: T) => T[] 27 var a2: new <T>(x: T) => string[]; 28 >a2 : new <T>(x: T) => string[] 31 var a3: new <T>(x: T) => void; 32 >a3 : new <T>(x: T) => void 35 var a4: new <T, U>(x: T, y: U) => string; 36 >a4 : new <T, U>(x: T, y: U) => string 40 var a5: new <T, U>(x: new (arg: T) => U) => T; 41 >a5 : new <T, U>(x: new (arg: T) => U) => T [all …]
|
D | assignmentCompatWithConstructSignaturesWithOptionalParameters.types | 5 a: new () => number; 6 >a : new () => number 8 a2: new (x?: number) => number; 9 >a2 : new (x?: number) => number 12 a3: new (x: number) => number; 13 >a3 : new (x: number) => number 16 a4: new (x: number, y?: number) => number; 17 >a4 : new (x: number, y?: number) => number 21 a5: new (x?: number, y?: number) => number; 22 >a5 : new (x?: number, y?: number) => number [all …]
|
D | assignmentCompatWithConstructSignatures3.types | 23 var a: new (x: number) => number[]; 24 >a : new (x: number) => number[] 27 var a2: new (x: number) => string[]; 28 >a2 : new (x: number) => string[] 31 var a3: new (x: number) => void; 32 >a3 : new (x: number) => void 35 var a4: new (x: string, y: number) => string; 36 >a4 : new (x: string, y: number) => string 40 var a5: new (x: (arg: string) => number) => string; 41 >a5 : new (x: (arg: string) => number) => string [all …]
|
D | genericCallWithOverloadedConstructorTypedArguments2.types | 9 >a : { new (x: boolean): boolean; new (x: string): string; } 11 new(x: boolean): boolean; 14 new(x: string): string; 19 >foo4 : (cb: typeof a) => { new (x: boolean): boolean; new (x: string): string; } 20 >cb : { new (x: boolean): boolean; new (x: string): string; } 21 >a : { new (x: boolean): boolean; new (x: string): string; } 24 >cb : { new (x: boolean): boolean; new (x: string): string; } 27 var b: { new <T, U>(x: T): U } 28 >b : new <T, U>(x: T) => U 32 >r3 : { new (x: boolean): boolean; new (x: string): string; } [all …]
|
D | privacyVar.types | 32 private C3_v11_private = new C1_public(); 34 >new C1_public() : C1_public 37 public C3_v12_public = new C1_public(); 39 >new C1_public() : C1_public 42 private C3_v13_private = new C2_private(); 44 >new C2_private() : C2_private 47 public C3_v14_public = new C2_private(); // error 49 >new C2_private() : C2_private 52 private C3_v21_private: C1_public = new C1_public(); 54 >new C1_public() : C1_public [all …]
|
D | comparisonOperatorWithSubtypeObjectOnConstructorSignature.types | 17 var a1: { new (): Base }; 18 >a1 : new () => Base 20 var b1: { new (): Base }; 21 >b1 : new () => Base 23 var a2: { new (a: number, b: string): Base }; 24 >a2 : new (a: number, b: string) => Base 28 var b2: { new (a: number, b: string): Base }; 29 >b2 : new (a: number, b: string) => Base 33 var a3: { new (a: number, b: string): Base }; 34 >a3 : new (a: number, b: string) => Base [all …]
|
D | subtypingWithConstructSignatures4.types | 23 declare function foo1(a: new <T>(x: T) => T[]); 24 >foo1 : { (a: new <T>(x: T) => T[]): any; (a: any): any; } 25 >a : new <T>(x: T) => T[] 29 >foo1 : { (a: new <T>(x: T) => T[]): any; (a: any): any; } 32 declare function foo2(a2: new <T>(x: T) => string[]); 33 >foo2 : { (a2: new <T>(x: T) => string[]): any; (a: any): any; } 34 >a2 : new <T>(x: T) => string[] 38 >foo2 : { (a2: new <T>(x: T) => string[]): any; (a: any): any; } 41 declare function foo3(a3: new <T>(x: T) => void); 42 >foo3 : { (a3: new <T>(x: T) => void): any; (a: any): any; } [all …]
|
D | valueOfTypedArray.types | 3 const typedArray0: Int8Array = (new Int8Array()).valueOf(); 5 >(new Int8Array()).valueOf() : Int8Array 6 >(new Int8Array()).valueOf : () => Int8Array 7 >(new Int8Array()) : Int8Array 8 >new Int8Array() : Int8Array 12 const typedArray1: Uint8Array = (new Uint8Array()).valueOf(); 14 >(new Uint8Array()).valueOf() : Uint8Array 15 >(new Uint8Array()).valueOf : () => Uint8Array 16 >(new Uint8Array()) : Uint8Array 17 >new Uint8Array() : Uint8Array [all …]
|
D | comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.types | 24 var a1: { new <T>(x: T): T }; 25 >a1 : new <T>(x: T) => T 28 var b1: { new (): string }; 29 >b1 : new () => string 31 var a2: { new <T>(x: T): T }; 32 >a2 : new <T>(x: T) => T 35 var b2: { new (x: string): number }; 36 >b2 : new (x: string) => number 39 var a3: { new <T>(x?: T): T }; 40 >a3 : new <T>(x?: T) => T [all …]
|
D | assignmentCompatWithConstructSignatures4.types | 30 var a2: new (x: number) => string[]; 31 >a2 : new (x: number) => string[] 34 var a7: new (x: (arg: Base) => Derived) => (r: Base) => Derived2; 35 >a7 : new (x: (arg: Base) => Derived) => (r: Base) => Derived2 40 var a8: new (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived; 41 >a8 : new (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived 48 var a10: new (...x: Base[]) => Base; 49 >a10 : new (...x: Base[]) => Base 52 var a11: new (x: { foo: string }, y: { foo: string; bar: string }) => Base; 53 >a11 : new (x: { foo: string;}, y: { foo: string; bar: string;}) => Base [all …]
|
D | comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.types | 28 var b1: { new (): Base }; 29 >b1 : new () => Base 31 var a2: { new (a: number, b: string): Base }; 32 >a2 : new (a: number, b: string) => Base 36 var b2: { new (a: string): Base }; 37 >b2 : new (a: string) => Base 40 var a3: { new (a: Base, b: string): Base }; 41 >a3 : new (a: Base, b: string) => Base 45 var b3: { new (a: Derived, b: Base): Base }; 46 >b3 : new (a: Derived, b: Base) => Base [all …]
|
D | indexAt(target=es2021).types | 17 new Int8Array().at(0); 18 >new Int8Array().at(0) : any 19 >new Int8Array().at : any 20 >new Int8Array() : Int8Array 25 new Uint8Array().at(0); 26 >new Uint8Array().at(0) : any 27 >new Uint8Array().at : any 28 >new Uint8Array() : Uint8Array 33 new Uint8ClampedArray().at(0); 34 >new Uint8ClampedArray().at(0) : any [all …]
|
D | invalidNewTarget.es5.types | 2 const a = new.target; 4 >new.target : any 7 const b = () => new.target; 9 >() => new.target : () => any 10 >new.target : any 16 [new.target]() { } 17 >[new.target] : () => void 18 >new.target : any 21 c() { return new.target; } 23 >new.target : any [all …]
|
D | invalidNewTarget.es6.types | 2 const a = new.target; 4 >new.target : any 7 const b = () => new.target; 9 >() => new.target : () => any 10 >new.target : any 16 [new.target]() { } 17 >[new.target] : () => void 18 >new.target : any 21 c() { return new.target; } 23 >new.target : any [all …]
|
D | comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.types | 17 var a1: { new <T>(x: T): T }; 18 >a1 : new <T>(x: T) => T 21 var b1: { new (x: string): string }; 22 >b1 : new (x: string) => string 25 var a2: { new <T>(x: T): T }; 26 >a2 : new <T>(x: T) => T 29 var b2: { new (x: string, y: number): string }; 30 >b2 : new (x: string, y: number) => string 34 var a3: { new <T, U>(x: T, y: U): T }; 35 >a3 : new <T, U>(x: T, y: U) => T [all …]
|
D | errorCause(target=es2021).types | 5 let err = new Error("foo", { cause: new Error("bar") }); 7 >new Error("foo", { cause: new Error("bar") }) : Error 10 >{ cause: new Error("bar") } : { cause: Error; } 12 >new Error("bar") : Error 21 let anotherErr = new Error("foo", { cause: a }); 23 >new Error("foo", { cause: a }) : Error 35 new EvalError("foo", { cause: new Error("bar") }); 36 >new EvalError("foo", { cause: new Error("bar") }) : EvalError & Error 39 >{ cause: new Error("bar") } : { cause: Error; } 41 >new Error("bar") : Error [all …]
|
D | errorCause(target=es2022).types | 5 let err = new Error("foo", { cause: new Error("bar") }); 7 >new Error("foo", { cause: new Error("bar") }) : Error 10 >{ cause: new Error("bar") } : { cause: Error; } 12 >new Error("bar") : Error 21 let anotherErr = new Error("foo", { cause: a }); 23 >new Error("foo", { cause: a }) : Error 35 new EvalError("foo", { cause: new Error("bar") }); 36 >new EvalError("foo", { cause: new Error("bar") }) : EvalError 39 >{ cause: new Error("bar") } : { cause: Error; } 41 >new Error("bar") : Error [all …]
|
/third_party/selinux/libsepol/cil/src/ |
D | cil_copy_ast.c | 53 struct cil_list *new; in cil_copy_list() local 56 cil_list_init(&new, data->flavor); in cil_copy_list() 61 cil_list_append(new, CIL_STRING, orig_item->data); in cil_copy_list() 66 cil_list_append(new, CIL_LIST, new_sub); in cil_copy_list() 75 cil_list_append(new, CIL_PARAM, pn); in cil_copy_list() 80 cil_list_append(new, orig_item->flavor, orig_item->data); in cil_copy_list() 85 *copy = new; in cil_copy_list() 90 char *new = NULL; in cil_copy_node() local 93 new = data; in cil_copy_node() 95 *copy = new; in cil_copy_node() [all …]
|
/third_party/rust/crates/clap/clap_bench/benches/ |
D | 06_rustup.rs | 25 Command::new("rustup") in build_cli() 30 Arg::new("verbose") in build_cli() 37 Command::new("show") in build_cli() 42 Command::new("install") in build_cli() 46 .arg(Arg::new("toolchain").required(true)), in build_cli() 49 Command::new("update") in build_cli() 52 .arg(Arg::new("toolchain").required(true)) in build_cli() 54 Arg::new("no-self-update") in build_cli() 62 Command::new("default") in build_cli() 65 .arg(Arg::new("toolchain").required(true)), in build_cli() [all …]
|
/third_party/rust/crates/clap/tests/builder/ |
D | help.rs | 8 Command::new("test") in setup() 46 Command::new("test") in help_subcommand() 59 let cmd = Command::new("ctest").subcommand( in help_multi_subcommand_error() 60 Command::new("subcmd").subcommand( in help_multi_subcommand_error() 61 Command::new("multi") in help_multi_subcommand_error() 105 let cmd = Command::new("example") in req_last_arg_usage() 107 .arg(Arg::new("FIRST").help("First").num_args(1..).required(true)) in req_last_arg_usage() 109 Arg::new("SECOND") in req_last_arg_usage() 135 let cmd = Command::new("flamegraph") in args_with_last_usage() 138 Arg::new("verbose") in args_with_last_usage() [all …]
|
D | require.rs | 9 let result = Command::new("flag_required") in flag_required() 20 let m = Command::new("flag_required") in flag_required_2() 35 let result = Command::new("option_required") in option_required() 46 let m = Command::new("option_required") in option_required_2() 62 let result = Command::new("positional_required") in positional_required() 63 .arg(Arg::new("flag").index(1).required(true)) in positional_required() 72 let m = Command::new("positional_required") in positional_required_2() 73 .arg(Arg::new("flag").index(1).required(true)) in positional_required_2() 96 let cmd = Command::new("positional_required") in positional_required_with_requires() 97 .arg(Arg::new("flag").required(true).requires("opt")) in positional_required_with_requires() [all …]
|