/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | overloadWithCallbacksWithDifferingOptionalityOnArgs.ts | 21 function x2(callback: (x?: number) => number); 22 function x2(callback: (x: string) => number); 23 function x2(callback: (x: any) => number) { } 24 x2(() => 1); 25 AssertType(x2(() => 1), "any"); 26 AssertType(x2, "{ ((?number) => number): any; ((string) => number): any; }"); 30 x2((x) => 1 ); 31 AssertType(x2((x) => 1 ), "any"); 32 AssertType(x2, "{ ((?number) => number): any; ((string) => number): any; }");
|
D | overloadOnConstNoStringImplementation.ts | 21 function x2(a: number, cb: (x: 'hi') => number); 22 function x2(a: number, cb: (x: 'bye') => number); 23 function x2(a: number, cb: (x: any) => number) { 61 x2(1, cb); // error 62 AssertType(x2(1, cb), "any"); 63 AssertType(x2, "{ (number, ("hi") => number): any; (number, ("bye") => number): any; }"); 67 x2(1, (x: 'hi') => 1); // error 68 AssertType(x2(1, (x: 'hi') => 1), "any"); 69 AssertType(x2, "{ (number, ("hi") => number): any; (number, ("bye") => number): any; }"); 75 x2(1, (x: string) => 1); [all …]
|
D | collisionThisExpressionAndLocalVarInAccessors.ts | 23 let x2 = { 24 AssertType(x2, "{ doStuff: (any) => () => any; }"); 48 let x2 = { 49 AssertType(x2, "{ doStuff: (any) => () => any; }"); 78 let x2 = { 79 AssertType(x2, "{ doStuff: (any) => () => any; }"); 103 let x2 = { 104 AssertType(x2, "{ doStuff: (any) => () => any; }");
|
D | instanceofOperatorWithLHSIsObject.ts | 26 let x2: Function; variable 27 AssertType(x2, "Function"); 47 let r2 = b instanceof x2; variable 49 AssertType(b instanceof x2, "boolean"); 51 AssertType(x2, "Function");
|
D | anyAndUnknownHaveFalsyComponents.ts | 56 declare let x2: unknown; variable 57 AssertType(x2, "unknown"); 59 const y2 = x2 && 3; 61 AssertType(x2 && 3, "unknown"); 62 AssertType(x2, "unknown");
|
D | initializersWidened.ts | 38 let x2: null; 39 AssertType(x2, "null"); 81 let x5 = null || x2; 83 AssertType(null || x2, "null"); 85 AssertType(x2, "null");
|
D | sourceMapValidationForIn.ts | 33 for (let x2 in String) variable 35 WScript.Echo(x2); 36 AssertType(WScript.Echo(x2), "void"); 38 AssertType(x2, "string");
|
D | arrayLiteral.ts | 49 let x2: number[] = []; 50 AssertType(x2, "number[]"); 53 let x2: number[] = new Array(1); 54 AssertType(x2, "number[]");
|
D | collisionThisExpressionAndLocalVarInConstructor.ts | 23 let x2 = { 24 AssertType(x2, "{ doStuff: (any) => () => any; }"); 52 let x2 = { 53 AssertType(x2, "{ doStuff: (any) => () => any; }");
|
D | compoundAssignmentLHSIsReference.ts | 38 function fn1(x2: number) { 39 x2 *= value; 40 AssertType(x2 *= value, "number"); 41 AssertType(x2, "number"); 44 x2 += value; 45 AssertType(x2 += value, "any"); 46 AssertType(x2, "number");
|
D | noCollisionThisExpressionAndLocalVarInConstructor.ts | 23 let x2 = { 24 AssertType(x2, "{ doStuff: (any) => () => any; }"); 52 let x2 = { 53 AssertType(x2, "{ doStuff: (any) => () => any; }");
|
D | keyofAndForIn.ts | 47 let x2 = obj[k2]; variable 48 AssertType(x2, "{ [P in K]: T; }[Extract<K, string>]"); 79 let x2 = obj[k2]; 80 AssertType(x2, "{ [P in keyof T]: T[P]; }[Extract<keyof T, string>]"); 111 let x2 = obj[k2]; 112 AssertType(x2, "{ [P in K]: T[P]; }[Extract<K, string>]");
|
D | literalTypes2.ts | 70 let x2 = -123; 71 AssertType(x2, "number"); 171 let x2: -123 = -123; 172 AssertType(x2, "int"); 259 let x2 = c2; 260 AssertType(x2, "union"); 290 x2 = -123; property in C1 334 let x2: { a : 0 | 1, b: "foo" | "bar" } = { a: 1, b: "foo" }; 335 AssertType(x2, "{ a: union; b: union; }"); 370 let x2: (1 | "foo")[] = [1, "foo"]; [all …]
|
D | inferenceOptionalProperties.ts | 28 declare let x2: { a?: string, b?: number | undefined }; variable 29 AssertType(x2, "{ a?: string; b?: union; }"); 39 const y2 = test(x2); 41 AssertType(test(x2), "union"); 43 AssertType(x2, "{ a?: string; b?: union; }");
|
D | inferenceOptionalPropertiesToIndexSignatures.ts | 28 declare const x2: { a: string, b: number | undefined }; constant 29 AssertType(x2, "{ a: string; b: union; }"); 49 let a2 = foo(x2); // string | number | undefined 51 AssertType(foo(x2), "union"); 53 AssertType(x2, "{ a: string; b: union; }");
|
D | inferenceOptionalPropertiesStrict.ts | 28 declare let x2: { a?: string, b?: number | undefined }; variable 29 AssertType(x2, "{ a?: string; b?: union; }"); 39 const y2 = test(x2); 41 AssertType(test(x2), "union"); 43 AssertType(x2, "{ a?: string; b?: union; }");
|
D | assignmentLHSIsReference.ts | 33 function fn1(x2: number) { 34 x2 = value; 35 AssertType(x2 = value, "any"); 36 AssertType(x2, "number");
|
D | contextualTypeWithUnionTypeCallSignatures.ts | 54 let x2: IWithCallSignatures | IWithCallSignatures2 = a => a.toString(); // Like iWithCallSignatures variable 55 AssertType(x2, "union"); 61 let x2: IWithCallSignatures | IWithCallSignatures2 = a => a; // Like iWithCallSignatures2 variable 62 AssertType(x2, "union");
|
D | compoundExponentiationAssignmentLHSIsReference.ts | 33 function fn1(x2: number) { 34 x2 **= value; 35 AssertType(x2 **= value, "number"); 36 AssertType(x2, "number");
|
D | noImplicitAnyDestructuringVarDeclaration2.ts | 112 let {x2 = undefined, y2 = undefined, z2 = undefined} = { x2: 1, y2: 2, z2: 3 }; // no error variable 113 AssertType(x2, "number"); 119 AssertType({ x2: 1, y2: 2, z2: 3 }, "{ x2?: number; y2?: number; z2?: number; }"); 120 AssertType(x2, "number");
|
D | namespaces1.ts | 33 let x2: X.Y; variable 34 AssertType(x2, "X.Y");
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/systemObjectShorthandRename/ |
D | index.ts | 23 const x2 = {x constant 24 AssertType(x2, "{ x: string; }"); 31 const a = {x2 34 AssertType({x2}, "{ x2: { x: string; }; }"); 36 AssertType(x2, "{ x: string; }");
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/mergedClassInterface/ |
D | file1.ts | 42 x2: number; property in C5 60 c5.x2; 61 AssertType(c5.x2, "number");
|
/arkcompiler/ets_runtime/tools/circuit_viewer/src/ir/ |
D | IrViewer.js | 282 drawSmallMap(nodes, x1, x2, y1, y2) { argument 283 if (x1 === x2 || y2 === y1) { 289 let sw = w / (x2 - x1); 451 let x2 = -9999; 460 if (n.pos.x + n.nameWidth > x2) 461 x2 = n.pos.x + n.nameWidth; 469 x2 = Math.max(mmx1[1] - this.offx_, x2) + Scr.logicw / 3; 474 x2: x2, property 478 let scrollW = x2 - x1; 495 this.drawSmallMap(nodes, x1, x2, y1, y2); [all …]
|
/arkcompiler/ets_runtime/test/aottest/aot_compatibility_test/property_operation/ |
D | property_operation.ts | 21 x2?: number; 57 print(b3.x2); 60 print(b3.x2);
|