Home
last modified time | relevance | path

Searched refs:snippetCompiler (Results 1 – 15 of 15) sorted by relevance

/ark/ts2abc/ts2panda/tests/statements/
DvariableDeclaration.test.ts46 let snippetCompiler = new SnippetCompiler(); variable
48 snippetCompiler.compile("var i;");
49 let globalScope = <GlobalScope>snippetCompiler.getGlobalScope(); variable
50 let insns = snippetCompiler.getGlobalInsns();
63 let snippetCompiler = new SnippetCompiler(); variable
64 snippetCompiler.compile("let i;");
65 let globalScope = <GlobalScope>snippetCompiler.getGlobalScope(); variable
66 let insns = snippetCompiler.getGlobalInsns();
78 let snippetCompiler = new SnippetCompiler(); variable
79 snippetCompiler.compile("const i = 5;");
[all …]
DfunctionDeclaration.test.ts44 let snippetCompiler = new SnippetCompiler(); variable
45 snippetCompiler.compile("function foo() {}");
52 let insns = snippetCompiler.getGlobalInsns();
53 let globalScope = snippetCompiler.getGlobalScope();
61 let snippetCompiler = new SnippetCompiler(); variable
62 snippetCompiler.compile(`
71 let insns = snippetCompiler.getGlobalInsns();
72 let globalScope = snippetCompiler.getGlobalScope();
80 let snippetCompiler = new SnippetCompiler(); variable
81 snippetCompiler.compile(`function out() {function foo() {}}`);
[all …]
/ark/ts2abc/ts2panda/tests/
Dhoist.test.ts77 let snippetCompiler = new SnippetCompiler(); variable
78 snippetCompiler.compile(`function a() {};`);
80 let insns = snippetCompiler.getGlobalInsns();
91 let snippetCompiler = new SnippetCompiler(); variable
92 snippetCompiler.compile(`function a() {}; function a() {}`);
94 let insns = snippetCompiler.getGlobalInsns();
106 let snippetCompiler = new SnippetCompiler(); variable
107 snippetCompiler.compile(`var a = 1; function a() {}`);
108 let insns = snippetCompiler.getGlobalInsns();
122 let snippetCompiler = new SnippetCompiler(); variable
[all …]
Dlexenv.test.ts535 let snippetCompiler = new SnippetCompiler(); variable
536 snippetCompiler.compile(source, passes);
539 let outerPg = snippetCompiler.getPandaGenByName("outer");
545 let anonymousPg = snippetCompiler.getPandaGenByName("#1#");
554 let globalPg = snippetCompiler.getPandaGenByName("func_main_0");
/ark/ts2abc/ts2panda/tests/expression/
DthisKeyWord.test.ts37 let snippetCompiler = new SnippetCompiler(); variable
38 snippetCompiler.compile("this");
39 let globalScope = snippetCompiler.getGlobalScope();
40 let insns = snippetCompiler.getGlobalInsns();
51 let snippetCompiler = new SnippetCompiler(); variable
52 snippetCompiler.compile("function a() {this}");
53 let functionPg = snippetCompiler.getPandaGenByName("a");
Darguments.test.ts34 let snippetCompiler = new SnippetCompiler(); variable
35 snippetCompiler.compile(`function foo(a,b) {arguments[0];}`);
46 let functionPg = snippetCompiler.getPandaGenByName("foo");
53 let snippetCompiler = new SnippetCompiler(); variable
54 snippetCompiler.compile(`function foo(arguments) {arguments[0];}`);
65 let functionPg = snippetCompiler.getPandaGenByName("foo");
Dcommalist.test.ts37 let snippetCompiler = new SnippetCompiler(); variable
38 snippetCompiler.compileAfter(" \
54 let insns = snippetCompiler.getGlobalInsns();
Ddelete.test.ts81 let snippetCompiler = new SnippetCompiler(); variable
82 snippetCompiler.compile(`var foo = function() {
87 let insns = snippetCompiler.getGlobalInsns();
/ark/ts2abc/ts2panda/tests/types/
Dclass.test.ts33 let functionPg = result.snippetCompiler.getPandaGenByName("func_main_0");
69 let functionPg = result.snippetCompiler.getPandaGenByName("func_main_0");
105 let functionPg = result.snippetCompiler.getPandaGenByName("func_main_0");
139 let functionPg = result.snippetCompiler.getPandaGenByName("func_main_0");
179 let functionPg = result.snippetCompiler.getPandaGenByName("func_main_0");
213 let functionPg = result.snippetCompiler.getPandaGenByName("func_main_0");
255 let functionPg = result.snippetCompiler.getPandaGenByName("func_main_0");
300 let functionPg = result.snippetCompiler.getPandaGenByName("func_main_0");
Dprimitives.test.ts33 let functionPg = result.snippetCompiler.getPandaGenByName("func_main_0");
63 let functionPg = result.snippetCompiler.getPandaGenByName("numberFunc");
103 let functionPg = result.snippetCompiler.getPandaGenByName("func_main_0");
134 let functionPg = result.snippetCompiler.getPandaGenByName("func_main_0");
164 let functionPg = result.snippetCompiler.getPandaGenByName("func_main_0");
201 let functionPg = result.snippetCompiler.getPandaGenByName("func_main_0");
229 let functionPg = result.snippetCompiler.getPandaGenByName("func_main_0");
Darray.test.ts33 let functionPg = result.snippetCompiler.getPandaGenByName("func_main_0");
78 let functionPg = result.snippetCompiler.getPandaGenByName("func_main_0");
111 let functionPg = result.snippetCompiler.getPandaGenByName("func_main_0");
162 let functionPg = result.snippetCompiler.getPandaGenByName("func_main_0");
196 let functionPg = result.snippetCompiler.getPandaGenByName("func_main_0");
225 let functionPg = result.snippetCompiler.getPandaGenByName("func_main_0");
Dfunction.test.ts33 let functionPg = result.snippetCompiler.getPandaGenByName("func_main_0");
63 let functionPg = result.snippetCompiler.getPandaGenByName("func_main_0");
95 let functionPg = result.snippetCompiler.getPandaGenByName("func_main_0");
134 let functionPg = result.snippetCompiler.getPandaGenByName("func_main_0");
175 let functionPg = result.snippetCompiler.getPandaGenByName("func_main_0");
Dunion.test.ts33 let functionPg = result.snippetCompiler.getPandaGenByName("func_main_0");
71 let functionPg = result.snippetCompiler.getPandaGenByName("func_main_0");
107 let functionPg = result.snippetCompiler.getPandaGenByName("func_main_0");
133 let functionPg = result.snippetCompiler.getPandaGenByName("func_main_0");
DtypeUtils.ts56 let snippetCompiler = new SnippetCompiler();
58 snippetCompiler.compile(sourceFile!.getFullText(), passes, literalBufferArray);
61 snippetCompiler: snippetCompiler
Dobject.test.ts33 let functionPg = result.snippetCompiler.getPandaGenByName("func_main_0");
59 let functionPg = result.snippetCompiler.getPandaGenByName("func_main_0");