| /arkcompiler/ets_frontend/ts2panda/tests/watch_expression/ |
| D | addWatch.test.ts | 73 let insns = compileMainSnippet(` variable 99 let insns = compileMainSnippet(` variable 130 let insns = compileMainSnippet(` variable 152 let insns = compileMainSnippet(` variable 173 let insns = compileMainSnippet(` variable 205 let insns = compileMainSnippet(` variable 238 let insns = compileMainSnippet(` variable 264 let insns = compileMainSnippet(` variable 296 let insns = compileMainSnippet(` variable 345 let insns = compileMainSnippet(` variable [all …]
|
| /arkcompiler/ets_frontend/ts2panda/tests/expression/ |
| D | literal.test.ts | 50 let insns = compileMainSnippet("5"); variable 59 let insns = compileMainSnippet("\"stringLiteral\""); variable 68 let insns = compileMainSnippet("true"); variable 77 let insns = compileMainSnippet("false"); variable 86 let insns = compileMainSnippet("null"); variable 96 let insns = compileMainSnippet("let arr = [1]"); variable 111 let insns = compileMainSnippet("let arr = []"); variable 126 let insns = compileMainSnippet("let arr = [1, 2]"); variable 142 let insns = compileMainSnippet("let arr = [, 1]"); variable 161 let insns = compileMainSnippet("let arr = [1,, 3]"); variable [all …]
|
| D | binary.test.ts | 59 let insns = compileMainSnippet("2 + 3"); variable 73 let insns = compileMainSnippet("5 - 1"); variable 87 let insns = compileMainSnippet("null ?? 1"); variable 116 let insns = compileMainSnippet("undefined ?? 1"); variable 146 let insns = compileMainSnippet("2 ?? 1"); variable 177 let insns = compileMainSnippet("3 * 4"); variable 191 let insns = compileMainSnippet("2 ** 3"); variable 205 let insns = compileMainSnippet("7 / 1"); variable 219 let insns = compileMainSnippet("8 % 2"); variable 233 let insns = compileMainSnippet("2 << 3"); variable [all …]
|
| D | operationEqual.test.ts | 46 let insns = compileMainSnippet("let a = 2;\n" + variable 66 let insns = compileMainSnippet("let a = 5;\n" + variable 86 let insns = compileMainSnippet("let a = 2;\n" + variable 106 let insns = compileMainSnippet("let a = 2;\n" + variable 126 let insns = compileMainSnippet("let a = 5;\n" + variable 146 let insns = compileMainSnippet("let a = 15;\n" + variable 166 let insns = compileMainSnippet("let a = 8;\n" + variable 186 let insns = compileMainSnippet("let a = 4;\n" + variable 207 let insns = compileMainSnippet("let a = 8;\n" + variable
|
| D | cmpBinary.test.ts | 57 let insns = compileMainSnippet("2 < 3;"); variable 80 let insns = compileMainSnippet("3 > 1;"); variable 103 let insns = compileMainSnippet("3 <= 4;"); variable 126 let insns = compileMainSnippet("3 >= 2;"); variable 149 let insns = compileMainSnippet("3 == 3;"); variable 172 let insns = compileMainSnippet("3 != 2;"); variable 195 let insns = compileMainSnippet("3 === 3;"); variable 218 let insns = compileMainSnippet("3 !== 3;"); variable 241 let insns = compileMainSnippet("let a = 5;\n" + variable 260 let insns = compileMainSnippet("let a = 5;\n" + variable [all …]
|
| D | delete.test.ts | 39 let insns = compileMainSnippet("let arr = [1, 2]; delete arr[1];"); variable 59 let insns = compileMainSnippet(`let obj = { variable 94 let insns = snippetCompiler.getGlobalInsns(); variable 108 let insns = compileMainSnippet(`let a = delete false;`); variable 122 let insns = compileMainSnippet(`delete a;`); variable 134 let insns = compileMainSnippet(`delete delete a;`); variable
|
| D | prefixOperations.test.ts | 47 let insns = compileMainSnippet("let i = 5; let j = ++i"); variable 68 let insns = compileMainSnippet("let i = 5; let j = --i"); variable 89 let insns = compileMainSnippet("let i = 5; let j = +i"); variable 109 let insns = compileMainSnippet("let i = 5; let j = -i"); variable 129 let insns = compileMainSnippet("let i = 5; let j = !i"); variable 153 let insns = compileMainSnippet("let i = 5; let j = ~i"); variable
|
| D | conditions.test.ts | 44 let insns = compileMainSnippet("let s = 1;\n" + variable 56 let insns = compileMainSnippet("let a = 2;\n" + variable 70 let insns = compileMainSnippet("let a = 5;\n" + variable 93 let insns = compileMainSnippet(` variable 122 let insns = compileMainSnippet(` variable 152 let insns = compileMainSnippet(`let a = true ? 5 : 0;`); variable 178 let insns = compileMainSnippet("if (true && 5) {}"); variable 195 let insns = compileMainSnippet("if (false || 5) {}"); variable
|
| D | typeOf.test.ts | 40 let insns = compileMainSnippet("typeof 5"); variable 53 let insns = compileMainSnippet("typeof Number(\"5\")"); variable 74 let insns = compileMainSnippet("typeof x"); variable 88 let insns = compileMainSnippet("typeof(x)"); variable
|
| D | call.test.ts | 50 let insns = compileMainSnippet(`foo();`); variable 65 let insns = compileMainSnippet(`let i = 5;foo(i);`); variable 84 let insns = compileMainSnippet(` variable 107 let insns = compileMainSnippet(` variable 143 let insns = compileMainSnippet(` variable 168 let insns = compileMainSnippet(`import('./test.js');`); variable
|
| D | numericLiteral.test.ts | 35 let insns = pandaGen.getInsns(); variable 44 let insns = pandaGen.getInsns(); variable 52 let insns = pandaGen.getInsns(); variable 60 let insns = pandaGen.getInsns(); variable 68 let insns = pandaGen.getInsns(); variable
|
| D | new.test.ts | 42 let insns = compileMainSnippet("new Object"); variable 58 let insns = compileMainSnippet("new Object()"); variable 75 let insns = compileMainSnippet("new Object(2)"); variable 96 let insns = compileMainSnippet("let obj; new obj.ctor()"); variable 119 let insns = compileMainSnippet(`new Object(...args);`); variable
|
| D | partiallyemitted.test.ts | 52 let insns = snippetCompiler.getGlobalInsns(); variable 77 let insns = snippetCompiler.getPandaGenByName("UnitTest.reindexEdgeList").getInsns(); variable 102 let insns = snippetCompiler.getGlobalInsns(); variable
|
| D | propertyAccess.test.ts | 42 let insns = compileMainSnippet(`let obj; variable 62 let insns = compileMainSnippet(`let obj; variable 114 let insns = element.getInsns(); variable 156 let insns = element.getInsns(); variable 197 let insns = element.getInsns(); variable
|
| D | elementAccess.test.ts | 41 let insns = compileMainSnippet(`let obj; variable 60 let insns = compileMainSnippet(`let obj; variable 80 let insns = compileMainSnippet(`let obj; variable
|
| D | parenthesized.test.ts | 35 let insns = compileMainSnippet("let a; (a);"); variable 49 let insns = compileMainSnippet("let a; (((a)))"); variable
|
| /arkcompiler/ets_frontend/ts2panda/tests/ |
| D | hoist.test.ts | 44 let insns = compileMainSnippet("var a = 1;"); variable 59 let insns = compileMainSnippet(`if (true) { variable 87 let insns = snippetCompiler.getGlobalInsns(); variable 102 let insns = snippetCompiler.getGlobalInsns(); variable 118 let insns = snippetCompiler.getGlobalInsns(); variable 136 let insns = funcPg!.getInsns(); variable 156 let insns = funcPg!.getInsns(); variable 174 let insns = funcPg!.getInsns(); variable 193 let insns = funcPg!.getInsns(); variable 213 let insns = funcPg!.getInsns(); variable
|
| D | autoGeneratedIdentifierName.test.ts | 70 let insns = snippetCompiler.getGlobalInsns(); variable 113 let insns = snippetCompiler.getPandaGenByName("UnitTest.#1#").getInsns(); variable 146 let insns = snippetCompiler.getGlobalInsns(); variable
|
| /arkcompiler/ets_frontend/ts2panda/tests/statements/ |
| D | while.test.ts | 44 let insns = compileMainSnippet("while (true) {}"); variable 61 let insns = compileMainSnippet("let a, b; while (a + b) {}"); variable 86 let insns = compileMainSnippet(` variable 122 let insns = compileMainSnippet("let a = 5;" + variable 150 let jmp = <Jmp>insns[11]; variable 156 let insns = compileMainSnippet("let a = 5;" + variable 183 let jmp = <Jmp>insns[10]; variable
|
| D | doWhile.test.ts | 41 let insns = compileMainSnippet("do {} while (true)"); variable 53 let insns = compileMainSnippet("let a = 5;" + variable 71 let insns = compileMainSnippet("let a = 5;" + variable 101 let jmp = <Jmp>insns[5]; variable 107 let insns = compileMainSnippet("let a = 5;" + variable 137 let jmp = <Jmp>insns[5]; variable
|
| D | for.test.ts | 41 let insns = compileMainSnippet("for (;;) {}"); variable 64 let insns = compileMainSnippet("for (let i = 0;;) {}"); variable 76 let insns = compileMainSnippet("for (let i = 0; i < 5;) {}"); variable 92 let insns = compileMainSnippet("for (let i = 0; i < 5; i++) {}"); variable 108 let insns = compileMainSnippet("for (let i = 0; i < 5; ++i) { continue; }"); variable 144 let jmp = <Jmp>insns[8]; variable 150 let insns = compileMainSnippet("for (let i = 0; i < 5; ++i) {break; }"); variable 186 let jmp = <Jmp>insns[8]; variable 194 let insns = compileMainSnippet(`loop1: variable 261 let jmp = <Jmp>insns[16]; variable [all …]
|
| D | functionDeclaration.test.ts | 56 let insns = snippetCompiler.getGlobalInsns(); variable 76 let insns = snippetCompiler.getGlobalInsns(); variable 96 let insns = functionPg!.getInsns(); variable 110 let insns = snippetCompiler.getGlobalInsns(); variable 147 let insns = element.getInsns(); variable 150 let insns = element.getInsns(); variable 173 let insns = functionPg!.getInsns(); variable
|
| D | variableDeclaration.test.ts | 53 let insns = snippetCompiler.getGlobalInsns(); variable 70 let insns = snippetCompiler.getGlobalInsns(); variable 86 let insns = snippetCompiler.getGlobalInsns(); variable 102 let insns = snippetCompiler.getGlobalInsns(); variable 120 let insns = snippetCompiler.getGlobalInsns(); variable 170 let insns = funcPg!.getInsns(); variable 189 let insns = funcPg!.getInsns(); variable 206 let insns = funcPg!.getInsns(); variable 222 let insns = funcPg!.getInsns(); variable 251 let insns = snippetCompiler.getGlobalInsns(); variable
|
| D | switch.test.ts | 42 let insns = compileMainSnippet("let a = 0; switch (a) {case 0 : ;}"); variable 68 let insns = compileMainSnippet(`let a = 0; switch (a) variable 105 let insns = compileMainSnippet(`let a = 0; switch (a) variable 143 let insns = compileMainSnippet(`let a = 0; switch (a) variable 178 let insns = compileMainSnippet(`let a = 0; switch (a) variable 253 let insns = functionPg!.getInsns(); variable
|
| D | forIn.test.ts | 44 let insns = compileMainSnippet("for (let prop in {}) {}"); variable 80 let insns = compileMainSnippet(` variable 114 let jmp = <Jmp>insns.find(item => (item instanceof Jmp)); variable 115 let jeqz = <Jeqz>insns.find(item => (item instanceof Jeqz)); variable 121 let insns = compileMainSnippet("for (let prop in {}) {continue; }"); variable 158 let insns = compileMainSnippet("for (let prop in {}) {break; }"); variable
|