(name string)
| 542 | } |
| 543 | |
| 544 | func (fc *funcContext) RegisterLocalVar(name string) int { |
| 545 | ret := fc.Block.LocalVars.Register(name) |
| 546 | fc.Proto.DbgLocals = append(fc.Proto.DbgLocals, &DbgLocalInfo{Name: name, StartPc: fc.Code.LastPC() + 1}) |
| 547 | fc.SetRegTop(fc.RegTop() + 1) |
| 548 | return ret |
| 549 | } |
| 550 | |
| 551 | func (fc *funcContext) FindLocalVarAndBlock(name string) (int, *codeBlock) { |
| 552 | for block := fc.Block; block != nil; block = block.Parent { |
no test coverage detected