Lines Matching full:a
5 * You may obtain a copy of the License at
44 let insns = compileMainSnippet("var a = 1;");
45 IRNode.pg = new PandaGen("foo", creatAstFromSnippet("var a = 1;"), 0, undefined);
48 new Stglobalvar(new Imm(0), "a"),
50 new Stglobalvar(new Imm(1), "a"),
60 var a = 2;
63 var a = 2;
69 new Stglobalvar(new Imm(0), "a"),
74 new Stglobalvar(new Imm(1), "a"),
84 snippetCompiler.compile(`function a() {};`);
85 IRNode.pg = new PandaGen("foo", creatAstFromSnippet(`function a() {};`), 0, undefined);
89 new Definefunc(new Imm(0), "UnitTest.a", new Imm(0)),
90 new Stglobalvar(new Imm(1), "a"),
99 snippetCompiler.compile(`function a() {}; function a() {}`);
100 …IRNode.pg = new PandaGen("foo", creatAstFromSnippet(`function a() {}; function a() {}`), 0, undefi…
104 new Definefunc(new Imm(0), "UnitTest.#2#a", new Imm(0)),
105 new Stglobalvar(new Imm(1), "a"),
112 …function declaration is of higher priority than var declared variables with a same name in global …
115 snippetCompiler.compile(`var a = 1; function a() {}`);
116 … IRNode.pg = new PandaGen("foo", creatAstFromSnippet(`var a = 1; function a() {}`), 0, undefined);
120 new Definefunc(new Imm(0), "UnitTest.a", new Imm(0)),
121 new Stglobalvar(new Imm(1), "a"),
123 new Stglobalvar(new Imm(2), "a"),
133 snippetCompiler.compile(`function a() {var a = 1;}`);
134 … IRNode.pg = new PandaGen("foo", creatAstFromSnippet(`function a() {var a = 1;}`), 0, undefined);
135 let funcPg = snippetCompiler.getPandaGenByName("UnitTest.a");
138 let a = new VReg(); variable
140 new Lda(a),
143 new Sta(a),
153 snippetCompiler.compile(`function a() {function b() {}};`);
154 …IRNode.pg = new PandaGen("foo", creatAstFromSnippet(`function a() {function b() {}};`), 0, undefin…
155 let funcPg = snippetCompiler.getPandaGenByName("UnitTest.a");
157 let a = new VReg(); variable
160 new Sta(a),
171 snippetCompiler.compile(`a = 1;
172 let a;`);
177 new LdaStr("a"),
189 a = 1;
190 let a;
197 new LdaStr("a"),
209 a = 1;
210 let a;
217 new LdaStr("a"),