/arkcompiler/ets_frontend/ts2panda/tests/statements/ |
D | variableDeclaration.test.ts | 48 let snippetCompiler = new SnippetCompiler(); variable 50 snippetCompiler.compile("var i;"); 52 let globalScope = <GlobalScope>snippetCompiler.getGlobalScope(); variable 53 let insns = snippetCompiler.getGlobalInsns(); 66 let snippetCompiler = new SnippetCompiler(); variable 67 snippetCompiler.compile("let i;"); 69 let globalScope = <GlobalScope>snippetCompiler.getGlobalScope(); variable 70 let insns = snippetCompiler.getGlobalInsns(); 82 let snippetCompiler = new SnippetCompiler(); variable 83 snippetCompiler.compile("const i = 5;"); [all …]
|
D | functionDeclaration.test.ts | 46 let snippetCompiler = new SnippetCompiler(); variable 47 snippetCompiler.compile("function foo() {}"); 56 let insns = snippetCompiler.getGlobalInsns(); 57 let globalScope = snippetCompiler.getGlobalScope(); 65 let snippetCompiler = new SnippetCompiler(); variable 66 snippetCompiler.compile(` 76 let insns = snippetCompiler.getGlobalInsns(); 77 let globalScope = snippetCompiler.getGlobalScope(); 85 let snippetCompiler = new SnippetCompiler(); variable 86 snippetCompiler.compile(`function out() {function foo() {}}`); [all …]
|
D | switch.test.ts | 216 let snippetCompiler = new SnippetCompiler(); variable 217 snippetCompiler.compile( 252 let functionPg = snippetCompiler.getPandaGenByName("UnitTest.test");
|
/arkcompiler/ets_frontend/ts2panda/tests/ |
D | hoist.test.ts | 83 let snippetCompiler = new SnippetCompiler(); variable 84 snippetCompiler.compile(`function a() {};`); 87 let insns = snippetCompiler.getGlobalInsns(); 98 let snippetCompiler = new SnippetCompiler(); variable 99 snippetCompiler.compile(`function a() {}; function a() {}`); 102 let insns = snippetCompiler.getGlobalInsns(); 114 let snippetCompiler = new SnippetCompiler(); variable 115 snippetCompiler.compile(`var a = 1; function a() {}`); 118 let insns = snippetCompiler.getGlobalInsns(); 132 let snippetCompiler = new SnippetCompiler(); variable [all …]
|
D | esmodule.test.ts | 48 let snippetCompiler = new SnippetCompiler(); variable 49 snippetCompiler.compile(`class C {}; export {C}`); 52 let funcMainInsns = snippetCompiler.getGlobalInsns(); 67 let snippetCompiler = new SnippetCompiler(); variable 68 snippetCompiler.compile(`import a from 'test.js'; let v = a; export {a};`); 70 let funcMainInsns = snippetCompiler.getGlobalInsns(); 83 let snippetCompiler = new SnippetCompiler(); variable 84 snippetCompiler.compile( 97 let funcMainInsns = snippetCompiler.getGlobalInsns();
|
D | commonjs.test.ts | 49 let snippetCompiler = new SnippetCompiler(); variable 50 snippetCompiler.compileCommonjs(`let a = 1`, 'cjs.js'); 54 let funcMainInsns = snippetCompiler.getGlobalInsns(); 88 let snippetCompiler = new SnippetCompiler(); variable 89 snippetCompiler.compileCommonjs(`let a = require('a.js')`, 'cjs.js'); 92 let execInsns = snippetCompiler.getPandaGenByName('UnitTest.#1#')!.getInsns(); 111 let snippetCompiler = new SnippetCompiler(); variable 112 snippetCompiler.compileCommonjs(`let a = 1; exports.a = a;`, 'cjs.js'); 115 let execInsns = snippetCompiler.getPandaGenByName('UnitTest.#1#')!.getInsns();
|
D | autoGeneratedIdentifierName.test.ts | 57 let snippetCompiler = new SnippetCompiler(); variable 58 snippetCompiler.compileAfter( 70 let insns = snippetCompiler.getGlobalInsns(); 104 let snippetCompiler = new SnippetCompiler(); variable 105 snippetCompiler.compileAfter( 113 let insns = snippetCompiler.getPandaGenByName("UnitTest.#1#").getInsns(); 126 let snippetCompiler = new SnippetCompiler(); variable 127 snippetCompiler.compileAfter( 146 let insns = snippetCompiler.getGlobalInsns();
|
D | preserveConstEnums.test.ts | 50 let snippetCompiler = new SnippetCompiler(); variable 51 snippetCompiler.compileAfter( 60 let insns = snippetCompiler.getGlobalInsns(); 85 let snippetCompiler = new SnippetCompiler(); variable 86 snippetCompiler.compileAfter( 98 let insns = snippetCompiler.getGlobalInsns();
|
D | builtIns.test.ts | 45 let snippetCompiler = new SnippetCompiler(); variable 46 …snippetCompiler.compileAfter(`function foo() {return 123;}\nfunction bar() {return 321;}\n`, 'toSt… 48 let pandaGen = snippetCompiler.getPandaGenByName('UnitTest.foo');
|
D | regAllocator.test.ts | 68 let snippetCompiler = new SnippetCompiler(); variable 69 snippetCompiler.compile(string, [new CacheExpander(), new RegAlloc()]); 70 let insns = snippetCompiler.getPandaGenByName("UnitTest.test").getInsns(); 121 let snippetCompiler = new SnippetCompiler(); variable 122 snippetCompiler.compile(string, [new CacheExpander(), new RegAlloc()]); 123 let insns = snippetCompiler.getPandaGenByName("UnitTest.test").getInsns(); 185 let snippetCompiler = new SnippetCompiler(); variable 186 snippetCompiler.compile(string, [new CacheExpander(), new RegAlloc()]); 187 let insns = snippetCompiler.getPandaGenByName("UnitTest.test").getInsns();
|
D | lexenv.test.ts | 485 let snippetCompiler = new SnippetCompiler(); variable 486 snippetCompiler.compile(source, passes); 489 let outerPg = snippetCompiler.getPandaGenByName("UnitTest.outer"); 496 let anonymousPg = snippetCompiler.getPandaGenByName("UnitTest.#1#"); 503 let globalPg = snippetCompiler.getPandaGenByName("UnitTest.func_main_0");
|
/arkcompiler/ets_frontend/ts2panda/tests/expression/ |
D | thisKeyWord.test.ts | 38 let snippetCompiler = new SnippetCompiler(); variable 39 snippetCompiler.compile("this"); 40 let globalScope = snippetCompiler.getGlobalScope(); 41 let insns = snippetCompiler.getGlobalInsns(); 52 let snippetCompiler = new SnippetCompiler(); variable 53 snippetCompiler.compile("function a() {this}"); 54 let functionPg = snippetCompiler.getPandaGenByName("UnitTest.a");
|
D | arguments.test.ts | 36 let snippetCompiler = new SnippetCompiler(); variable 37 snippetCompiler.compile(`function foo(a,b) {arguments[0];}`); 50 let functionPg = snippetCompiler.getPandaGenByName("UnitTest.foo"); 57 let snippetCompiler = new SnippetCompiler(); variable 58 snippetCompiler.compile(`function foo(arguments) {arguments[0];}`); 71 let functionPg = snippetCompiler.getPandaGenByName("UnitTest.foo");
|
D | partiallyemitted.test.ts | 49 let snippetCompiler = new SnippetCompiler(); variable 50 snippetCompiler.compileAfter(`let a; let b; (a.name as string) = b`, 'test.ts'); 52 let insns = snippetCompiler.getGlobalInsns(); 69 let snippetCompiler = new SnippetCompiler(); variable 70 snippetCompiler.compileAfter( 77 let insns = snippetCompiler.getPandaGenByName("UnitTest.reindexEdgeList").getInsns(); 90 let snippetCompiler = new SnippetCompiler(); variable 91 snippetCompiler.compileAfter( 102 let insns = snippetCompiler.getGlobalInsns();
|
D | bindingPattern.test.ts | 36 let snippetCompiler = new SnippetCompiler(); variable 37 snippetCompiler.compile(`function foo() {const {_times: times, _values: values} = this;}`); 59 let functionPg = snippetCompiler.getPandaGenByName("UnitTest.foo"); 66 let snippetCompiler = new SnippetCompiler(); variable 67 snippetCompiler.compile(`function foo() {const {_times: times, ...values} = this;}`); 91 let functionPg = snippetCompiler.getPandaGenByName("UnitTest.foo");
|
D | commalist.test.ts | 42 let snippetCompiler = new SnippetCompiler(); variable 43 snippetCompiler.compileAfter(" \ 74 let insns = snippetCompiler.getGlobalInsns();
|
D | delete.test.ts | 83 let snippetCompiler = new SnippetCompiler(); variable 84 snippetCompiler.compile(`var foo = function() { 94 let insns = snippetCompiler.getGlobalInsns();
|
/arkcompiler/ets_frontend/ts2panda/tests/types/ |
D | class.test.ts | 33 let functionPg = result.snippetCompiler.getPandaGenByName("UnitTest.func_main_0"); 70 let functionPg = result.snippetCompiler.getPandaGenByName("UnitTest.func_main_0"); 106 let functionPg = result.snippetCompiler.getPandaGenByName("UnitTest.func_main_0"); 141 let functionPg = result.snippetCompiler.getPandaGenByName("UnitTest.func_main_0"); 183 let functionPg = result.snippetCompiler.getPandaGenByName("UnitTest.func_main_0"); 218 let functionPg = result.snippetCompiler.getPandaGenByName("UnitTest.func_main_0"); 261 let functionPg = result.snippetCompiler.getPandaGenByName("UnitTest.func_main_0"); 306 let functionPg = result.snippetCompiler.getPandaGenByName("UnitTest.func_main_0");
|
D | primitives.test.ts | 33 let functionPg = result.snippetCompiler.getPandaGenByName("UnitTest.func_main_0"); 62 let functionPg = result.snippetCompiler.getPandaGenByName("UnitTest.numberFunc"); 102 let functionPg = result.snippetCompiler.getPandaGenByName("UnitTest.func_main_0"); 132 let functionPg = result.snippetCompiler.getPandaGenByName("UnitTest.func_main_0"); 161 let functionPg = result.snippetCompiler.getPandaGenByName("UnitTest.func_main_0"); 199 let functionPg = result.snippetCompiler.getPandaGenByName("UnitTest.func_main_0"); 227 let functionPg = result.snippetCompiler.getPandaGenByName("UnitTest.func_main_0");
|
D | function.test.ts | 33 let functionPg = result.snippetCompiler.getPandaGenByName("UnitTest.func_main_0"); 63 let functionPg = result.snippetCompiler.getPandaGenByName("UnitTest.func_main_0"); 95 let functionPg = result.snippetCompiler.getPandaGenByName("UnitTest.func_main_0"); 134 let functionPg = result.snippetCompiler.getPandaGenByName("UnitTest.func_main_0"); 175 let functionPg = result.snippetCompiler.getPandaGenByName("UnitTest.func_main_0");
|
D | array.test.ts | 33 let functionPg = result.snippetCompiler.getPandaGenByName("UnitTest.func_main_0"); 78 let functionPg = result.snippetCompiler.getPandaGenByName("UnitTest.func_main_0"); 111 let functionPg = result.snippetCompiler.getPandaGenByName("UnitTest.func_main_0"); 162 let functionPg = result.snippetCompiler.getPandaGenByName("UnitTest.func_main_0"); 196 let functionPg = result.snippetCompiler.getPandaGenByName("UnitTest.func_main_0"); 225 let functionPg = result.snippetCompiler.getPandaGenByName("UnitTest.func_main_0");
|
D | typeUtils.ts | 44 …TsWithType(fileName: string): { literalBufferArray: LiteralBuffer[]; snippetCompiler: SnippetCompi… 56 let snippetCompiler = new SnippetCompiler(); variable 58 snippetCompiler.compile(sourceFile!.getFullText(), passes, literalBufferArray); 61 snippetCompiler: snippetCompiler
|
D | union.test.ts | 33 let functionPg = result.snippetCompiler.getPandaGenByName("UnitTest.func_main_0"); 71 let functionPg = result.snippetCompiler.getPandaGenByName("UnitTest.func_main_0"); 107 let functionPg = result.snippetCompiler.getPandaGenByName("UnitTest.func_main_0"); 133 let functionPg = result.snippetCompiler.getPandaGenByName("UnitTest.func_main_0");
|
D | object.test.ts | 33 let functionPg = result.snippetCompiler.getPandaGenByName("UnitTest.func_main_0"); 59 let functionPg = result.snippetCompiler.getPandaGenByName("UnitTest.func_main_0");
|