/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | contextuallyTypedFunctionExpressionsAndReturnAnnotations.ts | 21 declare function foo(x: (y: string) => (y2: number) => void); 24 foo((y): (y2: number) => void => { 26 AssertType((y): (y2: number) => void => { let z = y.charAt(0); // Should be string return nul… 28 AssertType(y2, "number"); 29 AssertType(foo((y): (y2: number) => void => { let z = y.charAt(0); // Should be string return… 44 AssertType((y: string) => { return y2 => { let z = y2.toFixed(); // Should be string … 46 AssertType(foo((y: string) => { return y2 => { let z = y2.toFixed(); // Should be string … 48 AssertType(y2 => { let z = y2.toFixed(); // Should be string return 0; }, "(number… 49 AssertType(y2, "number"); 50 return y2 => { [all …]
|
D | initializersWidened.ts | 42 let y2: undefined; 43 AssertType(y2, "undefined"); 87 let y5 = undefined || y2; 89 AssertType(undefined || y2, "undefined"); 91 AssertType(y2, "undefined"); 93 let z5 = void 0 || y2; 95 AssertType(void 0 || y2, "undefined"); 98 AssertType(y2, "undefined");
|
D | arrayLiteral.ts | 59 let y2: number[] = [1]; 60 AssertType(y2, "number[]"); 64 let y2: number[] = [1, 2]; 65 AssertType(y2, "number[]"); 70 let y2: number[] = new Array<number>(); 71 AssertType(y2, "number[]");
|
D | cyclicGenericTypeInstantiation.ts | 31 y2: typeof z 32 AssertType(y2, "{ y2: { y2: { y2: { y2: { y2: { y2: { y2: { y2: { y2: { y2: { y2: any; }; }; }; }; … 51 y2: typeof z; 52 AssertType(y2, "{ y2: { y2: { y2: { y2: { y2: { y2: { y2: { y2: { y2: { y2: { y2: any; }; }; }; }; …
|
D | cyclicGenericTypeInstantiationInference.ts | 31 y2: typeof z 32 AssertType(y2, "{ y2: { y2: { y2: { y2: { y2: { y2: { y2: { y2: { y2: { y2: { y2: any; }; }; }; }; … 51 y2: typeof z; 52 AssertType(y2, "{ y2: { y2: { y2: { y2: { y2: { y2: { y2: { y2: { y2: { y2: { y2: any; }; }; }; }; …
|
D | noImplicitAnyDestructuringVarDeclaration2.ts | 112 let {x2 = undefined, y2 = undefined, z2 = undefined} = { x2: 1, y2: 2, z2: 3 }; // no error variable 115 AssertType(y2, "number"); 119 AssertType({ x2: 1, y2: 2, z2: 3 }, "{ x2?: number; y2?: number; z2?: number; }"); 122 AssertType(y2, "number");
|
D | declFileForVarList.ts | 27 let x1 = 1, y2 = 2, z2 = 3; 30 AssertType(y2, "number");
|
D | typeGuardOfFormTypeOfNumber.ts | 116 let y2: string | boolean = strOrBool; // string | boolean variable 117 AssertType(y2, "union"); 178 let y2: {} = strOrBool; // { variable 179 AssertType(y2, "{}");
|
D | functionLiteral.ts | 42 let y2: { <T>(x: T): T; } = <T>(x: T) => x variable 43 AssertType(y2, "<T>(T) => T");
|
D | m7Bugs.ts | 54 let y2: C1 = <C1> new C2(); variable 55 AssertType(y2, "C1");
|
D | es6ModuleEnumDeclaration.ts | 53 let y2 = e4.x; variable 69 let y2 = e6.x; variable
|
D | es6ModuleConstEnumDeclaration.ts | 53 let y2 = e4.x; variable 69 let y2 = e6.x; variable
|
D | es6ModuleConstEnumDeclaration2.ts | 53 let y2 = e4.x; variable 69 let y2 = e6.x; variable
|
D | anyAndUnknownHaveFalsyComponents.ts | 59 const y2 = x2 && 3; constant 60 AssertType(y2, "unknown");
|
D | objectLiteralWidened.ts | 82 let y2 = { variable 83 AssertType(y2, "{ foo: null; bar: { baz: null; boo: undefined; }; }");
|
D | functionOverloads45.ts | 67 let y2 = foo2([{a: 100}]); variable 68 AssertType(y2, "Cat");
|
D | functionOverloads44.ts | 67 let y2 = foo2([{a: 100}]); variable 68 AssertType(y2, "Cat");
|
/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) { 290 let sh = h / (y2 - y1); 452 let y2 = -9999; 465 if (n.pos.y + n.nameWidth > y2) 466 y2 = n.pos.y + IrToPicture.NODEH; 471 y2 = y2 + Scr.logich / 3; 476 y2: y2, property 479 let scrollH = y2 - y1; 495 this.drawSmallMap(nodes, x1, x2, y1, y2); [all …]
|
/arkcompiler/ets_runtime/test/aottest/shr/ |
D | shr.ts | 23 var y2 = 1; 24 var r2 = x2 >> y2;
|
/arkcompiler/ets_runtime/test/aottest/and/ |
D | and.ts | 23 var y2 = 1; 24 var r2 = x2 & y2;
|
/arkcompiler/ets_runtime/test/aottest/or/ |
D | or.ts | 23 var y2 = 1; 24 var r2 = x2 | y2;
|
/arkcompiler/ets_runtime/test/aottest/exp/ |
D | exp.ts | 23 var y2 = 2; 24 var r2 = x2 ** y2;
|
/arkcompiler/ets_runtime/test/aottest/xor/ |
D | xor.ts | 23 var y2 = 1; 24 var r2 = x2 ^ y2;
|
/arkcompiler/ets_runtime/test/aottest/shl/ |
D | shl.ts | 23 var y2 = 1; 24 var r2 = x2 << y2;
|
/arkcompiler/ets_runtime/test/aottest/ashr/ |
D | ashr.ts | 23 var y2 = 1; 24 var r2 = x2 >>> y2;
|