Searched refs:compileMainSnippet (Results 1 – 25 of 32) sorted by relevance
12
/arkcompiler/ets_frontend/ts2panda/tests/expression/ |
D | literal.test.ts | 46 import { checkInstructions, compileMainSnippet } from "../utils/base"; 50 let insns = compileMainSnippet("5"); 59 let insns = compileMainSnippet("\"stringLiteral\""); 68 let insns = compileMainSnippet("true"); 77 let insns = compileMainSnippet("false"); 86 let insns = compileMainSnippet("null"); 96 let insns = compileMainSnippet("let arr = [1]"); 111 let insns = compileMainSnippet("let arr = []"); 126 let insns = compileMainSnippet("let arr = [1, 2]"); 142 let insns = compileMainSnippet("let arr = [, 1]"); [all …]
|
D | binary.test.ts | 53 import { checkInstructions, compileMainSnippet } from "../utils/base"; 59 let insns = compileMainSnippet("2 + 3"); 73 let insns = compileMainSnippet("5 - 1"); 87 let insns = compileMainSnippet("null ?? 1"); 116 let insns = compileMainSnippet("undefined ?? 1"); 146 let insns = compileMainSnippet("2 ?? 1"); 177 let insns = compileMainSnippet("3 * 4"); 191 let insns = compileMainSnippet("2 ** 3"); 205 let insns = compileMainSnippet("7 / 1"); 219 let insns = compileMainSnippet("8 % 2"); [all …]
|
D | operationEqual.test.ts | 40 import { checkInstructions, compileMainSnippet } from "../utils/base"; 46 let insns = compileMainSnippet("let a = 2;\n" + 66 let insns = compileMainSnippet("let a = 5;\n" + 86 let insns = compileMainSnippet("let a = 2;\n" + 106 let insns = compileMainSnippet("let a = 2;\n" + 126 let insns = compileMainSnippet("let a = 5;\n" + 146 let insns = compileMainSnippet("let a = 15;\n" + 166 let insns = compileMainSnippet("let a = 8;\n" + 186 let insns = compileMainSnippet("let a = 4;\n" + 207 let insns = compileMainSnippet("let a = 8;\n" +
|
D | cmpBinary.test.ts | 51 import { checkInstructions, compileMainSnippet } from "../utils/base"; 57 let insns = compileMainSnippet("2 < 3;"); 80 let insns = compileMainSnippet("3 > 1;"); 103 let insns = compileMainSnippet("3 <= 4;"); 126 let insns = compileMainSnippet("3 >= 2;"); 149 let insns = compileMainSnippet("3 == 3;"); 172 let insns = compileMainSnippet("3 != 2;"); 195 let insns = compileMainSnippet("3 === 3;"); 218 let insns = compileMainSnippet("3 !== 3;"); 241 let insns = compileMainSnippet("let a = 5;\n" + [all …]
|
D | typeOf.test.ts | 34 import { checkInstructions, compileMainSnippet } from "../utils/base"; 40 let insns = compileMainSnippet("typeof 5"); 53 let insns = compileMainSnippet("typeof Number(\"5\")"); 74 let insns = compileMainSnippet("typeof x"); 88 let insns = compileMainSnippet("typeof(x)");
|
D | delete.test.ts | 33 import { checkInstructions, compileMainSnippet, SnippetCompiler } from "../utils/base"; 39 let insns = compileMainSnippet("let arr = [1, 2]; delete arr[1];"); 59 let insns = compileMainSnippet(`let obj = { 108 let insns = compileMainSnippet(`let a = delete false;`); 122 let insns = compileMainSnippet(`delete a;`); 134 let insns = compileMainSnippet(`delete delete a;`);
|
D | prefixOperations.test.ts | 41 import { checkInstructions, compileMainSnippet } from "../utils/base"; 47 let insns = compileMainSnippet("let i = 5; let j = ++i"); 68 let insns = compileMainSnippet("let i = 5; let j = --i"); 89 let insns = compileMainSnippet("let i = 5; let j = +i"); 109 let insns = compileMainSnippet("let i = 5; let j = -i"); 129 let insns = compileMainSnippet("let i = 5; let j = !i"); 153 let insns = compileMainSnippet("let i = 5; let j = ~i");
|
D | conditions.test.ts | 38 import { checkInstructions, compileMainSnippet } from "../utils/base"; 44 let insns = compileMainSnippet("let s = 1;\n" + 56 let insns = compileMainSnippet("let a = 2;\n" + 70 let insns = compileMainSnippet("let a = 5;\n" + 93 let insns = compileMainSnippet(` 122 let insns = compileMainSnippet(` 152 let insns = compileMainSnippet(`let a = true ? 5 : 0;`); 178 let insns = compileMainSnippet("if (true && 5) {}"); 195 let insns = compileMainSnippet("if (false || 5) {}");
|
D | call.test.ts | 44 import { checkInstructions, compileMainSnippet } from "../utils/base"; 50 let insns = compileMainSnippet(`foo();`); 65 let insns = compileMainSnippet(`let i = 5;foo(i);`); 84 let insns = compileMainSnippet(` 107 let insns = compileMainSnippet(` 143 let insns = compileMainSnippet(` 168 let insns = compileMainSnippet(`import('./test.js');`);
|
D | new.test.ts | 36 import { checkInstructions, compileMainSnippet } from "../utils/base"; 42 let insns = compileMainSnippet("new Object"); 58 let insns = compileMainSnippet("new Object()"); 75 let insns = compileMainSnippet("new Object(2)"); 96 let insns = compileMainSnippet("let obj; new obj.ctor()"); 119 let insns = compileMainSnippet(`new Object(...args);`);
|
D | regular.test.js | 25 import { checkInstructions, compileMainSnippet } from "../utils/base"; 29 let insns = compileMainSnippet("let a = /abc/;"); 40 let insns = compileMainSnippet("let a = /abc/i;");
|
D | parenthesized.test.ts | 29 import { checkInstructions, compileMainSnippet } from "../utils/base"; 35 let insns = compileMainSnippet("let a; (a);"); 49 let insns = compileMainSnippet("let a; (((a)))");
|
D | elementAccess.test.ts | 37 import { checkInstructions, compileMainSnippet } from "../utils/base"; 41 let insns = compileMainSnippet(`let obj; 60 let insns = compileMainSnippet(`let obj; 80 let insns = compileMainSnippet(`let obj;
|
D | logicBinary.test.ts | 33 import { checkInstructions, compileMainSnippet } from "../utils/base"; 38 let insns = compileMainSnippet("8 && false;"); 60 let insns = compileMainSnippet("8 || false;");
|
D | postfixOperations.test.ts | 35 import { checkInstructions, compileMainSnippet } from "../utils/base"; 41 let insns = compileMainSnippet("let i = 5; i++"); 61 let insns = compileMainSnippet("let i = 5; i--");
|
D | void.test.ts | 29 import { checkInstructions, compileMainSnippet } from "../utils/base"; 35 let insns = compileMainSnippet("let a; void (a);");
|
/arkcompiler/ets_frontend/ts2panda/tests/statements/ |
D | doWhile.test.ts | 35 import { checkInstructions, compileMainSnippet } from "../utils/base"; 41 let insns = compileMainSnippet("do {} while (true)"); 53 let insns = compileMainSnippet("let a = 5;" + 71 let insns = compileMainSnippet("let a = 5;" + 107 let insns = compileMainSnippet("let a = 5;" +
|
D | while.test.ts | 38 import { checkInstructions, compileMainSnippet } from "../utils/base"; 44 let insns = compileMainSnippet("while (true) {}"); 61 let insns = compileMainSnippet("let a, b; while (a + b) {}"); 86 let insns = compileMainSnippet(` 122 let insns = compileMainSnippet("let a = 5;" + 156 let insns = compileMainSnippet("let a = 5;" +
|
D | return.test.ts | 21 import { compileMainSnippet } from "../utils/base"; 25 let insns = compileMainSnippet("var a;");
|
D | tryCatch.test.ts | 34 import { checkInstructions, compileMainSnippet } from "../utils/base"; 40 let insns = compileMainSnippet(`let a = 0; 68 let insns = compileMainSnippet(`let a = 0; 99 let insns = compileMainSnippet(`let a = 0; 134 let insns = compileMainSnippet(`let a = 0;
|
D | debugger.test.ts | 24 import { checkInstructions, compileMainSnippet } from "../utils/base"; 28 let insns = compileMainSnippet("debugger;");
|
D | forIn.test.ts | 38 import { checkInstructions, compileMainSnippet } from "../utils/base"; 44 let insns = compileMainSnippet("for (let prop in {}) {}"); 80 let insns = compileMainSnippet(` 121 let insns = compileMainSnippet("for (let prop in {}) {continue; }"); 158 let insns = compileMainSnippet("for (let prop in {}) {break; }"); 198 compileMainSnippet(source);
|
D | for.test.ts | 35 import { checkInstructions, compileMainSnippet } from "../utils/base"; 41 let insns = compileMainSnippet("for (;;) {}"); 64 let insns = compileMainSnippet("for (let i = 0;;) {}"); 76 let insns = compileMainSnippet("for (let i = 0; i < 5;) {}"); 92 let insns = compileMainSnippet("for (let i = 0; i < 5; i++) {}"); 108 let insns = compileMainSnippet("for (let i = 0; i < 5; ++i) { continue; }"); 150 let insns = compileMainSnippet("for (let i = 0; i < 5; ++i) {break; }"); 194 let insns = compileMainSnippet(`loop1: 267 let insns = compileMainSnippet(`loop1:
|
D | switch.test.ts | 36 import { checkInstructions, compileMainSnippet, SnippetCompiler } from "../utils/base"; 42 let insns = compileMainSnippet("let a = 0; switch (a) {case 0 : ;}"); 68 let insns = compileMainSnippet(`let a = 0; switch (a) 105 let insns = compileMainSnippet(`let a = 0; switch (a) 143 let insns = compileMainSnippet(`let a = 0; switch (a) 178 let insns = compileMainSnippet(`let a = 0; switch (a)
|
/arkcompiler/ets_frontend/ts2panda/tests/watch_expression/ |
D | addWatch.test.ts | 69 import { checkInstructions, compileMainSnippet, compileAllSnippet } from "../utils/base"; 73 let insns = compileMainSnippet(` 99 let insns = compileMainSnippet(` 130 let insns = compileMainSnippet(` 152 let insns = compileMainSnippet(` 173 let insns = compileMainSnippet(` 205 let insns = compileMainSnippet(` 238 let insns = compileMainSnippet(` 264 let insns = compileMainSnippet(` 296 let insns = compileMainSnippet(` [all …]
|
12