(localvars *varNamePool, blabel int, parent *codeBlock, pos ast.PositionHolder, firstGotoIndex int)
| 367 | } |
| 368 | |
| 369 | func newCodeBlock(localvars *varNamePool, blabel int, parent *codeBlock, pos ast.PositionHolder, firstGotoIndex int) *codeBlock { |
| 370 | bl := &codeBlock{localvars, blabel, parent, false, 0, 0, map[string]*gotoLabelDesc{}, firstGotoIndex} |
| 371 | if pos != nil { |
| 372 | bl.LineStart = pos.Line() |
| 373 | bl.LastLine = pos.LastLine() |
| 374 | } |
| 375 | return bl |
| 376 | } |
| 377 | |
| 378 | func (b *codeBlock) AddLabel(label *gotoLabelDesc) *gotoLabelDesc { |
| 379 | if old, ok := b.labels[label.Name]; ok { |
no test coverage detected
searching dependent graphs…