Home
last modified time | relevance | path

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

/arkcompiler/ets_frontend/ts2panda/tests/statements/
DvariableDeclaration.test.ts48 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 …]
DfunctionDeclaration.test.ts46 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 …]
Dswitch.test.ts216 let snippetCompiler = new SnippetCompiler(); variable
217 snippetCompiler.compile(
252 let functionPg = snippetCompiler.getPandaGenByName("UnitTest.test");
/arkcompiler/ets_frontend/ts2panda/tests/
Dhoist.test.ts83 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 …]
Desmodule.test.ts48 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();
Dcommonjs.test.ts49 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();
DautoGeneratedIdentifierName.test.ts57 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();
DpreserveConstEnums.test.ts50 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();
DbuiltIns.test.ts45 let snippetCompiler = new SnippetCompiler(); variable
46snippetCompiler.compileAfter(`function foo() {return 123;}\nfunction bar() {return 321;}\n`, 'toSt…
48 let pandaGen = snippetCompiler.getPandaGenByName('UnitTest.foo');
DregAllocator.test.ts68 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();
Dlexenv.test.ts485 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/
DthisKeyWord.test.ts38 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");
Darguments.test.ts36 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");
Dpartiallyemitted.test.ts49 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();
DbindingPattern.test.ts36 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");
Dcommalist.test.ts42 let snippetCompiler = new SnippetCompiler(); variable
43 snippetCompiler.compileAfter(" \
74 let insns = snippetCompiler.getGlobalInsns();
Ddelete.test.ts83 let snippetCompiler = new SnippetCompiler(); variable
84 snippetCompiler.compile(`var foo = function() {
94 let insns = snippetCompiler.getGlobalInsns();
/arkcompiler/ets_frontend/ts2panda/tests/types/
Dclass.test.ts33 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");
Dprimitives.test.ts33 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");
Dfunction.test.ts33 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");
Darray.test.ts33 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");
DtypeUtils.ts44 …TsWithType(fileName: string): { literalBufferArray: LiteralBuffer[]; snippetCompiler: SnippetCompi…
56 let snippetCompiler = new SnippetCompiler(); variable
58 snippetCompiler.compile(sourceFile!.getFullText(), passes, literalBufferArray);
61 snippetCompiler: snippetCompiler
Dunion.test.ts33 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");
Dobject.test.ts33 let functionPg = result.snippetCompiler.getPandaGenByName("UnitTest.func_main_0");
59 let functionPg = result.snippetCompiler.getPandaGenByName("UnitTest.func_main_0");