(name string)
| 367 | } |
| 368 | |
| 369 | func (p *parser) forList(name string) { |
| 370 | n, base := 4, p.function.freeRegisterCount |
| 371 | p.function.MakeLocalVariable("(for generator)") |
| 372 | p.function.MakeLocalVariable("(for state)") |
| 373 | p.function.MakeLocalVariable("(for control)") |
| 374 | p.function.MakeLocalVariable(name) |
| 375 | for ; p.testNext(','); n++ { |
| 376 | p.function.MakeLocalVariable(p.checkName()) |
| 377 | } |
| 378 | p.checkNext(tkIn) |
| 379 | line := p.lineNumber |
| 380 | e, c := p.expressionList() |
| 381 | p.function.AdjustAssignment(3, c, e) |
| 382 | p.function.CheckStack(3) |
| 383 | p.forBody(base, line, n-3, false) |
| 384 | } |
| 385 | |
| 386 | func (p *parser) forStatement(line int) { |
| 387 | p.function.EnterBlock(true) |
no test coverage detected