Home
last modified time | relevance | path

Searched refs:compileMainSnippet (Results 1 – 25 of 32) sorted by relevance

12

/arkcompiler/ets_frontend/ts2panda/tests/expression/
Dliteral.test.ts46 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 …]
Dbinary.test.ts53 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 …]
DoperationEqual.test.ts40 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" +
DcmpBinary.test.ts51 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 …]
DtypeOf.test.ts34 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)");
Ddelete.test.ts33 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;`);
DprefixOperations.test.ts41 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");
Dconditions.test.ts38 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) {}");
Dcall.test.ts44 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');`);
Dnew.test.ts36 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);`);
Dregular.test.js25 import { checkInstructions, compileMainSnippet } from "../utils/base";
29 let insns = compileMainSnippet("let a = /abc/;");
40 let insns = compileMainSnippet("let a = /abc/i;");
Dparenthesized.test.ts29 import { checkInstructions, compileMainSnippet } from "../utils/base";
35 let insns = compileMainSnippet("let a; (a);");
49 let insns = compileMainSnippet("let a; (((a)))");
DelementAccess.test.ts37 import { checkInstructions, compileMainSnippet } from "../utils/base";
41 let insns = compileMainSnippet(`let obj;
60 let insns = compileMainSnippet(`let obj;
80 let insns = compileMainSnippet(`let obj;
DlogicBinary.test.ts33 import { checkInstructions, compileMainSnippet } from "../utils/base";
38 let insns = compileMainSnippet("8 && false;");
60 let insns = compileMainSnippet("8 || false;");
DpostfixOperations.test.ts35 import { checkInstructions, compileMainSnippet } from "../utils/base";
41 let insns = compileMainSnippet("let i = 5; i++");
61 let insns = compileMainSnippet("let i = 5; i--");
Dvoid.test.ts29 import { checkInstructions, compileMainSnippet } from "../utils/base";
35 let insns = compileMainSnippet("let a; void (a);");
/arkcompiler/ets_frontend/ts2panda/tests/statements/
DdoWhile.test.ts35 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;" +
Dwhile.test.ts38 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;" +
Dreturn.test.ts21 import { compileMainSnippet } from "../utils/base";
25 let insns = compileMainSnippet("var a;");
DtryCatch.test.ts34 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;
Ddebugger.test.ts24 import { checkInstructions, compileMainSnippet } from "../utils/base";
28 let insns = compileMainSnippet("debugger;");
DforIn.test.ts38 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);
Dfor.test.ts35 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:
Dswitch.test.ts36 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/
DaddWatch.test.ts69 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