• Home
  • Raw
  • Download

Lines Matching full:i

47     it('var i in the global scope', function () {
50 snippetCompiler.compile("var i;");
57 new Stglobalvar(new Imm(0), "i"),
61 let v = globalScope.findLocal("i");
65 it('let i in the global scope', function () {
67 snippetCompiler.compile("let i;");
73 new Sttoglobalrecord(new Imm(0), 'i'),
77 let v = globalScope.findLocal("i");
81 it('const i in the global scope', function () {
83 snippetCompiler.compile("const i = 5;");
89 new Stconsttoglobalrecord(new Imm(0), 'i'),
93 let v = globalScope.findLocal("i");
97 it('var i = 5 in the global scope', function () {
99 snippetCompiler.compile("var i = 5;");
105 new Stglobalvar(new Imm(0), "i"),
107 new Stglobalvar(new Imm(1), "i"),
111 let v = globalScope.findLocal("i");
115 it('let i = 5 in the global scope', function () {
117 snippetCompiler.compile("let i = 5;");
123 new Sttoglobalrecord(new Imm(0), 'i'),
127 let v = globalScope.findLocal("i");
131 it('var i, j in the global scope', function () {
133 snippetCompiler.compile("var i, j;");
136 let i = globalScope.findLocal("i"); variable
137 expect(i instanceof GlobalVariable).to.be.true;
142 it('let i, j in the global scope', function () {
144 snippetCompiler.compile("let i, j;");
147 let i = globalScope.findLocal("i"); variable
148 expect(i instanceof LocalVariable).to.be.true;
153 it('const i, j in the global scope', function () {
155 snippetCompiler.compile("const i=5, j=5;");
158 let i = globalScope.findLocal("i"); variable
159 expect(i instanceof LocalVariable).to.be.true;
164 it('var i in a function scope', function () {
166 snippetCompiler.compile("function a() {var i;}");
178 let i = functionScope.findLocal("i"); variable
179 expect(i).to.not.be.equal(undefined);
180 expect(i instanceof LocalVariable).to.be.true;
183 it('let i in a function scope', function () {
185 snippetCompiler.compile("function a() {let i;}");
196 let i = functionScope.findLocal("i"); variable
197 expect(i).to.be.equal(undefined);
200 it('const i in a function scope', function () {
202 snippetCompiler.compile("function a() {const i = 5;}");
213 let i = functionScope.findLocal("i"); variable
214 expect(i).to.be.equal(undefined);
217 it('let i in a local scope', function () {
219 snippetCompiler.compile("{let i;}");
230 let i = localScope!.findLocal("i"); variable
231 expect(i).to.be.equal(undefined);
238 snippetCompiler.compile("label: let i = 5;");
247 it('const i in a local scope', function () {
249 snippetCompiler.compile("{const i = 5;}");
259 let i = scope!.findLocal("i"); variable
260 expect(i === undefined).to.be.true; // not in global