Home
last modified time | relevance | path

Searched refs:new (Results 1 – 25 of 7299) sorted by relevance

12345678910>>...292

/third_party/typescript/tests/baselines/reference/
DsubtypingWithConstructSignatures2.types23 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 …]
DunionTypeConstructSignatures.types13 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 …]
DsubtypingWithConstructSignatures3.types27 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 …]
DgenericCallWithOverloadedConstructorTypedArguments.types9 >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 …]
DassignmentCompatWithConstructSignatures5.types23 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 …]
DassignmentCompatWithConstructSignaturesWithOptionalParameters.types5 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 …]
DgenericCallWithOverloadedConstructorTypedArguments2.types9 >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 …]
DassignmentCompatWithConstructSignatures3.types23 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 …]
DprivacyVar.types32 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 …]
DvalueOfTypedArray.types3 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 …]
DcomparisonOperatorWithSubtypeObjectOnConstructorSignature.types17 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 …]
DsubtypingWithConstructSignatures4.types23 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 …]
DcomparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.types24 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 …]
DassignmentCompatWithConstructSignatures4.types30 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 …]
DinvalidNewTarget.es5.types2 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 …]
DinvalidNewTarget.es6.types2 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 …]
DcomparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.types28 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 …]
DchainedCallsWithTypeParameterConstrainedToOtherTypeParameter.types40 (new Chain(new A)).then(a => new B).then(b => new C).then(c => new B).then(b => new A);
41 >(new Chain(new A)).then(a => new B).then(b => new C).then(c => new B).then(b => new A) : Chain<C>
42 >(new Chain(new A)).then(a => new B).then(b => new C).then(c => new B).then : <S extends C>(cb: (x:…
43 >(new Chain(new A)).then(a => new B).then(b => new C).then(c => new B) : Chain<C>
44 >(new Chain(new A)).then(a => new B).then(b => new C).then : <S extends C>(cb: (x: C) => S) => Chai…
45 >(new Chain(new A)).then(a => new B).then(b => new C) : Chain<C>
46 >(new Chain(new A)).then(a => new B).then : <S extends B>(cb: (x: B) => S) => Chain<S>
47 >(new Chain(new A)).then(a => new B) : Chain<B>
48 >(new Chain(new A)).then : <S extends A>(cb: (x: A) => S) => Chain<S>
49 >(new Chain(new A)) : Chain<A>
[all …]
DcomparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.types17 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 …]
DsubtypingWithGenericConstructSignaturesWithOptionalParameters.types6 a: new () => T;
7 >a : new () => T
9 a2: new (x?: T) => T;
10 >a2 : new (x?: T) => T
13 a3: new (x: T) => T;
14 >a3 : new (x: T) => T
17 a4: new (x: T, y?: T) => T;
18 >a4 : new (x: T, y?: T) => T
22 a5: new (x?: T, y?: T) => T;
23 >a5 : new (x?: T, y?: T) => T
[all …]
DjsdocAccessibilityTags.types132 new A().priv + new A().prot + new A().pub
133 >new A().priv + new A().prot + new A().pub : number
134 >new A().priv + new A().prot : number
135 >new A().priv : number
136 >new A() : A
139 >new A().prot : number
140 >new A() : A
143 >new A().pub : number
144 >new A() : A
148 new B().priv + new B().prot + new B().pub
[all …]
DconstructSignatureAssignabilityInInheritance2.types25 a: new (x: number) => number[];
26 >a : new (x: number) => number[]
29 a2: new (x: number) => string[];
30 >a2 : new (x: number) => string[]
33 a3: new (x: number) => void;
34 >a3 : new (x: number) => void
37 a4: new (x: string, y: number) => string;
38 >a4 : new (x: string, y: number) => string
42 a5: new (x: (arg: string) => number) => string;
43 >a5 : new (x: (arg: string) => number) => string
[all …]
DprivacyGloVar.types32 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 …]
/third_party/selinux/libsepol/cil/src/
Dcil_copy_ast.c53 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/flutter/skia/src/sksl/
DSkSLContext.h22 : fInvalid_Type(new Type("<INVALID>")) in Context()
23 , fVoid_Type(new Type("void")) in Context()
24 , fNull_Type(new Type("null")) in Context()
25 , fFloatLiteral_Type(new Type("$floatLiteral", Type::kFloat_NumberKind, 3)) in Context()
26 , fIntLiteral_Type(new Type("$intLiteral", Type::kSigned_NumberKind, 1)) in Context()
27 , fDouble_Type(new Type("double", Type::kFloat_NumberKind, 6, true)) in Context()
28 , fDouble2_Type(new Type("double2", *fDouble_Type, 2)) in Context()
29 , fDouble3_Type(new Type("double3", *fDouble_Type, 3)) in Context()
30 , fDouble4_Type(new Type("double4", *fDouble_Type, 4)) in Context()
31 , fFloat_Type(new Type("float", Type::kFloat_NumberKind, 5, true)) in Context()
[all …]

12345678910>>...292