/ark/ts2abc/ts2panda/tests/statements/ |
D | variableDeclaration.test.ts | 46 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 …]
|
D | functionDeclaration.test.ts | 44 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/ |
D | hoist.test.ts | 77 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 …]
|
D | lexenv.test.ts | 535 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/ |
D | thisKeyWord.test.ts | 37 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");
|
D | arguments.test.ts | 34 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");
|
D | commalist.test.ts | 37 let snippetCompiler = new SnippetCompiler(); variable 38 snippetCompiler.compileAfter(" \ 54 let insns = snippetCompiler.getGlobalInsns();
|
D | delete.test.ts | 81 let snippetCompiler = new SnippetCompiler(); variable 82 snippetCompiler.compile(`var foo = function() { 87 let insns = snippetCompiler.getGlobalInsns();
|
/ark/ts2abc/ts2panda/tests/types/ |
D | class.test.ts | 33 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");
|
D | primitives.test.ts | 33 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");
|
D | array.test.ts | 33 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");
|
D | function.test.ts | 33 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");
|
D | union.test.ts | 33 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");
|
D | typeUtils.ts | 56 let snippetCompiler = new SnippetCompiler(); 58 snippetCompiler.compile(sourceFile!.getFullText(), passes, literalBufferArray); 61 snippetCompiler: snippetCompiler
|
D | object.test.ts | 33 let functionPg = result.snippetCompiler.getPandaGenByName("func_main_0"); 59 let functionPg = result.snippetCompiler.getPandaGenByName("func_main_0");
|