| /arkcompiler/ets_runtime/test/aottest/large_func/ |
| D | large_func.ts | 6 add(1, 2); 7 add(1, 2); 8 add(1, 2); 9 add(1, 2); 10 add(1, 2); 11 add(1, 2); 12 add(1, 2); 13 add(1, 2); 14 add(1, 2); 15 add(1, 2); [all …]
|
| /arkcompiler/ets_runtime/test/aottest/large_func_acc/ |
| D | large_func_acc.ts | 7 r += add(1, 2); 8 r += add(1, 2); 9 r += add(1, 2); 10 r += add(1, 2); 11 r += add(1, 2); 12 r += add(1, 2); 13 r += add(1, 2); 14 r += add(1, 2); 15 r += add(1, 2); 16 r += add(1, 2); [all …]
|
| /arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
| D | jsDeclarationsFunctionKeywordPropExhaustive.ts | 23 foo.x = 1; 24 AssertType(foo.x = 1, "int"); 26 AssertType(1, "int"); 28 foo.y = 1; 29 AssertType(foo.y = 1, "int"); 31 AssertType(1, "int"); 34 foo.break = 1; 35 AssertType(foo.break = 1, "int"); 37 AssertType(1, "int"); 39 foo.case = 1; [all …]
|
| D | nullPropertyName.ts | 23 foo.x = 1; 24 AssertType(foo.x = 1, "int"); 26 AssertType(1, "int"); 28 foo.y = 1; 29 AssertType(foo.y = 1, "int"); 31 AssertType(1, "int"); 34 foo.break = 1; 35 AssertType(foo.break = 1, "int"); 37 AssertType(1, "int"); 39 foo.case = 1; [all …]
|
| D | objectSpreadRepeatedComplexity.ts | 22 // Type is a union of 2^(n-1) members, where n is the number of spread objects 23 …1] && cnd[2] && { prop0: 0, }), // With one prop each, it coll… 27 ...(cnd[1] && 28 AssertType((cnd[1] && cnd[2] && { prop0: 0, }), "union"); 29 AssertType(cnd[1] && cnd[2] && { prop0: 0, }, "union"); 30 AssertType(cnd[1] && cnd[2], "boolean"); 31 AssertType(cnd[1], "boolean"); 33 AssertType(1, "int"); 49 AssertType((cnd[3] && { prop3a: 1, prop3b: 1, }), "union"); 50 AssertType(cnd[3] && { prop3a: 1, prop3b: 1, }, "union"); [all …]
|
| D | contextualTypeLogicalOr.ts | 30 x && [1, 2, 3, 4] || 31 …1, 2, 3, 4] || x && [1, 2, 3, 4] || x && [1, 2, 3, 4] || x && [1, 2, 3, 4] || x && [1,… 32 …1, 2, 3, 4] || x && [1, 2, 3, 4] || x && [1, 2, 3, 4] || x && [1, 2, 3, 4] || x && [1,… 33 …1, 2, 3, 4] || x && [1, 2, 3, 4] || x && [1, 2, 3, 4] || x && [1, 2, 3, 4] || x && [1,… 34 …1, 2, 3, 4] || x && [1, 2, 3, 4] || x && [1, 2, 3, 4] || x && [1, 2, 3, 4] || x && [1,… 35 …1, 2, 3, 4] || x && [1, 2, 3, 4] || x && [1, 2, 3, 4] || x && [1, 2, 3, 4] || x && [1,… 36 …1, 2, 3, 4] || x && [1, 2, 3, 4] || x && [1, 2, 3, 4] || x && [1, 2, 3, 4] || x && [1,… 37 …&& [1, 2, 3, 4] || x && [1, 2, 3, 4] || x && [1, 2, 3, 4] || x && [1, 2, 3, 4] || x &&… 38 …ssertType(x && [1, 2, 3, 4] || x && [1, 2, 3, 4] || x && [1, 2, 3, 4] || x && [1, 2, 3, 4… 39 AssertType(x && [1, 2, 3, 4] || x && [1, 2, 3, 4] || x && [1, 2, 3, 4] || x && [1, 2, 3, 4… [all …]
|
| D | emitCompoundExponentiationOperator2.ts | 24 comp **= 1; 25 AssertType(comp **= 1, "number"); 27 AssertType(1, "int"); 29 comp **= comp **= 1; 30 AssertType(comp **= comp **= 1, "number"); 32 AssertType(comp **= 1, "number"); 34 AssertType(1, "int"); 36 comp **= comp **= 1 + 2; 37 AssertType(comp **= comp **= 1 + 2, "number"); 39 AssertType(comp **= 1 + 2, "number"); [all …]
|
| D | destructuringWithLiteralInitializers.ts | 23 f1({ x: 1, y: 1 }); 24 AssertType(f1({ x: 1, y: 1 }), "void"); 26 AssertType({ x: 1, y: 1 }, "{ x: number; y: number; }"); 28 AssertType(1, "int"); 30 AssertType(1, "int"); 34 f2({ x: 1 }); 35 AssertType(f2({ x: 1 }), "void"); 37 AssertType({ x: 1 }, "{ x: number; }"); 39 AssertType(1, "int"); 41 f2({ x: 1, y: 1 }); [all …]
|
| D | nestedBlockScopedBindings6.ts | 22 for (let x of [1]) { 24 AssertType([1], "number[]"); 25 AssertType(1, "int"); 27 x = x + 1; 28 AssertType(x = x + 1, "number"); 30 AssertType(x + 1, "number"); 32 AssertType(1, "int"); 47 for (let x of [1]) { 49 AssertType([1], "number[]"); 50 AssertType(1, "int"); [all …]
|
| D | nestedBlockScopedBindings2.ts | 23 let x = 1; 25 AssertType(1, "int"); 32 let x = 1; 34 AssertType(1, "int"); 44 let x = 1; 46 AssertType(1, "int"); 56 let x = 1; 58 AssertType(1, "int"); 77 let x = 1; 79 AssertType(1, "int"); [all …]
|
| D | emitExponentiationOperator1.ts | 21 1 ** -2; 22 AssertType(1 ** -2, "number"); 23 AssertType(1, "int"); 27 1 ** 2; 28 AssertType(1 ** 2, "number"); 29 AssertType(1, "int"); 32 (-1) ** 2 33 AssertType((-1) ** 2, "number"); 34 AssertType((-1), "int"); 35 AssertType(-1, "int"); [all …]
|
| D | newWithSpreadES6.ts | 42 1: typeof B; 72 new f(1, 2, "string"); 73 AssertType(new f(1, 2, "string"), "any"); 75 AssertType(1, "int"); 79 new f(1, 2, ...a); 80 AssertType(new f(1, 2, ...a), "any"); 82 AssertType(1, "int"); 87 new f(1, 2, ...a, "string"); 88 AssertType(new f(1, 2, ...a, "string"), "any"); 90 AssertType(1, "int"); [all …]
|
| D | newWithSpreadES5.ts | 41 1: typeof B; 71 new f(1, 2, "string"); 72 AssertType(new f(1, 2, "string"), "any"); 74 AssertType(1, "int"); 78 new f(1, 2, ...a); 79 AssertType(new f(1, 2, ...a), "any"); 81 AssertType(1, "int"); 86 new f(1, 2, ...a, "string"); 87 AssertType(new f(1, 2, ...a, "string"), "any"); 89 AssertType(1, "int"); [all …]
|
| /arkcompiler/ets_frontend/es2panda/test/parser/ts/transformed_cases/ |
| D | test-if-statement-2-transformed-expected.txt | 8 "value": 1, 33 "line": 1, 34 "column": 1 37 "line": 1, 38 "column": 1 45 "line": 1, 46 "column": 1 49 "line": 1, 50 "column": 1 85 "line": 1, [all …]
|
| D | test-if-statement-3-transformed-expected.txt | 8 "value": 1, 33 "line": 1, 34 "column": 1 37 "line": 1, 38 "column": 1 45 "line": 1, 46 "column": 1 49 "line": 1, 50 "column": 1 85 "line": 1, [all …]
|
| D | test-if-statement-1-transformed-expected.txt | 8 "value": 1, 33 "line": 1, 34 "column": 1 37 "line": 1, 38 "column": 1 45 "line": 1, 46 "column": 1 49 "line": 1, 50 "column": 1 85 "line": 1, [all …]
|
| D | test-while-statement-2-transformed-expected.txt | 53 "column": 1 133 "line": 1, 134 "column": 1 137 "line": 1, 138 "column": 1 145 "line": 1, 146 "column": 1 149 "line": 1, 150 "column": 1 185 "line": 1, [all …]
|
| D | test-while-statement-1-transformed-expected.txt | 53 "column": 1 133 "line": 1, 134 "column": 1 137 "line": 1, 138 "column": 1 145 "line": 1, 146 "column": 1 149 "line": 1, 150 "column": 1 185 "line": 1, [all …]
|
| D | test-for-statement-2-transformed-expected.txt | 27 "value": 1, 147 "line": 1, 148 "column": 1 151 "line": 1, 152 "column": 1 159 "line": 1, 160 "column": 1 163 "line": 1, 164 "column": 1 199 "line": 1, [all …]
|
| D | test-for-statement-1-transformed-expected.txt | 27 "value": 1, 147 "line": 1, 148 "column": 1 151 "line": 1, 152 "column": 1 159 "line": 1, 160 "column": 1 163 "line": 1, 164 "column": 1 199 "line": 1, [all …]
|
| D | test-class-constructor4-transformed-expected.txt | 30 "line": 1, 31 "column": 1 34 "line": 1, 35 "column": 1 57 "line": 1, 58 "column": 1 61 "line": 1, 62 "column": 1 68 "line": 1, 69 "column": 1 [all …]
|
| D | test-class-constructor1-transformed-expected.txt | 43 "line": 1, 44 "column": 1 47 "line": 1, 48 "column": 1 79 "line": 1, 80 "column": 1 83 "line": 1, 84 "column": 1 93 "line": 1, 94 "column": 1 [all …]
|
| /arkcompiler/ets_frontend/es2panda/test/parser/commonjs/ |
| D | test-commonjs-wrapper-expected.txt | 15 "line": 1, 16 "column": 1 19 "line": 1, 20 "column": 1 29 "line": 1, 30 "column": 1 33 "line": 1, 34 "column": 1 42 "line": 1, 43 "column": 1 [all …]
|
| /arkcompiler/ets_frontend/es2panda/util/ |
| D | base64.cpp | 33 …encodedRes[i + 1] = base64CharSet[(inputString[j] & 0x03) << 4 | (inputString[j + 1] & 0xf0) >> 4]; in Base64Encode() 35 …encodedRes[i + 2] = base64CharSet[(inputString[j + 1] & 0x0f) << 2 | (inputString[j + 2] & 0xc0) >… in Base64Encode() 40 case 1: in Base64Encode() 42 encodedRes[encodedRes.length() - 1] = '='; in Base64Encode() 45 encodedRes[encodedRes.length() - 1] = '='; in Base64Encode() 56 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, in Base64Decode() 57 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, in Base64Decode() 58 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, in Base64Decode() 59 -1, -1, -1, -1, -1, -1, -1, in Base64Decode() 61 -1, -1, -1, in Base64Decode() [all …]
|
| /arkcompiler/ets_frontend/es2panda/test/parser/js/ |
| D | class-declaration-is-expected.txt | 12 "line": 1, 16 "line": 1, 30 "line": 1, 31 "column": 1 34 "line": 1, 35 "column": 1 57 "line": 1, 58 "column": 1 61 "line": 1, 62 "column": 1 [all …]
|