| /arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
| D | anyAssignableToEveryType2.ts | 32 foo: any; property 38 foo: any; property 44 foo: any; property 50 foo: any; property 56 foo: any; property 62 foo: any; property 68 foo: any; property 74 foo: any; property 77 class A { foo: number; } property in A 80 foo: any; property [all …]
|
| D | subtypesOfAny.ts | 32 foo: number; property 38 foo: string; property 44 foo: boolean; property 50 foo: Date; property 56 foo: RegExp; property 62 foo: { bar: number }; property 68 foo: number[]; property 74 foo: I8; property 77 class A { foo: number; } property in A 80 foo: A; property [all …]
|
| D | undefinedIsSubtypeOfEverything.ts | 29 foo: any; property in D0 33 foo: typeof undefined; property in DA 37 foo: string; property in D1 41 foo: String; property in D1A 46 foo: number; property in D2 50 foo: Number; property in D2A 55 foo: boolean; property in D3 59 foo: Boolean; property in D3A 64 foo: RegExp; property in D4 68 foo: Date; property in D5 [all …]
|
| D | specializedSignatureIsSubtypeOfNonSpecializedSignature.ts | 29 foo(x: 'a'); method in C 35 foo(x: 'a'); method in C2 42 foo(x: 'a'); method in C3 52 foo(x: 'a'); method 53 foo(x: string); method 54 foo(x: number); method 61 foo(x: 'a'); method 62 foo(x: string); method 63 foo(x: T); method 70 foo(x: 'a'); method [all …]
|
| D | twoMergedInterfacesWithDifferingOverloads.ts | 29 foo(x: Date): Date; method 33 foo(x: T): number; method 34 foo(x: string): string; method 38 foo(x: T): Date; method 39 foo(x: Date): string; method 54 foo(x: T, y: U): string; method 55 foo(x: string, y: string): number; method 59 foo<W>(x: W, y: W): W; method 76 foo<A>(x: A, y: A): U; method 80 foo<W>(x: W, y: W): T; method
|
| D | castExpressionParentheses.ts | 180 (<any>function foo() { })(); function 181 AssertType((<any>function foo() { })(), "any"); function 182 AssertType((<any>function foo() { }), "any"); function 183 AssertType(<any>function foo() { }, "any"); function 184 AssertType(function foo() { }, "() => void"); function
|
| D | typesWithSpecializedCallSignatures.ts | 28 foo(x: 'hi'): Derived1; method in C 42 foo(x: 'hi'): Derived1; method 43 foo(x: 'bye'): Derived2; method 44 foo(x: string): Base; method 52 foo(x: 'hi'): Derived1; variable 56 foo(x: 'bye'): Derived2; variable 60 foo(x: string): Base; variable
|
| D | objectTypesIdentityWithCallSignaturesWithOverloads.ts | 33 foo(x: number): number; method in B 42 foo(x: number): number; method in C 52 foo(x: number): number; method 53 foo(x: string): string; method 57 foo(x: number): number; method 58 foo(x: string): string; method 59 foo(x: T): T; method 65 foo(x: number): number variable 69 foo(x: string): string variable
|
| D | collisionCodeGenModuleWithMemberClassConflict.ts | 25 let foo = new m1.m1(); variable 37 let foo = new m2.m2(); variable 42 let foo = new m2._m2(); variable
|
| D | objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts | 26 class Two { foo: string } property in Two 27 interface Three { foo: string } property 28 interface Four<T> { foo: T } property 31 foo: T; property 35 foo<T extends U, U extends One>(x: T, y: U): string { method in A 42 foo(x: T, y: U): string { method in B 49 foo(x: T, y: U): string { method in C 56 foo(x: T, y: U): string { method in D 63 foo(x: T, y: U): string; method 67 foo<T extends U, U extends Six<string, string>>(x: T, y: U): string; method
|
| D | callSignaturesWithOptionalParameters.ts | 27 AssertType(function foo(x?: number) { }, "(?number) => void"); function 44 foo(1); variable 74 foo(x?: number) { } method in C 91 foo(x: number, y?: number); method 123 foo(x?: number); variable
|
| D | controlFlowBindingElement.ts | 55 let foo: string | undefined = ""; variable 83 let foo: string | undefined = ""; variable 111 let foo: string | undefined = ""; variable 139 let foo: string | undefined; variable 183 let foo: string | undefined; variable 227 let foo: string | undefined; variable
|
| D | parametersWithNoAnnotationAreAny.ts | 30 AssertType(function foo(x) { return x; }, "(any) => any"); function 52 foo(x) { method in C 59 foo(x); method 66 foo(x); variable
|
| D | indexedAccessKeyofNestedSimplifiedSubstituteUnwrapped.ts | 30 foo(): void; method 34 foo: Wrapper<AWrapped>; property in A 42 foo: Wrapper<BWrapped>; property in B
|
| D | augmentedTypesClass3.ts | 26 class c5a { public foo() { } } method in c5a 29 class c5b { public foo() { } } method in c5b 33 class c5c { public foo() { } } method in c5c
|
| D | callSignaturesWithOptionalParameters2.ts | 51 foo(x?: number); method in C 85 foo(x: number, y?: number); method 86 foo(x: number, y?: number, z?: number); method 135 foo(x: number, y?: number); variable 140 foo(x: number, y?: number, z?: number); variable
|
| D | assignmentCompatWithObjectMembers.ts | 67 class S { foo: S; } property in S 68 class T { foo: T; } property in T 72 interface S2 { foo: S2; } property 73 interface T2 { foo: T2; } property
|
| D | functionOverloads22.ts | 22 function foo(bar:string):{a:number; b:string;}[]; function 23 function foo(bar:any):{a:any;b?:any;}[] { function
|
| D | functionOverloads14.ts | 22 function foo():{a:string;} function 23 function foo():{a:any;} { function
|
| D | callWithSpread.ts | 25 function foo(x: number, y: number, ...z: string[]) { function 219 foo(x: number, y: number, ...z: string[]) { method in C 239 foo() { method in D
|
| D | callWithSpreadES6.ts | 25 function foo(x: number, y: number, ...z: string[]) { function 168 foo(x: number, y: number, ...z: string[]) { method in C 188 foo() { method in D
|
| D | typeParameterFixingWithConstraints.ts | 26 foo<TBar extends IBar>(bar: TBar, bar1: (bar: TBar) => TBar, bar2: (bar: TBar) => TBar): TBar; method 29 let foo: IFoo; variable
|
| D | duplicateVariablesByScope.ts | 31 function foo() { function 55 foo() { method in C
|
| /arkcompiler/ets_frontend/es2panda/test/parser/ts/ |
| D | test-ts-type-assertion.ts | 18 var foo: any; variable 19 var bar = <string> foo; variable 20 var goo = <C> foo; variable
|
| /arkcompiler/ets_frontend/es2panda/test/parser/ts/type_checker/ |
| D | functionOverload1.ts | 17 function foo(a: { x: number, y: string }): number; function 19 function foo(a: { x: number | string }) { function
|